Steve,

create your raid definition file /etc/raidtab with

# raid-1 configuration of device /dev/md1
raiddev /dev/md1
raid-level      1
nr-raid-disks   2
nr-spare-disks  0
device  /dev/hda5
raid-disk       0
device  /dev/hdc5
raid-disk       1

Then do a 'mkraid -f /etc/raidtab'. You will need the -f (force) option to 
clean up your previous 'mke2fs /dev/hda5'. Create a file /etc/mdtab with 
'mdcreate /etc/raidtab'. Do a 'mdadd -ar', which starts the raid set(s) from 
/etc/mdtab (check out /proc/mdstat that the set is working). Then format 
/dev/md1 with 'mke2fs /dev/md1'. After this, you can do the 'mount /dev/md1 
/mnt/spare' and go on. Note that you have to stop the raid set(s) in 
/etc/mdtab with 'mdstop -a' after unmounting. Add /dev/md1 as a mount 
point for /usr to your /etc/fstab. Probably you have to add 'mdadd -ar' 
and 'mdstop -a' to your system startup and stop scripts.

Hope this will help,
Thomas

> I hate to be so thick.  I'm still trying to get raid-1 working.  Someone has
> been good enough to help me out, but I think I'm wearing out my welcome.  
> Here's what I have so far: I'm close, but I still don't have the cigar.  
> Here's what I have: I'm using RH 6.0.  I have two WD 4.3 gb HDD's.  I'm trying 
> to mirror (to start out) hda5 and hdc5.  I have raid tools 19990421-0.  This 
> is what I've done:mke2fs /dev/hda6.  mkdir /mnt/spare.  mount /dev/hda6 
> /spare.  tar clf - * | tar xpfC - /mnt/spare.  edited /etc/fstab to change 
> /dev/hda5 /usr to /dev/hda6 /usr.  reboot.  I ran fdisk to change hda5 and c5 
> to type fd. mkraid--really-force /dev/md1.  mke2fs /dev/md1.  mount /dev/md1 
> /mnt/to  do.  Are both /hda5 and /hdc5 supposed to be mounted at /usr in the 
> fstab?  how do I use /dev/md1?  Do I replace /dev/hdc5 /usrb with /dev/md1 
> /some mount point?  Am I making sense?  I'm not sure what to do with /dev/md1 
> or what my fstab should look like.Do I want the same information on hda5 *and* 
> hdc5? Or do I want the same information on hda5 and md1?

Reply via email to