Last active
July 24, 2016 09:11
-
-
Save jlgaddis/6e57a17458d389e6ef21d9050edcdb40 to your computer and use it in GitHub Desktop.
Wipe (old) ZFS metadata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sysctl kern.disks | |
kern.disks: da0 ada1 ada0 | |
# zpool import | |
pool: zroot | |
id: 15136818735282810090 | |
state: ONLINE | |
action: The pool can be imported using its name or numeric identifier. | |
config: | |
zroot ONLINE | |
mirror-0 ONLINE | |
gpt/zroot0 ONLINE | |
gpt/zroot1 ONLINE | |
# zpool labelclear -f /dev/ada0 | |
# zpool labelclear -f /dev/ada1 | |
# gpart destroy -F ada0 | |
ada0 destroyed | |
# gpart destroy -F ada1 | |
ada1 destroyed | |
# reboot | |
# zpool import | |
# zpool import -d /dev/gpt | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment