Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
harddisk does not go to standby mode [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
snIP3r
l33t
l33t


Joined: 21 May 2004
Posts: 819
Location: germany

PostPosted: Sat May 24, 2014 10:33 pm    Post subject: harddisk does not go to standby mode [solved] Reply with quote

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
Gentoo Base System 2.2
Kernel 4.19.23-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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7130
Location: almost Mile High in the USA

PostPosted: Thu May 29, 2014 8:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
snIP3r
l33t
l33t


Joined: 21 May 2004
Posts: 819
Location: germany

PostPosted: Fri May 30, 2014 4:49 am    Post subject: Reply with quote

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
Gentoo Base System 2.2
Kernel 4.19.23-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum