Spin Disk Up and Down

Top  Previous  Next

These commands are supported on SCSI, SAS, and Fibre Channel Disks.  They let you query whether the selected disk is currently spun up, spun down, or in a transitional state.

 

Spin Up

The -spinup command sends the SCSI START UNIT command to the selected disk, which causes it to spin up. If the drive is already spun up, then the command will be ignored. This version of the spin-up command waits for the disk to complete the spin-up process before returning the results.

 

Reasons for using spin up/down

You can simulate a type of a drive failure by spinning a disk down, and add delays to benchmarks for situations when you want to see what will happen to some hardware when it is under stress.
Sometimes JBOD-attached fibre channel disks will spin down if they have not been accessed for a while.  Use the spin-up either as a stand-alone command, or a background job to prevent a system from spinning disks down.
If you have a subsystem that will not be accessed for a while, and your host O/S allows, you can spin it down to conserve power as part of a green initiative.

 

./smartmon-ux -spinup /dev/rdsk/c4t16d0s0

SMARTMon-UX [Release 1.36, Build  8-JUN-2008] - Copyright 2001-2008 SANtools(R), Inc. http://www.SANtools.com

Discovered SEAGATE ST3146855SS S/N "3LN27XJ9" on /dev/rdsk/c4t16d0s0 (Not Enabling SMART)(140014 MB)

 

The disk is now spun up

 

Program Ended.

 

(The reported results for this and subsequent commands, with exception of the spin inquiry, will be the same regardless of whether the disk is currently up, down, or in a transitional state)

 

Spin Up Immediate

The -spinupi command sends the SCSI START UNIT IMMEDIATE command to the selected disk. Results are similar to START UNIT, but the command is sent to the disk, and does not wait for the drive to spin up before it returns.

 

./smartmon-ux -spinup /dev/rdsk/c4t16d0s0

SMARTMon-UX [Release 1.36, Build  8-JUN-2008] - Copyright 2001-2008 SANtools(R), Inc. http://www.SANtools.com

Discovered SEAGATE ST3146855SS S/N "3LN27XJ9" on /dev/rdsk/c4t16d0s0 (Not Enabling SMART)(140014 MB)

 

Successfully instructed the disk to spin up

 

Program Ended.

 

Spin Down

The -spindown command sends the SCSI STOP UNIT command to the selected disk, which causes it to spin down. If the drive is already spun down, then the command will be ignored. This version of the spin-down command waits for the disk to complete the spin-down process before returning the results.

 

./smartmon-ux -spindown /dev/rdsk/c4t16d0s0

SMARTMon-UX [Release 1.36, Build  8-JUN-2008] - Copyright 2001-2008 SANtools(R), Inc. http://www.SANtools.com

Discovered SEAGATE ST3146855SS S/N "3LN27XJ9" on /dev/rdsk/c4t16d0s0 (Not Enabling SMART)(140014 MB)

 

The disk is now spun down

 

Program Ended.

 

(The reported results for this and subsequent commands, with exception of the spin inquiry, will be the same regardless of whether the disk is currently up, down, or in a transitional state)

 

Spin Down Immediate

The -spindowni command sends the SCSI STOP UNIT IMMEDIATE command to the selected disk. Results are similar to STOP UNIT, but the command is sent to the disk, and does not wait for the drive to spin down before it returns.

 

./smartmon-ux -spindowni /dev/rdsk/c4t16d0s0

SMARTMon-UX [Release 1.36, Build  8-JUN-2008] - Copyright 2001-2008 SANtools(R), Inc. http://www.SANtools.com

Discovered SEAGATE ST3146855SS S/N "3LN27XJ9" on /dev/rdsk/c4t16d0s0 (Not Enabling SMART)(140014 MB)

 

Successfully instructed the disk to spin down

 

Program Ended.

 

Spin Inquiry

The -spinq command queries the disk to see if it is up, down, or transitioning.

 

./smartmon-ux -spinq /dev/rdsk/c4t16d0s0

SMARTMon-UX [Release 1.36, Build  8-JUN-2008] - Copyright 2001-2008 SANtools(R), Inc. http://www.SANtools.com

Discovered SEAGATE ST3146855SS S/N "3LN27XJ9" on /dev/rdsk/c4t16d0s0 (Not Enabling SMART)(140014 MB)

 

The disk is spun up

 

Program Ended.