Page 1 of 1

Disk doesn't spin down

Posted: Fri Jun 21, 2013 10:40 pm
by dr0n3
Hi,

I just build my NAS and the first problem came up.
I'm using 2x WD Red 3TB drives, they are recognized by Greyhole and everything works fine.
However, i can't spin them down. They are constantly running, which isn't really good.

I already tried shuting them down by:

Code: Select all

nas@NAS:~$ sudo hdparm -y /dev/sdb /dev/sdb: issuing standby command nas@NAS:~$ sudo hdparm -C /dev/sdb /dev/sdb: drive state is: active/idle
There is a short "squek" and the drive is running again/still running.
Apparently, the problem is hddtemp, which is the only process, accessing the disk:

Code: Select all

nas@NAS:~$ sudo lsof /dev/sdb lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/nas/.gvfs Output information may be incomplete. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME hddtemp 1337 root 4r BLK 8,16 0t0 7400 /dev/sdb nas@NAS:~$ sudo kill 1337 nas@NAS:~$ sudo lsof /dev/sdb lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/nas/.gvfs Output information may be incomplete.
But killing hddtemp doesn't help. Putting them into standby via hdparm still doesn't work.

Does anybody know, what to do?
Thanks

Re: Disk doesn't spin down

Posted: Sat Jun 22, 2013 6:46 am
by bigfoot65
Search these forums as I have seen this topic before. There should be some guidance there.

Re: Disk doesn't spin down

Posted: Thu Jul 10, 2014 5:33 am
by s3nhome
I've set my disks to spin down after 21 minutes (APM level 252) but I can see that hddtemp is used on them. Did you find a solution to this?

Spinning media is still king for large storage, unfortunately, they are noisy in a small flat:P

My /dev/sda on which amahi is installed is a quiet SSD.

Re: Disk doesn't spin down

Posted: Thu Jul 10, 2014 6:46 pm
by bigfoot65
Not sure if this will help, but this was something I documented from a past user.

Code: Select all

#power drives down after 10 minutes idle /sbin/hdparm -S120 /dev/sda /sbin/hdparm -S120 /dev/sdb