Help with ES v3 Raid1 (Mirror)

Eric Sisler esisler at westminster.lib.co.us
Fri Jan 27 18:04:58 UTC 2006


On Thu, 2006-01-26 at 12:52, Marc Leveille wrote:
> Hi, I'm trying to setup a Raid1 mirror between 2 hard drives. I have the
> following.
> 
> 1- SDA 36gig System disk
> 2- SDB 36gig blank
> 3- SDC 36gig blank
> 
> I'm trying to Mirror SDB to SDC by doing the following.
> 
> 1- By using FDisk I created SDB1 and SDC1 on each drive. 
> 2- I then makefs ext3 for each partition.
> 3- Then I used mkadm --create /dev/md0 --level=1
> --raid-devices=2 /dev/sdb1 /dev/sdc1
> 
> I ran watch cat /proc/mdstat until the process was completed.
> 4- when it was complete I tested the mount using mount -t
> ext3 /dev/md0 /home/apps and it mounted and I was able to open it.
> 5- I then edited fstab with /dev/md0 /home/apps ext3 defaults 1 2 and
> rebooted.
> 6- I now get the following error at boot. 

You need to make the file system *after* creating the RAID array.  You
essentially made filesystems on the two devices and then erased them by
creating the RAID array.

Make sure the partition types are set to fd "Linux RAID autodetect" as
well.

BTW - you don't have to wait for /proc/mdstat to report the mirror as
rebuilt before formatting mouting & using the filesystem - it will be
reuilt in the background.

-Eric

-- 

Eric Sisler <esisler at westminster.lib.co.us>
Library Applications Specialist
Westminster Public Library
Westminster, CO USA

Linux - Don't fear the Penguin.
Want to know what we use Linux for?
Visit http://wallace.westminster.lib.co.us/linux




More information about the redhat-list mailing list