I am working with solaris 8 containers on solaris 10 at work. Today I was working with a container that had some zfs partitions mounted in it and wanted to move it to another machine. When I tried to detach the container I received the following error message.
T2000# zoneadm -z myzone detach
zoneadm: zone ‘myzone’: These file-systems are mounted on subdirectories of /zone_roots/myzone.zoneadm: zone ‘myzone’: /zone_roots/myzone/vol0
zoneadm: zone ‘myzone’: /zone_roots/myzone/data
T2000# umount /zone_roots/myzone/vol0/
T2000# umount /zone_roots/myzone/data
T2000# zoneadm -z myzone detach
T2000#
I googled to see if there was an obvious answer but found none. It turns out I simply had to unmount the two filesystems before detaching the container. Simple fix but it caused me some serious head scratching for a few minutes.
I hope… I could learn this solaris zfs archi