RAID-1 software CENTOS - no boot second disk
Hello,
I have installed a centos 6.3 with RAID-1 software and LVM. To test it after the setup I removed the first hard drive and tried to boot on the second disk but nothing happens. Atfer a while it displays Code:
Hard disk error Code:
# Kickstart file automatically generated by anaconda. Code:
root (hd0,0) Code:
root (hd1,0) Code:
setup (hd1) |
You may have prematurely removed the 2nd drive before it had synced up to the first.
Did you check it with cat /proc/mdstat ? to see if it had completed. If not then copy the partition info across using sfdisk -d /dev/sda | sfdisk /dev/sdb --force (this is an example for sda to sdb - use fdisk -l to show) then do a mdadm /dev/md0 --add /dev/sdb1 mdadm /dev/md1 --add /dev/sdb2 mdadm /dev/md2 --add /dev/sdb3 or whatever cat /proc/mdstat shows you for your md devices |
It seems to be ok, doesn't it ?
cat /proc/mdstat Code:
Personalities : [raid1] |
No, this looks totally wrong for a sensible raid1 configuration
md0 should be active raid1 sda1[0] sdb1[1] md1 should be active raid1 sda2[0] sdb2[1] |
Hello
I did it again on a VM and this partition plan seems to be working. Code:
clearpart --none Code:
Personalities : [raid1] |
All times are GMT -5. The time now is 03:07 PM. |