How to reboot a Solaris Zone stuck in shutting_down state
Today I had an interesting situation, when attempting to shutdown a Solaris 10 zone with the zoneadm halt command. All seemed well until I check the status and noticed that the zone had not shutdown correctly. Actually the state of the zone had not changed from the Running state to a Installed state but actually remained in a shutting_down state.
In looking around various logs I collect, I could not precisely determine the cause of this hung state. However, to solve this problem, I performed the following:
# zoneadm -z MYZONE unmount -f # zoneadm -z MYZONE reboot -- -s
Whilst the above commands were successful in getting the zone to halt I still need to investigate why the zone would not shutdown in the first instance (update to follow)...
Note: If you are still unable to shutdown a guest zone, then you will have no option but to perform a reboot of your global zone :(