[mythtv-users] Spin down drives

Josu Lazkano josu.lazkano at gmail.com
Tue May 10 16:05:42 UTC 2011


2011/5/10 Fa <fayoeu at gmail.com>:
> I been tinkering around.  Setting the spindown to 30 mins via  "hdparm -S
> 241/dev/sda".  However, i am finding hard to track down the things which are
> writing to the drives.  Sure I can use lsof or fuser to find them, but
> that's just a hassle.  Oh, I also tried to add noatime to my fstab.
> LABEL=mythtv2           /export/data2           xfs
> defaults,noatime,allocsize=512m 0 0
> For some reason, I can only get 1 drive out of my 9 drives to spin down.  I
> am still chasing after processes that seems to access them at regular
> intervals.  I am trying to aggressively save electricity and this server is
> the biggest draw.
> On Tue, May 10, 2011 at 8:48 AM, John Drescher <drescherjm at gmail.com> wrote:
>>
>> On Tue, May 10, 2011 at 11:44 AM, Josu Lazkano <josu.lazkano at gmail.com>
>> wrote:
>> > Hello, I have a litle HTPC/server with 2 SATA drives. The first one is
>> > 2.5 160GB with EXT3 and the OS. The second one is a 2TB drives with
>> > XFS and stores livetv, recordings, videos, music and images (all
>> > multimedia files).
>> >
>> > Some years ago, I used hdparm to stop my IDE drives on a old server. I
>> > want to do the same, stop the 2TB drive when it is not used.
>> >
>> > Before start to search, I want to know your experience or suggestions.
>> > Is there any other software like hdparm?
>> >
>>
>> I believe hdparm is still the tool to use since the actual spinning
>> down can be done by the drive itself. The big problem with this
>> however is getting MythTV and the rest of your system (like gnome) to
>> stop trying to access drives when it does not need to.
>>
>>
>> John
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
>

Thanks for the reply, I try to spin down for 5 seconds, but it doesn't stop:

# hdparm -S1 /dev/sdb

/dev/sdb:
 setting standby to 1 (5 seconds)

# hdparm -C /dev/sdb

/dev/sdb:
 drive state is:  active/idle

This is my fstab line:

/dev/sdb1 /mnt/myth xfs noatime,nodiratime,allocsize=512m      0       0

I will continue searching, thanks.

-- 
Josu Lazkano


More information about the mythtv-users mailing list