Re: Question about Linux shutdown
CP SIGNAL SHUTDOWN causes the standard Linux shutdown process to be executed, through the init scripts. If the software you mention contains quiesce or shutdown commands in the init scripts, it will be executed with SIGNAL SHUTDOWN. The big question then is of the time frame. Is 90 seconds enough time to guarantee that the software is all shutdown before CP pulls the rug out from under the virtual machine? THAT is what you need to make sure of. Your shutdown timer may have to be changed. The shutdown timer can be set system wide, so that it does not need to be specified on each command. On 08/05/2011 12:42 AM, Lu GL Gao wrote: If many softwares run on our z/Linux such as OCFS2, OMEGAMON XE Agent and DB2, does command 'CP SIGNAL SHUTDOWN TSTLNX1 WITHIN 90' impacts those softwares? I mean, because thoes software were not stop by normal steps but shutdown linux directly, do thoes softwares will start normally once z/Linux boots again? The reason why I ask this question is that I need to automatically backup linux system by Operation Manager for z/VM, before backing-up, linux should be shutdowned. I just wonder how to automatically stop softwares running on linux to be backup. Best Regards! Gao Lu (高路) I/T Specialist Global Technology Services IBM Global Services (China) Company Limited. Address:18/F, Pangu Plaza, No.27, Central North 4th Ring Road, Chaoyang District, Beijing, 100101 地址:北京市朝阳区北四环中路27号盘古大观写字楼18层,100101 BeiJing 100027, PRC Cell Phone: 15001327619 Internet ID: lu...@cn.ibm.com -- Rich Smrcina Velocity Software, Inc. http://www.velocitysoftware.com Catch the WAVV! http://www.wavv.org WAVV 2012 - April 13-17, 2012 Covington, KY
Re: Question about Linux shutdown
Thanks! Because we have many applications and softwares on linux, maybe some of them have pending stop, or maybe some have problem to fail stop. Even though I set a big timer, it is possible that system shutdown is prior to software's normal stop. How to solve this situation? Best Regards! Gao Lu (高路) I/T Specialist Global Technology Services IBM Global Services (China) Company Limited. Address:18/F, Pangu Plaza, No.27, Central North 4th Ring Road, Chaoyang District, Beijing, 100101 地址:北京市朝阳区北四环中路27号盘古大观写字楼18层,100101 BeiJing 100027, PRC Cell Phone: 15001327619 Internet ID: lu...@cn.ibm.com Rich Smrcina rich@velocitysof tware.com To Sent by: The IBM IBMVM@LISTSERV.UARK.EDU z/VM Operating cc System IBMVM@LISTSERV.U Subject ARK.EDU Re: Question about Linux shutdown 2011-08-05 16:28 Please respond to The IBM z/VM Operating System IBMVM@LISTSERV.U ARK.EDU CP SIGNAL SHUTDOWN causes the standard Linux shutdown process to be executed, through the init scripts. If the software you mention contains quiesce or shutdown commands in the init scripts, it will be executed with SIGNAL SHUTDOWN. The big question then is of the time frame. Is 90 seconds enough time to guarantee that the software is all shutdown before CP pulls the rug out from under the virtual machine? THAT is what you need to make sure of. Your shutdown timer may have to be changed. The shutdown timer can be set system wide, so that it does not need to be specified on each command. On 08/05/2011 12:42 AM, Lu GL Gao wrote: If many softwares run on our z/Linux such as OCFS2, OMEGAMON XE Agent and DB2, does command 'CP SIGNAL SHUTDOWN TSTLNX1 WITHIN 90' impacts those softwares? I mean, because thoes software were not stop by normal steps but shutdown linux directly, do thoes softwares will start normally once z/Linux boots again? The reason why I ask this question is that I need to automatically backup linux system by Operation Manager for z/VM, before backing-up, linux should be shutdowned. I just wonder how to automatically stop softwares running on linux to be backup. Best Regards! Gao Lu (高路) I/T Specialist Global Technology Services IBM Global Services (China) Company Limited. Address:18/F, Pangu Plaza, No.27, Central North 4th Ring Road, Chaoyang District, Beijing, 100101 地址:北京市朝阳区北四环中路27号盘古大观写字楼18层,100101 BeiJing 100027, PRC Cell Phone: 15001327619 Internet ID: lu...@cn.ibm.com -- Rich Smrcina Velocity Software, Inc. http://www.velocitysoftware.com Catch the WAVV! http://www.wavv.org WAVV 2012 - April 13-17, 2012 Covington, KY
Re: Question about Linux shutdown
The timer can be set up to 32767 seconds. You probably don't want to go that high in practice, you'll be waiting over 9 hours for a machine to just be logged off. Set the timer for normal shutdown times with some extra. If they fail to terminate cleanly, investigate the cause and resolve the problem. I would normally set the default to 600 seconds, that worked the vast majority of the time. Of course, different software has different needs. On 08/05/2011 03:47 AM, Lu GL Gao wrote: Thanks! Because we have many applications and softwares on linux, maybe some of them have pending stop, or maybe some have problem to fail stop. Even though I set a big timer, it is possible that system shutdown is prior to software's normal stop. How to solve this situation? Best Regards! Gao Lu (高路) I/T Specialist Global Technology Services IBM Global Services (China) Company Limited. Address:18/F, Pangu Plaza, No.27, Central North 4th Ring Road, Chaoyang District, Beijing, 100101 地址:北京市朝阳区北四环中路27号盘古大观写字楼18层,100101 BeiJing 100027, PRC Cell Phone: 15001327619 Internet ID: lu...@cn.ibm.com Inactive hide details for Rich Smrcina ---2011-08-05 16:28:28---CP SIGNAL SHUTDOWN causes the standard Linux shutdown process tRich Smrcina ---2011-08-05 16:28:28---CP SIGNAL SHUTDOWN causes the standard Linux shutdown process to be executed, through *Rich Smrcina r...@velocitysoftware.com* Sent by: The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU 2011-08-05 16:28 Please respond to The IBM z/VM Operating System IBMVM@LISTSERV.UARK.EDU To IBMVM@LISTSERV.UARK.EDU cc Subject Re: Question about Linux shutdown CP SIGNAL SHUTDOWN causes the standard Linux shutdown process to be executed, through the init scripts. If the software you mention contains quiesce or shutdown commands in the init scripts, it will be executed with SIGNAL SHUTDOWN. The big question then is of the time frame. Is 90 seconds enough time to guarantee that the software is all shutdown before CP pulls the rug out from under the virtual machine? THAT is what you need to make sure of. Your shutdown timer may have to be changed. The shutdown timer can be set system wide, so that it does not need to be specified on each command. On 08/05/2011 12:42 AM, Lu GL Gao wrote: If many softwares run on our z/Linux such as OCFS2, OMEGAMON XE Agent and DB2, does command 'CP SIGNAL SHUTDOWN TSTLNX1 WITHIN 90' impacts those softwares? I mean, because thoes software were not stop by normal steps but shutdown linux directly, do thoes softwares will start normally once z/Linux boots again? The reason why I ask this question is that I need to automatically backup linux system by Operation Manager for z/VM, before backing-up, linux should be shutdowned. I just wonder how to automatically stop softwares running on linux to be backup. Best Regards! Gao Lu (高路) I/T Specialist Global Technology Services IBM Global Services (China) Company Limited. Address:18/F, Pangu Plaza, No.27, Central North 4th Ring Road, Chaoyang District, Beijing, 100101 地址:北京市朝阳区北四环中路27号盘古大观写字楼18层,100101 BeiJing 100027, PRC Cell Phone: 15001327619 Internet ID: lu...@cn.ibm.com -- Rich Smrcina Velocity Software, Inc. http://www.velocitysoftware.com Catch the WAVV! http://www.wavv.org WAVV 2012 - April 13-17, 2012 Covington, KY -- Rich Smrcina Velocity Software, Inc. http://www.velocitysoftware.com Catch the WAVV! http://www.wavv.org WAVV 2012 - April 13-17, 2012 Covington, KY
Re: Question about Linux shutdown
you'll be waiting over 9 hours for a machine to just be logged off. *up to* more than 9 hours, right? If the machine shuts down in two minutes for example, won't it halt and signal back to z/VM that it's done? (whether it then gets logged off is another matter) I would normally set the default to 600 seconds We just moved from 5 minutes (SET SIGNAL SHUTDOWN 300) to 10 minutes (SET SIGNAL SHUTDOWN 600) as some of our systems were not shutting down within 5 minutes. Mike MacIsaac mike...@us.ibm.com (845) 433-7061
Re: Question about Linux shutdown
On 08/05/2011 06:18 AM, Michael MacIsaac wrote: you'll be waiting over 9 hours for a machine to just be logged off. *up to* more than 9 hours, right? If the machine shuts down in two minutes for example, won't it halt and signal back to z/VM that it's done? (whether it then gets logged off is another matter) Yes, of course. But his question was related to if there's a problem during shutdown and a termination process hangs or something sinister like that. -- Rich Smrcina Velocity Software, Inc. http://www.velocitysoftware.com Catch the WAVV! http://www.wavv.org WAVV 2012 - April 13-17, 2012 Covington, KY
Re: Question about Linux shutdown
On Fri, Aug 5, 2011 at 1:18 PM, Michael MacIsaac mike...@us.ibm.com wrote: I would normally set the default to 600 seconds We just moved from 5 minutes (SET SIGNAL SHUTDOWN 300) to 10 minutes (SET SIGNAL SHUTDOWN 600) as some of our systems were not shutting down within 5 minutes. Systems with high memory overcommit benefit from lowering LDUBUF. This makes the penguins leave in a more orderly fashion when they remain seated on the eligible list until there are sufficient resources to complete their exit. At one installation we actually did the evacuations by groups of servers rather than rush them all to the exit at the same time. Based on the monitor data you could even come up with the proper pacing. Another interesting approach is be to trigger drop_caches as part of the shutdown process and then inflate and deflate the CMM balloon according to the resources that it frees. I take donations from those with copious spare time ;-) Rob van der Heij Velocity Software http://www.velocitysoftware.com/
Re: Question about Linux shutdown
SIGNAL SHUTDOWN (if configured in the Linux guest) will run the equivalent of shutdown -h now, so as long as you provide the Linux guest time enough to execute a normal shutdown, it's safe to do that. 90 seconds may not be enough time - do a test shutdown manually to determine a rough idea of how long the system takes to shut down normally and add about 30 seconds for safety. As far as startup, the system will run the normal startup scripts when autologged, so as long as the applications are configured to be started by init normally, you're fine.