This example below assumes you don't use a separate /usr partition during
your "normal" install.
If you do use a separate /usr partition, don't 'mv' it or 'rm' it, merely
unmount it, and change your fstab to point to the metadevice. Similarly,
find something to do with that now useless partition (or use the "failed
mirror" patch - read the final suggestion below).
Step 1. Install RH6 "normally"
Step 2. Create your 2 partitions - mark them as autostart (type 0xfd)
Step 3. Create the meta device (/dev/md0) - mkraid and /etc/raidtab
Step 4. Make the filesystem, mount it, copy /usr, modify fstab
mke2fs /dev/md0
mount /dev/md0 /mnt
cp -a /usr/* /mnt
umount /mnt
mv /usr /usr2
mkdir /usr
mount /dev/md0 /usr
echo "/dev/md0 /usr ext2 defaults 1 2" >> /etc/fstab
rm -fr /usr2
Viola! Your /usr tree becomes automounted.
This should be trivial if you have the extra diskspace. Or am I
misunderstanding your question?
If you use the "failed mirror" patch, you could create a pseudo one-disk
mirror - make the filesystem, copy the files, fix fstab, umount/mount
things, and then raidhotadd the other "half" of the mirror - which would be
the old /usr partition. If you don't understand what I mean, please feel
free to email me directly.
- Ian C. Blenke <[EMAIL PROTECTED]>
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Wood
Sent: Wednesday, May 19, 1999 1:56 PM
To: Linux-Raid Mailing List
Subject: Not destructive raiding
Hey all, got a question for you. I need to build a
software raid with
RH6.0. It will be a RAID1(mirroring). I can build a raid
and mount it,
I'm
familiar that far, but what I need to know is the following:
1. How do I mirror /usr without destroying the data on it.
2. If I can't do above, how do I raid /usr and then
install RH6.0 over it
so that the software will all work.
If you have any information, it would be greatly appreciated.
Kevin
************************************************************
***********
Kevin Wood
[EMAIL PROTECTED]
DCG Computers Inc. Your source for DEC Alphas,
4 Sanborn Road Sun
Ultra AXi,
Londonderry, NH 03053 and Single/Dual Processor
Phn: (603)421-1800 Intel Machines
Fax: (603)421-0911
Visit Our Webpage at www.dcginc.com
Full Support for Intel and Alpha Linux, NT and UNIX
We now carry Alpha 21264 MP boards!
************************************************************
***********
Remember to Keep the Rubber Side Down - Snowmobile Magazine