This discussion is archived
3 Replies Latest reply: Mar 12, 2012 8:36 AM by 918007 RSS

Decommission only a non-global zone only

918007 Newbie
Currently Being Moderated
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?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points