It is not possible to rename ZFS SNAPSHOT that is cloned and mounted as / filesystem. Fix: Should be as easy as that one: http://www.freebsd.org/cgi/query-pr.cgi?pr=167905
Responsible Changed From-To: freebsd-bugs->freebsd-fs Over to maintainer(s).
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
Is this still an issue for you? A lot has changed since 2012. Also, could you be a little more clear about what the problem is? Normally a ZFS filesystem should be unmounted (and remounted elsewhere) when renamed. That's intended behavior.
Still. # zfs rename sys/ROOT/default sys/ROOT/default1 cannot unmount '/': Invalid argument Is the unmount really necessary?
(In reply to vermaden from comment #4) Yes, it is. The dataset can have descendants, their full names obviously also change, they need to be mounted at new paths, etc. zfs could be smarter about datasets with mountpoint=legacy and maybe it is, I haven't checked. If you know what you are doing you can use zfs rename -u. See the manual page.
(In reply to Andriy Gapon from comment #5) # zfs rename -u sys/ROOT/default sys/ROOT/default-one # zfs rename -u sys/ROOT/default-one sys/ROOT/default Works like a charm, sorry for not reading man page that attentively ... You may close this one.