You can delete a non global zone if you no longer need it. Below is tips to delete non global zone. Fot this example your non global zone name is zone1.
- Shutdown non global zone# init 0
- See the status of non global zone. If your non global zone is already down, status become 'installed'.root@solaris-sunray # zoneadm list -cp0:global:running:/::native:shared2:zone1:installed:/export/home/zone1:3bec2239-802b-e1b4-99dd-bd732571e925:native:shared
- Uninstall non global zone. Your non global status become 'configured'.root@solaris-sunray # zoneadm -z zone1 uninstallroot@solaris-sunray # zoneadm list -cp0:global:running:/::native:shared2:zone1:configured:/export/home/zone1:3bec2239-802b-e1b4-99dd-bd732571e925:native:shared
- Delete non global zone.root@solaris-sunray # zoneadm -z zone1 delete
Are you sure you want to delete zone zone1(y/[n])? yroot@solaris-sunray # zoneadm list -cp0:global:running:/::native:shared
Instead of using init 0 you can halt the zone right and then uninstall and delete it.
ReplyDelete1. zoneadm -z zone1 halt
2. zoneadm -z zone1 uninstall
3. zonecfg -z zone1 delete
and I guess we can use "zonecfg" to delete the zone.