[CFR][ZFS] Add "zpool labelclear" command.
Pawel Jakub Dawidek
pjd at FreeBSD.org
Wed Jun 15 12:05:40 UTC 2011
On Tue, Jun 14, 2011 at 03:08:32PM -0600, Justin T. Gibbs wrote:
> ZFS rightfully has a lot of safety belts in place to ward off unintended
> data loss. But in some scenarios, the safety belts are so restrictive,
> the only way to proceed is to wipe the label information off of a drive.
>
> Here's an example:
>
> Pull a drive that is active in a pool on one system and stick it into
> another system. ZFS will correctly reject this drive as a member of
> a new pool or as the argument of a replace command. But if you really
> want to use that drive, how do you clear it's "potentially active"
> status? If the pool were imported, you could destroy it, but ZFS wont
> allow you to import a pool unless there are sufficient members for it
> to serve I/O (I know about the undocumented -F option for import,
> but users aren't going to find that). You can use dd to wipe the label
> data off, but where exactly does ZFS keep its for copies of the label?
In most of the cases like that you can use -f switch, eg. you can create
pool or replace vdev using one that is active when you use that switch.
I'm sure you are aware of this, so I guess it doesn't always work for you?
--
Pawel Jakub Dawidek http://www.wheelsystems.com
FreeBSD committer http://www.FreeBSD.org
Am I Evil? Yes, I Am! http://yomoli.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20110615/4defc3dd/attachment.pgp
More information about the freebsd-fs
mailing list