NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
flyvert
Sep 22, 2011Aspirant
Why are my NAS's disks spinning up after ~2 1/2 hrs sleep?
Hi. I've very recently bought a ReadyNAS Ultra2 and stuffed it with 2x2TB (WD Caviar Green) disk. SW: RAIDiator 4.2.19 Addons: ReadyNAS Photos II, ReadyNAS Skifta, ReadyNAS Remote and EnableRootS...
flyvert
Oct 02, 2011Aspirant
From what I've read about noflushd, the daemon (backgrund process in Unix) spins down disks not being read from for a while.
When spun down, writes are cached/delayed until a read request is received, then the disk is spun up and cached writes are flushed, etc. and monitoring for inactivity starts over again.
If I have understood it correct, it is not a stray write that spins up the disk, it is a stray read.
We need to figure out from where the read is coming?
The noflush deamon is run with verbose output by RAIDator, but it seems possible to add even more debug text according to the manual page I've read.
http://pwet.fr/man/linux/administration_systeme/noflushd
The -d option adds more output to syslog, the only problem is that -d is preventing "daemonzing", the daemon will not fork and put itself as a background process.
To get more output into the syslog I believe you will need to:
a) SSH into the box
b) Kill the running noflushd instance
c) Restart a new noflushd with "noflushd -v -d -n 60" (if 60 minutes is your spindown delay as mine is)
d) Keep the SSH open until the problem is back and then look for additonal output in the SSH session.
e) Stop noflushd with e.g. CTRL-C and restart it normally (just remove -d) and it should daemonize.
It might be possible to do c) above as a background process with output to syslog or any other log file of your choice, e.g.
# nohup noflush -v -d -n 60 > /var/log/noflushd.log 2>&1 &
If anything goes wrong it should be just to restart the box to resume normal operation.
I might try this out when I've gathered some more statistics on my drive.
To make the scene more complex, I just added a nice squeezebox to my network today - nice getting rid of that old CD-player...
... but hunting spurious spinups might become more difficult if the squeezebox is talking to the NAS at random/undesired times?
/f
When spun down, writes are cached/delayed until a read request is received, then the disk is spun up and cached writes are flushed, etc. and monitoring for inactivity starts over again.
If I have understood it correct, it is not a stray write that spins up the disk, it is a stray read.
We need to figure out from where the read is coming?
The noflush deamon is run with verbose output by RAIDator, but it seems possible to add even more debug text according to the manual page I've read.
http://pwet.fr/man/linux/administration_systeme/noflushd
The -d option adds more output to syslog, the only problem is that -d is preventing "daemonzing", the daemon will not fork and put itself as a background process.
To get more output into the syslog I believe you will need to:
a) SSH into the box
b) Kill the running noflushd instance
c) Restart a new noflushd with "noflushd -v -d -n 60" (if 60 minutes is your spindown delay as mine is)
d) Keep the SSH open until the problem is back and then look for additonal output in the SSH session.
e) Stop noflushd with e.g. CTRL-C and restart it normally (just remove -d) and it should daemonize.
It might be possible to do c) above as a background process with output to syslog or any other log file of your choice, e.g.
# nohup noflush -v -d -n 60 > /var/log/noflushd.log 2>&1 &
If anything goes wrong it should be just to restart the box to resume normal operation.
I might try this out when I've gathered some more statistics on my drive.
To make the scene more complex, I just added a nice squeezebox to my network today - nice getting rid of that old CD-player...
... but hunting spurious spinups might become more difficult if the squeezebox is talking to the NAS at random/undesired times?
/f
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!