UNSOLVED

borninpa

updated

14 years ago

B

borninpa

40 Posts

0

4859

February 8th, 2013 13:00

How do I shutdown cluster in power outage

How do do a shutdown when unit goes onto UPS.  DO I need to write a script to do this from a monitoring PC or something like that?

  • dynamox

    11 Legend

    20419 Posts

    87439 Points

    815

    0

    Posted February 8th, 2013 13:00

    Under Cluster > Cluster Management ..there is an option to shutdown cluster

  • AndrewChung

    132 Posts

    815

    1

    Posted February 8th, 2013 13:00

    If you want to automate this, then you would most likely want to do this via a script so that you don't need human interaction.  I would recommend setting up a SSH key pair between a machine that notices that power is on UPS and the cluster.  For additional security, I would recommend setting up sudo on the cluster.  But a short shell script that will do this follows:

    cat << EOF | /usr/bin/isi config

    shutdown all

    yes

    EOF

    borninpa wrote:

    How do do a shutdown when unit goes onto UPS.  DO I need to write a script to do this from a monitoring PC or something like that?

  • dynamox

    11 Legend

    20419 Posts

    87439 Points

    815

    0

    Posted February 8th, 2013 14:00

    I would rather be notified of UPS failure and manually initiate this shutdown process, imagine an RCA explaining a bug in the script that took everything offline. Oopss ☺

  • AndrewChung

    132 Posts

    815

    0

    Posted February 11th, 2013 12:00

    Agreed.  Just providing a method.  However if you know your UPS battery is going to die in 10 minutes, I would rather have a graceful shutdown than a hard down.  Everyone has different needs.

    dynamox wrote:

    I would rather be notified of UPS failure and manually initiate this shutdown process, imagine an RCA explaining a bug in the script that took everything offline. Oopss ☺