Hi, I am having trouble configuring SLES 12 to logoff the z/VM guest when it shuts down (in some situations). In SLES 11 I updated the parameters in /etc/zipl.conf and specified 'vmpoff=LOGOFF' and also modified the ctrl-alt-del line in /etc/inittab from ca::ctrlaltdel:/sbin/shutdown -r -t 4 now to ca::ctrlaltdel:/sbin/shutdown -h -t 4 now
The z/VM guest is automatically logged off with the above if the 'shutdown -h..' command is issued from Linux or if 'signal shutdown guest-name within ...' from an authorized z/VM guest. By automatically logged off I mean that the z/VM login screen is displayed if you are connected to the guests console. With SLES 12 /etc/inittab no longer exists - because systemd is now used where systemv was used in prior releases. I modified the zipl parameters, which were incorporated into the grub2 parameters, and specified 'vmpoff=LOGOFF'. Issuing Linux's 'shutdown -h...' command causes the guest to log off from z/VM. If I issue the 'signal shutdown..' command Linux shuts down but the guest is not logged off - the last line on the console is the disabled wait PSW HCPGIR450W CP entered; disabled wait PSW 00020001 80000000 00000000 00000FFF I need for the guest to log off when a 'signal shutdown' is issued. My production system only uses mainframe dasd (mirrored) and we shutdown all production servers (via a REXX EXEC) just after midnight on Friday night to get a clean backup of the dasd. After the servers come down, Operations runs a batch job on z/OS to break the mirrors and when this job completes (after a few minutes) they reply to a prompt issued by the REXX exec which then boots all of the servers. The mirror for each volume is reconnected when the FDR backup on z/OS completes for that volume. If the guest does not log off, the 'xautolog guest-name' command fails xautolog lnxadmin HCPLGA054E Already logged on LDEV L0005 A Novell technician pointed me at an IBM manual, "Device Drivers, Features, and Commands on SUSE Linux Enterprise Server 12", which mentions a relatively new command called chshut. It aappears that it was introduced with one of the SLES 11 Service Packs. I've issued the following chshut commands but a 'signal shutdown' still does not cause the guest to log off: chshut halt vmcmd LOGOFF chshut poff VMCMD LOGOFF After issuing the commands I display the settings with 'lsshut'. It shows Trigger Action ======================== Halt vmcmd ("LOGOFF") Power off vmcmd ("LOGOFF") Reboot reipl Restart kdump,stop Panic kdump,stop When I reboot the server the Action for the 'Halt' setting once again is set to 'stop'. I have also tried to modify how systemd handles the 'signal shutdown' and this change also does not log the guest off. Maybe I'm not doing something correctly? These are the commands that I've issued (which I found via Google searches). cd /usr/lib/systemd/system rm ctrl-alt-del.target ln -s poweroff.target ctrl-alt-del.target rm halt.target ln -s halt.target ctrl-alt-del.target systemctl daemon-reload I've read about systemd and found that a better way may be to copy files to /etc/systemd/system and make my changes there (so that they aren't 'lost' if/when maintenance is applied to systemd). I will do that once I get the shutdown to work properly. My SLES 12 server has had maintenance applied up to around 10:00 AM on 12/17. It is running on a z/VM 6.3 non-SSI system. Any ideas? Harley Linker HARLEY LINKER JR. Sr. Systems Programmer (z/Linux, z/OS, z/VM) [Acxiom_IT_color] Acxiom Corporation EML harley.lin...@acxiom.com<mailto:harley.lin...@acxiom.com> TEL +1 630.944.5111 3333 Finley Road, 8th Floor - NW, Downers Grove, IL, 60515, USA www.acxiomit.com<http://www.acxiomit.com/> [Friend Us on Facebook]<http://www.facebook.com/acxiomcorp> [Link Us on LinkedIn] <http://www.linkedin.com/groupRegistration?gid=2901735> [Follow Us on Twitter] <http://twitter.com/acxiom> *************************************************************************** The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. **************************************************************************** ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/