raid issues on Fedora 7

Jeffrey Ross jeff at bubble.org
Fri Jun 29 01:47:25 UTC 2007



Jeffrey Ross wrote:
> What am I missing when creating a raid 1 configuration.  I added a new 
> disk to the system (/dev/sda) and put the old disk as /dev/sdb (these 
> are SATA drives)
>
> I built a new system on /dev/sda (/ = /dev/sda6, /var = /dev/sda5, 
> /usr=/dev/sda6, /boot=/dev/sda1, and swap=/dev/sda3) and I left 
> roughly 300 GB for /home at /dev/sda7.
> I did the following:
> fdisk and set /dev/sda7 to type fd  (/dev/sda7            2569       
> 48641   370081341   fd  Linux raid autodetect)
> mdadm --create /dev/md7 --level=1 --raid-devices=2 /dev/sda7 missing 
> (I'm planning to add /dev/sdb7 upon successful creation)
> mkfs -V -t ext3 /dev/md7
> e2label /dev/sdb2 /home1
> e2label /dev/md7 /home
> created a simple entry in /etc/mdadm.conf with "MAILADDR root"
>
> next copied all my user data from /dev/sdb2 (my former /home 
> partition)  to /dev/md7.  This worked fine.
>
> Then when I rebooted the system, /dev/md7 was gone and the system 
> mounted /dev/sda7 as /home
>
> Where did I go wrong?
>
> Thanks, Jeff
>
>
I found my answer, or at least part of my answer.  I ended up creating 
an additional line in /etc/mdadm.conf that said "ARRAY /dev/md7 
devices=/dev/sda7"

On a previously installed system (FC6) I only had the single line 
"MAILADDR" and everything else was identified properly.  One big 
difference was all the partitions were mirrored including /boot and / 
and the boot line specified "root=/dev/md6"  Is it because the root 
partition was a raid that the the raid partitions were automatically 
assembled previously?

Thanks, Jeff




More information about the fedora-list mailing list