Best way to rename a ZFS Pool?

Other than export/import, is there a cleaner way to rename a pool without unmounting de FS?

Something like, say "zpool rename a b"?

Thanks.

There is no "zpool rename" command. A pool need to be reimported to have its name changed. You can change its file systems mountpoints but they must not be in use for the command to succeed so that probably wouldn't help here.

1 Like

Yeah, I was just using "zpool rename" as a hypothetical example of what I was trying to do.

Anyway, looks like the only option is to reimport the pool; just wanted to be sure. Thanks.