How to panic a guest domain in Solaris 10
I recently came across a guest domain in a hung state, I couldn't even get a login prompt from it's console via the primary domain. However I could ping the domain, but alas no login via ssh either :-(
My only option was to force a kernel panic for the troublesome guest domain to ensure generating a crash dump when the guest domain has rebooted allowing for further analysis once the domain was back online.
To force a panic of the domain we issue an
panic-domain. For example:
# ldm panic-domain pd2-s10-nw76 # ldm list pd2-s10-nw76 NAME STATE FLAGS CONS VCPU MEMORY UTIL NORM UPTIME pd2-s10-nw76 active -t---- 5003 32 128G 100% 100% 72d 11h # telnet localhost 5003 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Connecting to console "pd2-s10-nw76" in group "pd2-s10-nw76" .... Press ~? for control options .. 5:57 100% done 100% done: 1787239 pages dumped, dump succeeded rebooting... Resetting... NOTICE: Entering OpenBoot. NOTICE: Fetching Guest MD from HV. NOTICE: Starting additional cpus. NOTICE: Initializing LDC services. NOTICE: Probing PCI devices. NOTICE: Finished PCI probing.
ldm panic-domain command ensured that a crash dump was generated when the guest domain rebooted.