Re: Mirroring: gvinum or gmirror?



I'm setting up a remote server with two identical hard drives, running
FreeBSD-6.1. I want to set the drives up as a mirror for data redundancy. I
also want to be able to break the mirror when I need to update the OS or
installed software, so that if anything goes wrong with the update on one
drive I can boot back to the other one, or if all is well, re-establish the
mirror and synchronise to the updated system. I have serial console access
including BIOS console redirection.

Based on web and Usenet/mailing list searches, gmirror looks more
straightforward for this simple case, gvinum more flexible but poorly
documented, and the most recent comments I can find (still all 6+ months ago)
seem to suggest that gvinum hasn't completely stabilised for production yet.

Is this a fair assessment? Are there any factors I've missed? Which solution
is likely to suit the situation better?

Jonathan

Hello Jonathan,

I run gmirror on all machines which don't have a hardware RAID
controller. I've had drive failures in the past and gmirror handled it
very well. It's now a lot better under 6.1 then 5.x (mostly concerning
the kernel dump area and the swapoff option in rc.conf(5)).

Take a look at Ralf S. Engelschall's documentation on the subject:
http://people.freebsd.org/~rse/mirror/

Bonus Tip of the day! If you ever have two disk drives which are not
identical, such as these:

ad0: 4112MB <WDC AC24300L 09.09M08> at ata0-master UDMA33
ad3: 4028MB <Maxtor 84320D4 NAVXAA21> at ata1-slave UDMA33

Then make sure you install FreeBSD on the bigger one (i.e. here that
would be ad0) then setup gmirror. If you do the oposite, you will have
a "Consumers too small" error when you try to bring the mirror
together.

Finally, keep in mind that gmirror is only good for RAID 1. If you
need more powerfull volume management tools such as Veritas Volume
Manager or Sun DiskSuite, then you need gvinum.

Regards,

David
--
David Robillard
UNIX systems administrator & Oracle DBA
CISSP, RHCE & Sun Certified Security Administrator
Montreal: +1 514 966 0122
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: geom - help ...
    ... gstripe st1 da1 da2 ... gmirror drive st1 st2 ... easier and faster--you only need to rebuild component mirror (which involves ... I have three drives (two of which were scavenged from other ...
    (freebsd-questions)
  • Re: RAID1 mirroring w/ 5.3 choices?
    ... particularly how gmirror and atacontrol relate to each other? ... fdisk-partition and bsdlabel both drives ... resynching to the other half of the mirror pair. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Vinum status
    ... re-attached my two root-on-vinum test drives. ... reads are only done from one disk of the mirror. ... the "readpol round" that appears to be the default under vinum. ... Does gvinum support "readpol round" or is it just that its default ...
    (freebsd-current)
  • Re: FreeBSD 5.x raid...
    ... he wants all data on one SATA drive and a mirror on the other. ... Therefore he does not want to "concat" but to "mirror". ... examples often complicatate things by concating some drives then ... while gvinum works pretty good. ...
    (freebsd-questions)
  • Dreadful gmirror performance, though each half works fine
    ... When I create a mirror by taking one of them and adding the other the mirror ... running myself on top of the mirror drives, ... and no intensive disc activity - the machine just seems completely cuiqre. ... If i then take a drive out using 'gmirror deactivate' the command freezes ...
    (freebsd-stable)