Back to basics. What am I doing wrong?
Looks like your are attempting to rename a top-level file system. Since the top-level file system shares its name with the pool, you essentially need to rename the pool. Since that is a pain (export/import) we allow you to use the Finder's GetInfo on the Volume to rename the top-level. Here's the correct sequence for renaming a top-level/pool using the CLI:
- Code: Select all
$ sudo zpool export OWC
$ sudo zpool import OWC newname
$ zpool list
NAME SIZE ALLOC FREE CAP HEALTH ALTROOT
newname 296Gi 104Gi 192Gi 34% ONLINE -
Note that this works fine for non top-level file systems:
- Code: Select all
$ zfs create tank/foo
$ zfs rename tank/foo tank/bar
$ zfs list
NAME USED AVAIL REFER MOUNTPOINT
tank 104Gi 188Gi 104Gi /Volumes/tank
tank/bar 32.5Ki 188Gi 32.5Ki /Volumes/tank/bar
It would probably be a good idea to note this in the zfs man page and in the command output. This appears to be stock ZFS behavior.