Here is a little test. Check your documentation: Do you know how to power down and power up the equipment in your computer room? If you had to power off your site in a hurry would you know how? If you wanted to script a shutdown, could you do it?
Here are some hints and tips that might help you with some of my favourite products:
The process to power up or down your DS8000 is documented in the Information Center here.
If you want to script powering off a DS8000 storage unit you can use the chsu -pwroff DSCLI command. This command will shut down and power off the specified DS8000 unit. Be careful before powering off the unit to ensure that all I/O activity has been stopped. An example of the command is shown below. Your machine will have a different IP address, password and serial number to mine. Note the serial number always ends in zero because we send the command to the storage unit.
dscli -hmc1 10.1.60.240 -user admin -passwd passw0rd chsu -pwroff -dev IBM.2107-75DC710
It takes over a minute before you will see any change in the machine. So be patient. The HMC will not power off. You can either leave it powered on or shut it down manually.
To power the DS8000 back on, use the chsu –pwron command:
dscli -hmc1 10.1.60.240 -user admin -passwd passw0rd chsu -pwron -dev IBM.2107-75DC710
Storwize V7000 and SVC
The SVC Information Center explains the process to power down and up here.
I created a short video on how to shutdown your Storwize V7000 using the V7000 GUI. You can view it on Youtube:
If you want to issue this command from a script, you could use a single shot method like plink. In this example we first confirm we can connect to the Storwize V7000 and that both node canisters are up and running. These commands will also work on an SVC.
C:\Program Files (x86)\PuTTY>plink -i icat.ppk firstname.lastname@example.org svcinfo lsnode id name UPS_serial_number WWNN status IO_group_id 4 node1 50050768020004F4 online 0 17 node2 50050768020004F5 online 0
We then issue the stopcluster command. Note it requires a response (you need to enter the letter y).
C:\Program Files (x86)\PuTTY>plink -i icat.ppk email@example.com svctask stopcluster -force Are you sure that you want to continue with the shut down?
The IBM Redbook, IBM XIV Storage System: Architecture, Implementation, and Usage, found here explains the power off process very well so I reproduced the following two pages using Slideshare:
C:\Program Files (x86)\XIV\GUI10>xcli -m 10.1.60.100 -u admin -p adminadmin state_list Category Value system_state on target_state on safe_mode no shutdown_reason No Shutdown off_type off redundancy_status Full Redundancy
We now issue the shutdown command to power the XIV down. Note that I end the command with a -y to force confirmation. If you do not use the -y then the command will not work as we are not in interactive mode.
C:\Program Files (x86)\XIV\GUI10>xcli -m 10.1.60.100 -u admin -p adminadmin shutdown -y Command executed successfully.
If you are getting email notifications from the XIV, you will get an email that looks like this, which is a nice way of saying goodbye:
Event details: **************** Severity: Major Code: USER_SHUTDOWN Description: System is shutting down due to a user request. ID: 7723 Time: 2011-08-08 12:58:48 System ID: 3760
The ability to power down your storage via a single command is fairly significant. You clearly do not want that ability to be misused, so changing your passwords away from defaults is very important. When I visit a customer and find their passwords are defaults it makes my life easy but makes my heart quail. I call the following message the Brocade logon message of shame, kudos to Brocade for posting this at every logon until passwords are changed, brickbats for clients who ignore it and hit control-C.