This discussion is locked
PHuhn

Q: Looking for an automated way to Shutdown/Power-down XServe Raid (XSan)

I am trying to create an automated way to shutdown my whole server room, which includes two MDC's and a number of Apple XSan Raids. I have read the following:
http://discussions.apple.com/thread.jspa?messageID=3033792&#3033792
and
http://docs.info.apple.com/article.html?artnum=301787
and
http://forums.creativecow.net/cgi-bin/newright_read_postframe.cgi?forumid=180&univpostid=855461&postid=855461

So I have created an rc styled script to do the following:
1) Un-mount all xsan volumes on all Meta-data controllers via:
/bin/umount ${drv}
2) Stop all xsan volumes on all Meta-Data Controllers via:
cvadmin -e stop ${xsanvol}
3) Halt (power-off) all Meta-Data Controllers via:
/sbin/shutdown -t 15 -h now

My question is how can I power-down the Apple XSan raids? I have been playing with SNMP. Another possibility would be CIMV2/WBEM (but I see no discussion of that option).
Per SNMP, I have done the following:
snmpwalk -v 2c -c public <XSan ipaddress>
I get the following:

SNMPv2-MIB::sysDescr.0 = STRING: Xserve RAID V1.5
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::zeroDotZero
SNMPv2-MIB::sysUpTime.0 = Timeticks: (29644081) 3 days, 10:20:40.81
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING: MBNI-xRAID-02-2
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 79
SNMPv2-MIB::sysServices.0 = No more variables left in this MIB View (It is past the end of the MIB tree)

So if the solution is SNMP, then I would require the SNMP version, community, OID and set value, so that I may issue a snmpset command.

XServe Raid V1.4, Other OS, SNMP

Posted on Nov 5, 2010 12:58 PM

Close

Q: Looking for an automated way to Shutdown/Power-down XServe Raid (XSan)

  • All replies
  • Helpful answers

  • by Mathieu Mauser,

    Mathieu Mauser Mathieu Mauser Nov 5, 2010 12:58 PM in response to PHuhn
    Level 2 (210 points)
    Nov 5, 2010 12:58 PM in response to PHuhn
    Sounds like a great plan, but I've too often seen G5s hang on restart. They get stuck trying to unmount the Xsan volume. Using terminal and "shutdown -r now" works about the half the time. But some machines will hang forever until you power them down manually. So, a script might send out the commands but if some volumes don't unmount, and then you stop the volume, then what?
  • by PHuhn,

    PHuhn PHuhn Nov 5, 2010 12:58 PM in response to Mathieu Mauser
    Level 1 (0 points)
    Nov 5, 2010 12:58 PM in response to Mathieu Mauser
    I must confess ... my xsan shutdown script is currently untested because my environment is all in production. I am currently testing in a simulated environment. I hope to have it tested in the near future. That aside, the "cvadmin -e stop ${xsanvol}" is done in two loops (with a max of 3 tries). But, I will add a similar loop on the un-mount.
    Again, I am looking for the SNMP version, community, OID and set value, so that I may issue a snmpset command, or info on a CIMV2/WBEM solution (openwbem.org used by Apple Remote Desktop).


    XServe Raid   Other OS  
  • by Ernesto_Sanchez,

    Ernesto_Sanchez Ernesto_Sanchez Nov 5, 2010 12:58 PM in response to PHuhn
    Level 1 (0 points)
    Nov 5, 2010 12:58 PM in response to PHuhn
    Is the signal sent over Ethernet or the serial port to the RAIDs?
  • by PHuhn,

    PHuhn PHuhn Nov 5, 2010 12:59 PM in response to Ernesto_Sanchez
    Level 1 (0 points)
    Nov 5, 2010 12:59 PM in response to Ernesto_Sanchez
    The idea is use the ethernet connection.
    Again, I am looking for the SNMP version, community, OID and set value, so that I may issue a snmpset command, or use CIMV2/WBEM class method.


    XServe Raid   Other OS  
  • by PHuhn,

    PHuhn PHuhn Nov 5, 2010 12:59 PM in response to PHuhn
    Level 1 (0 points)
    Nov 5, 2010 12:59 PM in response to PHuhn
    SNMP really does not exist. I have listed the bulk of it. CIMV2/WBEM nada.

    The answer is download xserve-raid tools from:
    ftp://noc.hep.wisc.edu/pub/src/xserve-raid-tools/
    and read 'Notes'. Communication to and from XServe-Raid is done via PLists. While you are at it, do yourself a favor and try out the tools.

    Yes, issues around hanging on unmount does exist. The key to solving the problem is on all servers that are attaching to the XSan you must stop the StorNext service, or shut the computer down. On Unix computers you can use ssh and on Windows you can use ssh or NRPE_NT. Only, then you can proceed onto the MDC.

      Mac OS X (10.4.8)  

    XServe Raid Other OS   Mac OS X (10.3)