If you try to stop a zone but it remains in shutting_down state, any further action will fail (i.e. detach)
root@solaris1:/root # zoneadm -z solariszone detach
zoneadm: zone ‘solariszones’: detach operation is invalid for shutting_down zones.
First important information is:
We should never kill the zsched process!!.
we have to check on the zone related zombi processes that are blocking our attempt to stop the zone (-z)
root@solaris1:/root # ps -fz solariszone UID PID PPID C STIME TTY TIME CMD root 4741 1 0 16:25:20 ? 0:16 /opt/jvm/bin/java -Xmx384m -Xminf0.01 -Xmaxf0.4 -Djava.net.preferIPv4S root 26085 1 0 16:24:42 ? 0:00 zsched root@solaris1 :/root # kill -9 4741 root@solaris1 :/root # zoneadm: zone 'b0d03702': zone is already halted