Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Disks doesn't go to standby/sleep... only manually
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
Billias
n00b
n00b


Joined: 22 Oct 2013
Posts: 7

PostPosted: Mon Jul 28, 2014 6:43 pm    Post subject: Disks doesn't go to standby/sleep... only manually Reply with quote

Hi

I have an gentoo nas... with:

- nfsd
- LVM over software raid 5
- Apache


In the past when the disks where not active where going to stand by (i do set the disks with hdparm -S 72 (about 6minutes)
If i let the system the disks are constantly active, in case i put the on standby my self, the stay there until i start accessing files.

I do not know what i've done but it is really strange. The OS is on an SSD.. so basically the disks are only accessed in case something has to be read from that folder (/mnt/Media)

I shutdown every service except sshd, ntp, syslog-ng and still nothing.

Are there any kernel modules or extra utils that i can istall and make it work?
any suggestions hot to debug it
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Thu Aug 07, 2014 4:50 pm    Post subject: Reply with quote

well any service which makes a disk access spins up your device.

as i can read syslog-ng you have your target. you need even to shutdown this service.


I assume your hardware has some free memory so you could make a tempfs partition/device/drive (no idea how you should call it correctly) and than mount your /tmp and other directories to that which are responsible for not spinning down your drives. The drawback is that on a powerfailure anything on this is lost because its only in the memory and not on a hardware drive.

Or you configure your services that they write quite late to the hardware but that introduces problems on a power failure as you may loose data. So data integrity is not a friend of a high disk spin down time.

so in short.

1) use tempfs
2) check what writes to the disk. I think lsof command does the trick.
3) configure your services that they write quite late to the disk. could be done with file system paramaters or in other fashion. i do not want to say much in this regard as i have not done it in ages or may tell you somethign wrong in this regard. it depends on your setup / box hardware and software.
4) Think about if I really need a log file or anything. HArdly no services running are the best for high disk spin down times.
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