gmirror Issues

Ivan Voras ivoras at fer.hr
Mon Mar 26 00:34:15 UTC 2007


Joe Kelsey wrote:

> The major thing that needs doing is a detailed explanation of how to
> take two brand new disk drives and mirror them.  Nothing in the
> documentation discusses this.  Do you have to create file systems on the

This is actually easy:

1. Create everything you need on the first drive (ok, you don't need
*everything* - just the base system and partitions)
2. gmirror label myraid mydrive0
3. gmirror insert myraid mydrive1

This way, mydrive0 will be the "master", which would be replicated on
the mydrive1 hereafter. After the first sync is complete, they will be
equal and mirrored. If the mirror is your root drive, don't forget to
fixup fstab and add geom_mirror module to the loader before rebooting.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20070326/2db9fcfb/signature.pgp


More information about the freebsd-stable mailing list