LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Powering down a harddrive when it's idle. (https://www.linuxquestions.org/questions/linux-hardware-18/powering-down-a-harddrive-when-its-idle-110626/)

jsbush 10-30-2003 08:10 PM

Powering down a harddrive when it's idle.
 
Is it possilbe to have your harddrive power down after x amount of time on idle?

I'm running RedHat 9.0

ming0 10-30-2003 10:23 PM

Yes, the util is called hdparm... I am sortof a newb, but I have screwed around with it--the man page is fairly thourough.

Here is a good tutorial from Oreilly.net on how to use hdparm.

jsbush 10-30-2003 10:49 PM

[root@dhcppc4 root]# hdparm -C /dev/sda

/dev/sda:
operation not supported on SCSI disks



I guess hdarm doesn't support SCSI drives. Any other idea's?


Thanks

adz 10-31-2003 10:09 AM

Is it a SCSI disk or just a SCSI-emulated disk? If it's SCSI-emulated then point hdparm to the original ide device (/dev/hdc or whatever). If it's true SCSI then I don't know how to mess with that.

jsbush 10-31-2003 12:33 PM

No it's a true scsi.

Thanks for your help though.

jsbush 11-03-2003 08:31 AM

Still looking for a program that will do this for SCSI drives.

adz 11-03-2003 11:38 AM

I've come across an app called scsitools. I don't know where to get an rpm. The deb package is available through the usual channels if you use debian. Have a look around www.rpm.org for it. It does these things:

scsiinfo: displays SCSI drive low-level information and modifies SCSI
drive settings,
scsidev: makes permanent SCSI LUN -> devicename connections,
scsifmt: low-level SCSI formatter,
sraw: benchmarks raw SCSI I/O rates bypassing the buffer cache,
scsistop: low-level SCSI drive start/stop program,
scsi-spin: program to manually spin up and down a SCSI device.

There's a related package that I've found. It seems to split this up into parts and not all the above is included. The link for it is: http://www.speakeasy.org/~xyzzy/scsi.html. I just typed in "hdparm scsi" into google and found it in minutes. Mind you it was a polish site that directed me to it but I'm sure there are mentions of it in english.

Btw, they seemed to mention the need for a kernel patch if you want your drive to automatically powerdown after a certain idle timeout. Not sure if this is still the case.


All times are GMT -5. The time now is 06:59 AM.