I've been discussing the idea of whether it would be possible/useful to write 
something to trap the hardware LPAR deactivation signal and use that to trigger 
an controlled emergency shutdown of z/OS. On VM and VSE, there is a trap 
present in the base OS that grabs that signal and starts a controlled shutdown 
of the OS (you can simulate it using the SIGNAL SHUTDOWN command on VM). z/OS 
doesn't seem to have any knowledge of this and proceeds to die horribly when 
the timer specified on the deactivate fires and the hardware goes away.

Seems to me that this would be a Good Thing to have even for a LPAR-only 
install (in case some operator deactivates the wrong LPAR, or some similar 
awfulness) -- z/OS could do what it could to save state and then go down as 
gracefully as the time allotted (the LPAR deactivate signal has an optional 
time delay parm) permits. (The original need for us was to trigger automatic 
shutdown of the System Z processing when the UPS battery was getting low on our 
zPDT development system). 

I have sample assembler code on VM to trap the signal, but am not sure how best 
to implement this on z/OS. Suggestions? Ideas?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to