Project

General

Profile

Actions

Feature #1789

closed

"zpool labelclear" should remove ZFS label on desired devices

Added by Martin Matuška almost 12 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
zfs - Zettabyte File System
Start date:
2011-11-18
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
External Bug:

Description

Add the "zpool labelclear" command. This command can be used to wipe the label data from a device that is not active in a pool. The optional "-f" argument can be used to treat an exported or foreign vdev as "inactive" thus allowing its label information to be cleared.

Patch author: Justin T. Gibbs <>

Webrev: http://cr.illumos.org/view/9ir0z5ws/


Related issues

Is duplicate of illumos gate - Feature #6418: zpool should have a label clearing commandClosedWill Andrews2015-10-31

Actions
Actions #1

Updated by Martin Matuška almost 12 years ago

Updated webrev with correct issue number: http://cr.illumos.org/view/6np4i71b/labelclear/

Actions #2

Updated by Mark Musante almost 12 years ago

  • Status changed from New to Feedback

Workaround:

  1. zpool create -f tank $disk && zpool destroy tank
Actions #3

Updated by Martin Matuška almost 12 years ago

New webrev, included changes suggested from Eric Schrock and command renamed to "wipe":
http://cr.illumos.org/view/zn6y7udd/wipe

Actions #4

Updated by Yuri Pankov about 11 years ago

Anything stopping this from going forward (as provided workaround doesn't really work)?

Actions #5

Updated by Alexander Eremin almost 11 years ago

Is it possible to implement this? This option is very useful

Actions #6

Updated by Yuri Pankov over 7 years ago

  • Status changed from Feedback to Closed

Closing as the duplicate of #6418.

Actions #7

Updated by Yuri Pankov over 7 years ago

  • Is duplicate of Feature #6418: zpool should have a label clearing command added
Actions

Also available in: Atom PDF