AFP548 Changing the world one server at a time.

UPS and shutting down XRaid

Home › Forums › OS X Server and Client Discussion › Questions and Answers › UPS and shutting down XRaid

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #368585
    timmix
    Participant

    Hello,

    we have a brand new XServe connectet to a “APC SmartUPS 3000”.

    Well, the XServe goes down if the power breaks (we tested it). To safe the XRaid too, how can I shut down the XRaid without connecting the XRaid to the UPS with RS232, USB or the networkmanagementcard from APC?

    I’ve found a shell script “upsshutdown” in /usr/libexec/, so I think it will be possible to shut down the XRaid bevor the XServe is going down with some cool shell commands.

    #!/bin/sh
    [ ...  SNIPP something ... ]
    #
    # Take the system down.
    #
    if [[ -n $1 && "WaitForUPS" == $1 ]] ; then
        #
        # Wait for UPS to take the system down abruptly and unexpectedly.
        #
        ###### HOW SHUTDOWN XRAID HERE ??????????? ######
        shutdown -hu now "${MSG}"
    else
        #
        # Gently shutdown the system immediately.
        #
        ###### AND HOW SHUTTING DOWN XRAID HERE ???????????? ######
        shutdown -h now "${MSG}"
    fi

    Any suggestions or some startingpoints where to look?

    Thank you.

    —
    Timm

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.