View previous topic :: View next topic |
Author |
Message |
snIP3r l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 21 May 2004 Posts: 853 Location: germany
|
Posted: Sat May 24, 2014 10:33 pm Post subject: harddisk does not go to standby mode [solved] |
|
|
hi all!
i am setting up a new homeserver with 2 wd-red 4tb drives in software raid mode. trying to decrease the power consumption i want the drives to go to standby mode. googling round gives me serveral modes at first sight, but not all will work (e.g. -B switch for hdparm). so i tried the hdparm settings
Code: |
/etc/conf.d/hdparm:
sdc_args="-S 241"
sdd_args="-S 241"
|
to go to standby mode in 30 mins
and also the setting
Code: |
etc/smartd.conf
DEVICESCAN -R 194 -n standby
|
to prevend smartd to wake up the device in standby mode. but this does not work and i dont know how to fix it. using hdparm -y for /dev/sdc and /dev/sdd spins down the devices and prevents smartd from accessing them:
Code: |
area52 etc # hdparm -C /dev/sdc
/dev/sdc:
drive state is: standby
May 25 00:27:36 area52 smartd[3526]: Device: /dev/sdc [SAT], is in STANDBY mode, suspending checks
May 25 00:27:41 area52 smartd[3526]: Device: /dev/sdd [SAT], is in STANDBY mode, suspending checks
|
can someone perhaps help me with this??
thx in advance
snIP3r _________________ Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Last edited by snIP3r on Fri May 30, 2014 4:50 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
eccerr0r Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
Joined: 01 Jul 2004 Posts: 9893 Location: almost Mile High in the USA
|
Posted: Thu May 29, 2014 8:45 pm Post subject: |
|
|
Chances are you have something writing to the disk constantly...
Things you should check:
1. Make sure kernel commit time (filesystem and vfs) is as long as you can stand losing data. Default is usually around 5 seconds. Increasing it to hours means you can lose that much of data if the power goes out or computer crashes.
2. Make sure you have noatime on your mounts.
3. Problem programs I've encountered:
- CUPS - increase rekey threshold
- Syslog - stop it from syncing logs
- MySQL - grr.
- MythTV keeps on writing too.
- nfsd and gang... I couldn't figure this one out
All in all, I just let my 4-disk RAID5 disks spin. The integrity of the data on the disks is more important since start/stop cycles cause more wear than leaving a disk spinning...
One way you can root out the bad program is see if you can run the disks mounted readonly. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
snIP3r l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 21 May 2004 Posts: 853 Location: germany
|
Posted: Fri May 30, 2014 4:49 am Post subject: |
|
|
hi eccerr0r!
thx for your reply! but i forgot to mention that the drives do only contain the data, no the system so no process/program you wrote can cause any traffic on it.
i got it solved by myself googling round. i found out that those drives do not go to standby by themselves and someone wrote a program called "hd-idle" and another person wrote an ebuild for it in sunrise overlay. so installing it and configuring it like this
Code: |
/etc/conf.d/hd-idle:
HD_IDLE_OPTS="-a /dev/sdc -i 1200 -a /dev/sdd -i 1200 -l /var/log/hd-idle.log"
|
solves all of my problems now i have an idle consumption of my server of 25w *happy*
thx for help anyway!
greets
snIP3r _________________ Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|