LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-03-2007, 04:03 PM   #1
dansawyer
Member
 
Registered: Mar 2005
Posts: 124

Rep: Reputation: 15
how to 'spin down' scsi disks ?


All,

The system is fc6 with 4 scsi drives on a 2940 controller. My question is - during idle is there a way to cause scsi drives to 'spin down'?

Thanks - Dan
 
Old 02-03-2007, 04:18 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Try the hdparm utility.

Last edited by stress_junkie; 02-03-2007 at 04:22 PM.
 
Old 02-03-2007, 04:41 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
If that doesn't work, the sdparm utility at http://sg.torque.net/sg/sdparm.html looks like it supports spinning the disk down:
Code:
sdparm commands
The '--command=' option allows a command to be sent to the given device. The currently supported commands are:

    * capacity: sends a READ CAPACITY and if successful reports the number of blocks, block length and capacity expressed in MibiBytes (1048576 bytes). Valid for disks and CD/DVD drives with the appropriate media loaded.
    * eject: stops the medium (if it is spinning) and ejects it from the drive. Note that this may be prevented by software in which case use the 'unlock' command first.
    * load: loads the medium and then spins it up
    * ready: reports whether the medium is ready for IO. Ready usually means that it is present and spun up. If the device is not ready then the exit status will be 2 (see exit status section below).
    * sense: reports sense data (from a REQUEST SENSE SCSI command); can include power condition information, a progress indication for a time consuming command (e.g. format) or a report an informational exception (when MRIE=6)
    * start: spin up the medium
    * stop: spin down the medium
    * sync: send a SYNCHRONIZE CACHE SCSI command to the device.
    * unlock: instructs the device to allow medium removal (i.e. an eject). Beware, the OS may have had a good reason for preventing removal of the medium (e.g. it contains a mounted file system). Use at your own risk.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Forcing SG to claim scsi disks vivekv Linux - Hardware 2 03-14-2006 07:12 PM
FC4: unused hard disks "spin-up" every half an hour linuxproactive Fedora 2 07-26-2005 02:31 PM
cheep scsi disks berrance Linux - Hardware 0 12-06-2004 06:00 AM
Mounting external SCSI disks tdstrite Red Hat 3 11-04-2003 08:47 AM
dualbooting from two scsi disks till Linux - General 0 02-20-2001 03:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration