Skip to content

Instantly share code, notes, and snippets.

@dlangille
Created June 20, 2020 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlangille/383cb0fe9d8ababfae14ec988bd25299 to your computer and use it in GitHub Desktop.
Save dlangille/383cb0fe9d8ababfae14ec988bd25299 to your computer and use it in GitHub Desktop.
renaming a zpool
root@mfsbsd:~ # zpool import -f -R /dst zroot zroot_new
root@mfsbsd:~ # zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
zroot_new 212G 480M 212G - - 0% 0% 1.00x ONLINE /dst
root@mfsbsd:~ # zpool export zroot_new
root@mfsbsd:~ # zpool import -f -R /dst zroot_new
root@mfsbsd:~ # zpool export zroot_new
root@mfsbsd:~ # shutdown -r now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment