Sec, blogmal! - patches - smartmontools

Categories:

Everything

Dezember '17

MoDiMiDoFrSaSo
27282930123
45678910
11121314151617
18192021222324
25262728293031

Archive:

Sat, 03 Sep 2005

Smartmontools - letting sleeping disks sleep

As I wrote in an older entry I do check my disk temperature every minute to create nice Graphs. But this has a bad side-effect. If a disk is spun down (eg. with ataidle) it gets woken up by smartctl.

Some googling revealed, that smartd of the smartmontools has a feature to skip checks when a disk is idle, but smartctl does not. Some patching later, I had added a -n switch, to make smartctl skip reading, if a disk is in SUSPEND mode.

To my dismay, I found that the FreeBSD-specific code did not implement the CHECK_POWER_MODE function (see page 88 of the ATA spec), so I added that one, too.

Of course I have sent the patch with some explanation to the smartmontools developpers, but as usual, they don't even bother to respond to my mail.

So, for anyone who suffers from the same problem, here is the nospinup patch and the Freebsd CHECK_POWER_MODE patch

– Sec


posted at: 16:37 | Category: /patches | permanent link to this entry | 0 comments (trackback)
 

Your Comment
 
Name:
URL/Email: [http://... or mailto:you@wherever] (optional)
Title: (optional)
Comment:
Save my Name and URL/Email for next time
(Note that comments will be rejected unless you enter 42 in the following box: )

powered by blosxom
in 0.00 s