Project

General

Profile

Feature #1789

"zpool labelclear" should remove ZFS label on desired devices

Added by Martin Matuška almost 8 years ago. Updated over 3 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

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 commandClosed2015-10-31

Actions

History

#1

Updated by Martin Matuška almost 8 years ago

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

#2

Updated by Mark Musante almost 8 years ago

  • Status changed from New to Feedback

Workaround:

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

Updated by Martin Matuška almost 8 years ago

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

#4

Updated by Yuri Pankov about 7 years ago

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

#5

Updated by Alexander Eremin almost 7 years ago

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

#6

Updated by Yuri Pankov over 3 years ago

  • Status changed from Feedback to Closed

Closing as the duplicate of #6418.

#7

Updated by Yuri Pankov over 3 years ago

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

Also available in: Atom PDF