Hi, I'm having some trouble setting up a RAID1 on CentOS 5.9.
I'm using this guide:
http://www.howtoforge.com/how-to-set...ion-centos-5.3
After installing Grub on the second hard drive (hdc in my case) and rebooting the system I get the login screen but i can't login as root (i added new user but it doesn't work)
When i'm using mode single, i see passwd, i also changed password but it doesn't work.
When i reboot many times my system, i can't login as root and other users.
I can't use LVM.
Ssh doesn't work. Putty will close right after I try to log in just as if I was logging out.
My config files:
/etc/fstab
Code:
/dev/md1 / ext3 defaults 1 1
/dev/md4 /var ext3 defaults 1 2
/dev/md2 /home ext3 defaults 1 2
/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/md3 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-348.el5)
root (hd1,0)
kernel /vmlinuz-2.6.18-348.el5 ro root=/dev/md1
initrd /initrd-2.6.18-348.el5.img
title CentOS (2.6.18-348.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-348.el5 ro root=LABEL=/
initrd /initrd-2.6.18-348.el5.img
fdisk -l
Code:
Disk /dev/hdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 127 1020096 fd Linux raid autodetect
/dev/hdc2 128 19249 153597465 fd Linux raid autodetect
/dev/hdc3 19250 25623 51199155 fd Linux raid autodetect
/dev/hdc4 25624 38909 106719795 5 Extended
/dev/hdc5 25624 27663 16386268+ fd Linux raid autodetect
/dev/hdc6 27664 38909 90333463+ fd Linux raid autodetect
Disk /dev/sda: 320.0 GB, 320044269568 bytes
255 heads, 63 sectors/track, 38909 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 127 1020096 83 Linux
/dev/sda2 128 19249 153597465 83 Linux
/dev/sda3 19250 25623 51199155 83 Linux
/dev/sda4 25624 38909 106719795 5 Extended
/dev/sda5 25624 27663 16386268+ 82 Linux swap / Solaris
/dev/sda6 27664 38909 90333463+ 83 Linux
Disk /dev/md0: 1044 MB, 1044512768 bytes
2 heads, 4 sectors/track, 255008 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md1: 157.2 GB, 157283713024 bytes
2 heads, 4 sectors/track, 38399344 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md2: 52.4 GB, 52427816960 bytes
2 heads, 4 sectors/track, 12799760 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md3: 16.7 GB, 16779444224 bytes
2 heads, 4 sectors/track, 4096544 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md4: 92.5 GB, 92501377024 bytes
2 heads, 4 sectors/track, 22583344 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
This was my tenth try. Any ideas?
Please help me, when you can.
I have no idea where the problem is.
Recent comments
10 hours 52 min ago
20 hours 20 min ago
21 hours 10 min ago
1 day 43 min ago
1 day 5 hours ago
1 day 5 hours ago
1 day 7 hours ago
1 day 17 hours ago
1 day 22 hours ago
2 days 5 min ago