Greetings everyone.. I need to decommission one non-global zone server completely.
here is the server details.
# zoneadm list -cv
ID NAME STATUS PATH
0 global running /
3 water running /zones/water
5 smoke running /zones/smoke
# zfs list |grep smoke
zones/smoke 21.8G 1.77G 152M /zones/smoke
zones/smoke/u01 15.5G 1.77G 15.5G legacy
zones/smoke/u02 6.21G 1.77G 6.21G legacy
# zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
zones 68G 65.2G 2.83G 95% ONLINE -
Shut down the zone my-zone.
# zlogin smoke shutdown
Remove the root file system for my-zone.
# zoneadm -z smoke uninstall -F
Delete the configuration for my-zone.
# zonecfg -z smoke delete -F
List the zones on the system, to verify that my-zone is no longer listed.
# zoneadm list -iv
Remove the zfs of this zone
# zfs destroy zones/smoke/u01
# zfs destroy zones/smoke/u02
# zfs destroy zones/smoke
will this be enough to remove the zone completely or is there any step that i have missed out here?
I would probaby run a "zfs list -t all | grep smoke" command afterwards to make sure theres not still some storage still associated with the zone still lurking out there. In addition, you may need to clean up IP addresses in the host tables, DNS, etc.