If you need to stop LifeKeeper, type the following command as root to stop it:

/etc/init.d/lifekeeper stop-nofailover

or

LKSTOP_MODE=stop-nofailover systemctl stop lifekeeper

This command will shut down LifeKeeper on the local system if it is currently running. It will first remove all protected resources from service on the local system then shut down the LifeKeeper daemons. Protected resources will not fail over to another system in the cluster. LifeKeeper will automatically restart when the system is restarted.

/etc/init.d/lifekeeper stop-daemons

or

LKSTOP_MODE=stop-daemons systemctl stop lifekeeper

This command will skip the section that removes resources from service. The resources will remain running on the local system but will no longer be protected by LifeKeeper. This command should be used with caution, because if resources are not gracefully shut down, then items such as SCSI locks will not be removed. If the system on which this command is executed subsequently fails or is shut down, the system(s) will NOT initiate failover of the appropriate resources. LifeKeeper will automatically restart when the system is restarted.

/etc/init.d/lifekeeper stop

or

systemctl stop lifekeeper

This command will remove the resources from service but does not set the !nofailover! flag (see LCDIflag(1M)) on any of the systems that it can communicate with. This means that failover will occur if the shutdown_switchover flag is set. If shutdown_switchover is not set, then this command behaves the same as /etc/init.d/lifekeeper stop-nofailover. LifeKeeper will automatically restart when the system is restarted.

/etc/init.d/lifekeeper stop-failover

or

LKSTOP_MODE=stop-failover systemctl stop lifekeeper

This command will remove resources from service and initiate failover. It will behave the same as /etc/init.d/lifekeeper stop when the shutdown_switchover flag is set. LifeKeeper will automatically restart when the system is restarted.

Note: Alternatively, you may stop LifeKeeper using:

  • /opt/LifeKeeper/bin/lkstop
    This command will shut down LifeKeeper on the local system if it is currently running. It will first remove all protected resources from service on the local system then shut down the LifeKeeper daemons.
  • /opt/LifeKeeper/bin/lkstop -f
    This command will skip the section that removes resources from service. The resources will remain running on the local system but will no longer be protected by LifeKeeper.

Disabling Automatic LifeKeeper Restart

If you do not want LifeKeeper to automatically restart when the system is restarted, type the following command:

chkconfig lifekeeper off

or

systemctl disable lifekeeper

See the chkconfig (or systemctl) man page for further information.

Feedback

Thanks for your feedback.

Post your comment on this topic.

Post Comment