Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd February 2010, 14:42
wminside wminside is offline
Junior Member
 
Join Date: Feb 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Software RAID1 On A Running CentOS 5.4

Hi, I'm having some trouble setting up a RAID1 on CentOS 5.4.

I'm using this guide:
http://www.howtoforge.org/how-to-set...ion-centos-5.3

After installing Grub on the sencond hard drive (hdb in my case) and rebooting the system I get the login screen but right after filling my user/psswd the message "last connected from blablah" disppapears and it keeps asking for my login details. If I boot from the second kernel (root=LABEL=/) this doesn't happen.

This was my third try. Any ideas?

Last edited by wminside; 22nd February 2010 at 14:46.
Reply With Quote
Sponsored Links
  #2  
Old 23rd February 2010, 16:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

What's in /boot/grub/menu.lst and /etc/fstab?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 23rd February 2010, 23:58
wminside wminside is offline
Junior Member
 
Join Date: Feb 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
What's in /boot/grub/menu.lst and /etc/fstab?
Hi Falko, I have both of them just like in the howto

fstab
Code:
/dev/md2                 /                       ext3    defaults        1 1
/dev/md0             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/md1         swap                    swap    defaults        0 0

boot/grub.conf
Code:
..
fallback=1
title CentOS (2.6.18-164.11.1.el5)
        root (hd1,0)
        kernel /vmlinuz-2.6.18-164.11.1.el5 ro root=/dev/md2
        initrd /initrd-2.6.18-164.11.1.el5.img

title CentOS (2.6.18-164.11.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-164.11.1.el5 ro root=LABEL=/
        initrd /initrd-2.6.18-164.11.1.el5.img
..
Reply With Quote
  #4  
Old 24th February 2010, 14:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

What's the output of
Code:
fdisk -l
? Is this an LVM system?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 25th February 2010, 02:45
wminside wminside is offline
Junior Member
 
Join Date: Feb 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I gave it another shot so here it is everything you asked for

/etc/fstab
Code:
/dev/md2                 /                       ext3    defaults        1 1
/dev/md0            /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/md1         swap                    swap    defaults        0 0
/boot/grub/menu.lst
Code:
default=0
fallback=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-164.el5)
        root (hd1,0)
        kernel /vmlinuz-2.6.18-164.el5 ro root=/dev/md2
        initrd /initrd-2.6.18-164.el5.img
title CentOS (2.6.18-164.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-164.el5 ro root=LABEL=/
        initrd /initrd-2.6.18-164.el5.img
It's not LVM

so here it is the problem...
Code:
[root@centoso ~]# fdisk -l

Disk /dev/hda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14         144     1052257+  82  Linux swap / Solaris
/dev/hda3             145        1044     7229250   83  Linux

Disk /dev/hdd: 8696 MB, 8696889344 bytes
16 heads, 63 sectors/track, 16851 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdd1   *           1         208      104391   fd  Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/hdd2             208        2295     1052257+  fd  Linux raid autodetect
/dev/hdd3            2296       16639     7229250   fd  Linux raid autodetect

Disk /dev/md2: 7402 MB, 7402684416 bytes
2 heads, 4 sectors/track, 1807296 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md2 doesn't contain a valid partition table

Disk /dev/md1: 1077 MB, 1077411840 bytes
2 heads, 4 sectors/track, 263040 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md1 doesn't contain a valid partition table

Disk /dev/md0: 106 MB, 106823680 bytes
2 heads, 4 sectors/track, 26080 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md0 doesn't contain a valid partition table
I'm using VirtualBox for this. I googled the fact that partition 1 does not end on a cylinder boundary but apparently it isn't that big of a deal. Well it seems I didn't google enough.

I hadn't noticed that the raid arrays don't have a valid table though. Any suggestions at this point?
Reply With Quote
  #6  
Old 25th February 2010, 17:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Quote:
Originally Posted by wminside View Post
I hadn't noticed that the raid arrays don't have a valid table though. Any suggestions at this point?
That is normal and nothing to worry about.

Is it possible to log in using SSH?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 25th February 2010, 23:41
wminside wminside is offline
Junior Member
 
Join Date: Feb 2010
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by falko View Post
That is normal and nothing to worry about.

Is it possible to log in using SSH?
It doesn't make any difference if I log in through SSH. Actually Putty will close right after I try to log in just as if I was logging out.

Last edited by wminside; 25th February 2010 at 23:59.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with How To Set Up Software RAID1 On A Running System cckid HOWTO-Related Questions 7 29th September 2009 23:24
Software RAID1 on a Running Debian System amras86 HOWTO-Related Questions 13 31st August 2009 16:26
High on Lenny - Lvm Mount Problem Serverman Technical 1 23rd June 2009 16:26
Centos 5.2 + ISPConfig 3 tutorial - Problem with email tanakskool Server Operation 1 3rd June 2009 16:22
How To Set Up Software RAID1 On A Running System Debian Etch - Problem jzupancic HOWTO-Related Questions 4 22nd August 2008 13:13


All times are GMT +2. The time now is 10:31.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.