Hi all-

Been messing with setting up software RAID1 on a existing install and
doing it all remotely.  I've been stuck on one point in the process
and it's got me stumped.  I'm hoping someone may have an idea or a
thought to push me in a new direction.  Here's the story so far:

2  9Gb SCSI disks - sda and sdb.

sda was set up like so:

                 Device Boot      Start         End      Blocks   Id  System
(/boot)      /dev/sda1   *           1           5       40131   83  Linux
(swap)     /dev/sda2               6         130     1004062+  82  Linux swap
(/)            /dev/sda3             131         143      104422+  83  Linux
                /dev/sda4             144        1106     7735297+   5  Extended
(/usr)        /dev/sda5             144         393     2008093+  83  Linux
(/home)     /dev/sda6             394         892     4008186   83  Linux
(/var)         /dev/sda7             893        1017     1004031   83  Linux
(/usr/local) /dev/sda8            1018        1080      506016   83  Linux
(/tmp)        /dev/sda9            1081        1106      208813+  83  Linux


THe system was in use for a while and then the call came in to RAID 1
all the partitions.
I recompiled the kernel etc and then copied the partitions from a to b 

> sfdisk -d /dev/sda | sfdisk /dev/sdb

Then setup RAID and declared disk one missing and disk two to be sdb:

> mdadm --create /dev/md0 --level=1 --raid-disks=2 missing /dev/sdb1
> mdadm --create /dev/md1 --level=1 --raid-disks=2 missing /dev/sdb3
> mdadm --create /dev/md2 --level=1 --raid-disks=2 missing /dev/sdb5
> mdadm --create /dev/md3 --level=1 --raid-disks=2 missing /dev/sdb6
> mdadm --create /dev/md4 --level=1 --raid-disks=2 missing /dev/sdb7
> mdadm --create /dev/md5 --level=1 --raid-disks=2 missing /dev/sdb8
> mdadm --create /dev/md6 --level=1 --raid-disks=2 missing /dev/sdb9

Then format:

mkfs.ext3 /dev/md0 (or ext2) for each new raid device

Then mount up each raid device in /mnt and copy appropriate data over:

cp -axu /boot /mnt/md0
cp -axu / /mnt/md1
cp -axu /usr /mnt/md2
cp -axu /home /mnt/md3
cp -axu /var /mnt/md4
cp -axu /usr/local /mnt/md5
cp -axu /tmp /mnt/md6

At this point I modified sda3's fstab to mount the raid device on boot
and rebooted - everything is cool so far....

Next a new lilo stanza to mount md1 as root:

image = /boot/kernel-2.6.8.1-RAID-smp
        root = /dev/md1
        label = RAIDTEST
        read-only 
        append="doscsi panic=5"

and modify md1's /etc/fstab to mount /dev/md1 as /:

reboot and things are ok...  then I take it a step  further and edit
the /etc/fstab on /dev/md1 to mount all my new RAID devices /dev/md1 -
/dev/md6

At this point the system comes up but /usr and all the other mount
(excapt for /) would mount - I get the error:  /usr mount point not
found.

A double and triple check says /usr is there and ready to be mounted....

any ideas?  or thoughts on this process....  THis is my first attempt
to RAID anything with software raid - so be gentle :)


thanks

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
Help beta test TCLUG's potential new home: http://plone.mn-linux.org
Got pictures for TCLUG? Beta test http://plone.mn-linux.org/gallery
tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list