Software RAID 1 from Existing Boot Drive
My problem is that I am getting an incorrect superblock when booting a RAID1 mirror. I have tried many things and so I will outline my procedure to see if there is something I missed and to see if there is something I did wrong. I do not have raidtools so 90% of the documentation out there cannot be applied to me. togami.com/~warren/guides/remoteraidcrazies/ <--- This page was as close as any document has come to helping me with this process.
This whole procedure was performed after booting a Live CD with none of the SATA drives mounted. My setup plan: /dev/sda is the pre-existing master and the drive I am wanting to mirror from. So data in the synch should flow sda -> sdb. Code:
/dev/sda1 -> /dev/md0 (ext3) - to be "/boot" To create the array: I fdisked the /dev/sdb drive and made sure it was exactly like /dev/sda. I then ran mkfs.ext3 for /dev/sdb1 and /dev/sdb3, and ran mkswap for /dev/sdb2. Now that the drives were identical in their partition scehem I changed the filesystem type to "fd" for both /dev/sda and /dev/sdb. Next I created the array: Code:
mdadm --create /dev/md0 --level=1 --raid-disks=2 /dev/sda1 /dev/sdb1 Code:
mount /dev/md2 /mnt/sysimage Code:
mount /dev/md0 /mnt/sysimage/boot Code:
chroot /mnt/sysimage Code:
vi /etc/fstab Code:
/dev/md2 / ext3 defaults 1 1 Code:
e2label /dev/sda1 "" Code:
vi /etc/fstab Code:
default=0 Code:
/boot/grub/grub.conf Code:
mkinitrd --preload raid1 --with=raid1 /initrd-2.6.12-1.1398_FCsmp-RAID1.img 2.6.12-1.1398_FCsmp Code:
e2fsck /dev/sda1 |
FIXED!
I resolved this issue by running the following commands from the Live CD:
Code:
e2fsck -cc /dev/md2 Code:
e2fsck -cc /dev/md0 Code:
resize2fs /dev/md2 If anyone would like to do this then the procedure I have outlined should work and has now been verified by me! GOOD LUCK (You will need it)! |
All times are GMT -5. The time now is 12:57 PM. |