Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Mar 2006 09:04:02 -0800 (PST)
From:      "Freddie Cash" <fcash@ocis.net>
To:        stable@freebsd.org
Subject:   Re: Fresh install on gmirror'ed disks?
Message-ID:  <54559.192.168.0.10.1141751042.squirrel@webmail.sd73.bc.ca>
In-Reply-To: <200603070939.30032.joao@matik.com.br>
References:  <440D74B3.3030309@vwsoft.com> <200603070939.30032.joao@matik.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, March 7, 2006 4:39 am, JoaoBR wrote:
> On Tuesday 07 March 2006 08:55, Volker wrote:
>> I do agree that gmirror is not that bad and not that difficult. But
>>  take a look at how to setup a fresh system using gmirror (slice by
>>  slice mirroring):
>>
>> - install a complete system to a fresh disc
>> - create the (well sized) slices on a 2nd disc (not that easy)
>> - create the gmirror set on disc 2
>> - bring gmirror up
>> - copy all filesystems over to the gmirror set
>> - reboot
>> - create exactly sized slices on disc 1
>> - insert everything into the gmirror set
>>
>> Using that procedure you're going to copy each installed file three
>>  times (install, copy to mirror, sync mirror). That's a waste of
>> time compared to a solution where the installer would be able to
>> install directly into a mirror.

There's no need to copy files around.  gmirror handles it all for you
behind the scenes.  Just create the gmirror labels using the existing
disks/slices/partitions, then insert the second set of
disks/slices/parittions.  gmirror will handle synchonising the data
across the mirror.

>> When using disc based gmirror (instead of per slice gmirror) the
>> procedure is a bit easier, but similar.

> there is no need to copy anything around ...
> - you do install the system as usual
> - before rebooting you create the to be mirrored disk with the gmirror
> label command (you do not loose data here)
> - then you change your fstab acordingly
> - you reboot
> - you insert the mirror disk(s)
> - gmirror should start syncing automatically if you did everything
> right

> realy, this is a 3 minute thing

This is the process I just went through.  It would be nice if there
was a post-install step that did this automatically, but it wasn't all
that hard to do manually.  Just CTRL+F4 to open the terminal, run a
few commands to create the mirror, edit /etc/fstab, and exit the
installer.

Dru Lavigne's OnLamp article about this makes it almost trivial to do.

----
Freddie Cash
fcash@ocis.net




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54559.192.168.0.10.1141751042.squirrel>