Skip to content

Instantly share code, notes, and snippets.

@sam
Created January 16, 2012 18:35
Show Gist options
  • Save sam/1622225 to your computer and use it in GitHub Desktop.
Save sam/1622225 to your computer and use it in GitHub Desktop.
Move a single-disk zpool to another disk
# Attach your new "spare" device (c0t1d0 in this example)
# to your existing device (c0t0d0) as a mirror:
zpool attach zones c0t0d0 c0t1d0
# Wait until `zpool status` says resilvering is complete, then:
zpool detach zones c0t0d0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment