gmirror name conflict

Pawel Jakub Dawidek pjd at FreeBSD.org
Sat Apr 21 22:42:50 UTC 2007


On Sat, Apr 21, 2007 at 11:42:32PM +0200, Pierre-Francois LAURAND wrote:
> Hi,
> 
> I'm looking for the right way to migrate a couple of gmirrored drives (
> gm0 ) from one box to another one with an already configured gmirror :
> gm0, too.
> My goal is just to rename gm0 from the original box to gm1 on the new
> one, keeping datas of the mirror.
> 
> Here is the way I consider to follow :
> 
> old# gmirror desactivate gm0 /dev/da0s2
> old# gmirror desactivate gm0 /dev/da1s2
> ...
> new# gmirror label -n gm1 /dev/da2s2
> new# gmirror insert gm1 /dev/da3s2
> new# gmirror configure -a gm1
> 
> Can I be sure to keep my mirrored datas clean following these steps ?

Yeah, but a bit simpler:

	# gmirror stop gm0
	# gmirror label gm1 da2s2 da3s2

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20070421/3e4da120/attachment.pgp


More information about the freebsd-geom mailing list