Create GMIRROR only one slice

krad kraduk at googlemail.com
Tue Mar 30 11:26:02 UTC 2010


2010/3/30 Matthew Seaman <m.seaman at infracaninophile.co.uk>

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 29/03/2010 21:10:42, krad wrote:
> > You will need to newfs the gmirror device
> > after that so backup the data currently on /, then copy it back
> afterwards.
>
> This is counter to all my experience of dealing with gmirror -- it's
> carefully designed so that the metadata it writes to the drive
> *doesn't* interfere with the filesystem.  While it is always a good
> idea to have backups, I do not believe that destroying and recreating
> the filesystem should be necessary.
>
>        Cheers,
>
>        Matthew
>
> - --
> Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
>                                                  Flat 3
> PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
>                                                  Kent, CT11 9PW
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkuxopAACgkQ8Mjk52CukIxvZwCaAgTijPzbHoL5whM6F3GQax2N
> eN4An3/HZSRgUml7jy+IpYRyK0rEfGRr
> =e+4T
> -----END PGP SIGNATURE-----
>

Im pretty sure that it will nick the last sector from the slice, so you will
at least need to fsck it. If its a production system i would always go for
the cleaner approach as well and newfs is about as clean as it gets.


More information about the freebsd-questions mailing list