Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Feb 2007 15:22:12 -0500
From:      John Nielsen <lists@jnielsen.net>
To:        freebsd-questions@freebsd.org
Cc:        Ville Lundberg <freebsd@juiceless.net>, "Brian A. Seklecki" <lavalamp@spiritual-machines.org>
Subject:   Re: gmirror: degraded, Component ad4 (device gm0) broken, skipping.
Message-ID:  <200702141522.13283.lists@jnielsen.net>
In-Reply-To: <20070214151204.Q59589@arbitor.digitalfreaks.org>
References:  <43E076CC.2090107@juiceless.net> <20070214151204.Q59589@arbitor.digitalfreaks.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 14 February 2007 15:13, Brian A. Seklecki wrote:
> > gmirror insert gm0 ad4
>
> The big question is:
>
> In your example, ad4 has already been "prepped" for use in as a component
> in the gmirror by ....?
>
> Or will it just overwrite anything on ad4 regardless?

No prep is necessary when using raw devices such as ad4. The insert operation 
will overwrite everything (or the first $VOLUME_SIZE blocks) on ad4 with the 
contents of the mirror.

Obviously if you want to use only a portion of a drive as a gmirror consumer 
then the drive should be fdisk'ed and/or bsdlabel'ed and the device name of 
the slice or partition (e.g. ad4a, ad4s1, or ad4s1a depending) should be used 
instead of ad4 as the gmirror consumer.

JN



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