I "inherited" management of a system, whose "/opt" (and some other large directory trees) are stored in the root file system.
My wish now is to create a new filesystem in the rpool (easy enough) for /opt, BUT I'd hope for some zfs magic, to have the /opt directory tree of /-filesystem efficiently moved to the new filesystem - that means: without having to copy it and then remove the original.
My naive understanding of zfs is that it is awesome and can already share stored information between snapshots, and I'd expect it could also just rearrange for a directory to show up in a different filesystem without moving any of the bulk data.
Is there a direct way? If really not, I can still do the "cp & rm".
PS: In case anyone wonders about the "why"? To get it out of the boot-environmemnt on solaris.
Edit: nope, at least not that directly... - only snapshots can be cloned... maybe still worth a deeper investigation.
– avl42 Nov 12 '20 at 16:35Based on the comments below, it is certainly possible that the answer I then found myself has its downsides, and if they turn out real, then this question would differ from the other one in your previous comment simply in that this one would have "no" answer.
– avl42 Apr 09 '21 at 16:57