How to delete and unmount a zfs filesystem from a Solaris Zone

Run below commands to delete filesystem (fs) from zone named zone01:
# zonecfg -z zone01
zonecfg:zone01> remove fs dir=/data01
zonecfg:zone01> remove fs dir=/data02
zonecfg:zone01> commit
zonecfg:zone01> exit
#
Now destroy the zfs filesystem from the hosts:
# zfs destroy data_pool/data01/zone01
# zfs destroy data_pool/data02/zone01

Leave a Reply

Your email address will not be published. Required fields are marked *