Hello all,
I've been setting up a bare-bone file server for my home network (see post in the "networking" section). The file transfer is more or less working now, so I need to start tuning the server to suit my needs.
I need it to be as silent and as little power-hungry as possible; so I would like to spindown the hard drives after a few minutes that they're not used.
I've tried the command
which shuts down the drive after 2 minutes of inactivity (after all, the server might sit idle for hours, or days at a time, without being accessed).
The command works - the drive spins down, but then it starts again a few minutes later, thus cycling on-off several times per hour. That's bad for the drive's health.
Using atop I saw that the process "syslogd" wants to write something to the HD; the write is cached, and then about 30 seconds later the write is committed to disc by "pdflush" - and the drive is woken.
So I would think there are 2 possible ways to stop this behaviour:
1) prevent syslogd from trying to write so often.
2) increase the "expiration time" of pdflush, so that it flushes to disk, say, once a day and not more (it's OK if the drive spins once a day, because I plan to setup a nightly rsync job anyway).
Any ideas on pros and cons of the 2 ideas above? Any other ideas?
And, how would I actually modify the system to implement those solutions, as I couldn't find any specific info around?
Thanks
Cristian
I've been setting up a bare-bone file server for my home network (see post in the "networking" section). The file transfer is more or less working now, so I need to start tuning the server to suit my needs.
I need it to be as silent and as little power-hungry as possible; so I would like to spindown the hard drives after a few minutes that they're not used.
I've tried the command
Code:
sudo hdparm -S24 /dev/sda
The command works - the drive spins down, but then it starts again a few minutes later, thus cycling on-off several times per hour. That's bad for the drive's health.
Using atop I saw that the process "syslogd" wants to write something to the HD; the write is cached, and then about 30 seconds later the write is committed to disc by "pdflush" - and the drive is woken.
So I would think there are 2 possible ways to stop this behaviour:
1) prevent syslogd from trying to write so often.
2) increase the "expiration time" of pdflush, so that it flushes to disk, say, once a day and not more (it's OK if the drive spins once a day, because I plan to setup a nightly rsync job anyway).
Any ideas on pros and cons of the 2 ideas above? Any other ideas?
And, how would I actually modify the system to implement those solutions, as I couldn't find any specific info around?
Thanks
Cristian
Comment