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? Thanks! Brian
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: Cheers, Tru -- Tru Huynh (CentOS-3 i386/x86_64 Package Maintenance) http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xBEFA581B -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20070717/4109536d/attachment.sig>
On Jul 17, 2007, at 11:59 AM, Tru Huynh wrote:> > if it's some IDE drive then hdparm(8) might help:That's it, thanks! Bad keyword choices on my part, I guess. Brian
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 at qube3 /]# hdparm -y /dev/hda /dev/hda: issuing standby command [root at qube3 /]# hdparm -C /dev/hda /dev/hda: drive state is: active/idle [root at 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