Setting up gmirror

Andrew Falanga af300wsm at gmail.com
Wed Oct 1 04:34:55 UTC 2008


Hi,

I've just finished setting up a new web server, and if I get my DNS
stuff correct hopefully an e-mail server too, for my church.
Originally, the intention was to use RAID1 on the MOBO.  However, the
RAID controller on the MOBO consistently tried to make the SATA DVD
drive part of the RAID array and wouldn't boot the FreeBSD boot disk.
So, at the suggestion of another respondent here, I've decided to use
gmirror.

Now, it seems that gmirror is, perhaps, newer to FreeBSD than the
software RAID stuff in the Handbook.  That mentions ccd(4) and doesn't
make any mention of gmirror(8).  It seems like gmirror is rather easy
to work with, and more important, easy to recover from is hardware
fails.  In any event, I want to make sure I'm understanding the manual
page correctly because I don't have anything else to test this on
except the churches computer.  We have two Seagate 250gb SATA drives.
Identical drive models so their sizes are the same.  Is this the
command, from gmirror(8), the one I'll want to use?

     Create a mirror on disk with valid data (note that the last sector of the
     disk will be overwritten).  Add another disk to this mirror, so it will
     be synchronized with existing disk:

	   gmirror label -v -b round-robin data da0
	   gmirror insert data da1


Though in my case, da0 and da1 will be ad4 and ad5.  This seems to be
the one I'm looking for, I'm just scared of wiping out more than I
bargain for.

Andy

-- 
 A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?


More information about the freebsd-questions mailing list