Re: drive to standby after idle timeout?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




On Jul 17, 2007, at 11:59 AM, Tru Huynh wrote:

On Tue, Jul 17, 2007 at 11:35:07AM -0400, Brian wrote:
I'd like to to put the hard drives in standby mode during periods of
no activity. I'm just running a file server plus a couple small
things on a Qube 3 from home, although the web stuff will increase
it's still minimal.

On my NetBSD systems I can use atactl to do this via:

mount -u -o async,noatime,nodevmtime /
mount -u -o async,noatime /usr
atactl wd0 setidle 5

[wait a time]
# atactl wd0 checkpower
Current power status: Standby mode

I looked at smartctl but it doesn't look like I can set idle time
with it, just readout status and perform self-tests.  Is there a way?

if it's some IDE drive then hdparm(8) might help:


hdparm -y /dev/hdd

hmm.. still doesn't seem to stick:

---
root@qube3 /]# hdparm -y /dev/hda

/dev/hda:
issuing standby command
[root@qube3 /]# hdparm -C /dev/hda

/dev/hda:
drive state is: active/idle
[root@qube3 /]#

---
I see similar results when setting the spindown time with -S.

Recently run commands should be memory-resident, right? Or do I need to set something somewhere for that to happen?
(I'm not activating the drive again just to run hdparm am I?)

I don't see any cron events that are set for every minute or anything super short.

Do I need to set specific mount options?  If so, which ones?

Thanks-

Brian
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux