I recently moved a 320GB raid1 array from one machine to a new machine. The old machine was running Mandriva 2007.0, the new one is running openSUSE 11 64bit (much better OS BTW, not that you didnt already know that ).
I can use:
mdadm --assemble /dev/md0 /dev/sdb1 /dev/sdc1
and the raid1 assembles correctly and is ready to be mounted with:
mount /dev/md0 /data
At that point everything works as expected. The problem I have is I cannot figure out how to get the darn thing to mount at boot.
/etc/sysconfig/mdadm has the following in it:
BOOT_MD_USE_MDADM_CONFIG=yes
I have edited /etc/mdadm.conf to have:
DEVICE /dev/sdb1 /dev/sdc1
ARRAY /dev/md0 UUID=big_long_string_found_old_host auto=yes
(and yes, the big_long_string matches what is found in the output of mdadm --examine /dev/sdb1 and /dev/sdc1).
Then I can assemble it from root as:
mdadm -As /dev/md0
and it assembles correctly and mounts correctly.
With that in mdadm.conf, at boot I see the following in dmesg:
EXT3-fs: unable to read superblock
md: md0 stopped.
md: bind<sdb1>
md: bind<sdc1>
md: raid1 personality registered for level 1
raid1: raid set md0 active with 2 out of 2 mirrors
That said, when I do the assemble and mount manually I see this in dmesg:
EXT3 FS on md0, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
There is no entry in mtab or fstab for it at this point in time because I cant seem to get it at least assemble at boot.
I think the mtab entry will look like this once I insert it (as it was on old system):
/dev/md0 /data ext3 rw 0 0
And Iām not sure what the fstab should be.
How do I get this to auto assemble and mount at boot time?