Twonky wakes up NAS at midnight

Discussion about hard drive spin down (standby) feature of NAS.

Twonky wakes up NAS at midnight

Postby kreeture » Tue May 22, 2012 2:32 pm

Hi all,

I have been trying to get to the bottom of my NAS coming out of standby several times when there is no network access to it. It seems to stay spun down when twonky is disabled but when enabled it always seems to spin the drives up at midnight with very little actual disc activity.

The media scanning is set to manual so it is not that, and the corncobs of the nas are set to run at another time so it is not those either.

Any pointers as to why this may happen with twonky?
I am using firmware 3.6.1, which contains twonky 6.0.38.

Cheers.
kreeture
Getting the hang of things
 
Posts: 55
Joined: Wed Jun 16, 2010 1:01 am
NAS Model: SS-839 Pro

Re: Twonky wakes up NAS at midnight

Postby schumaku » Fri May 25, 2012 5:41 pm

HDD spin-down hype vs. opeational requirements.

The access might be intended, or it's unwanted by Twonky- however, in my opinion be happy that it does spin-up and work reliably.

Most likley, Twonky will not review or modify the Twonky 6 code anymore.
User avatar
schumaku
Guru
 
Posts: 22186
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
NAS Model: TS-x79 Pro

Re: Twonky wakes up NAS at midnight

Postby kreeture » Sat May 26, 2012 6:47 am

Schumaku, i think you miss the point. Yes the nas works but no one, and I mean no one including the qnap support team have any clue as to why the drives spin up.
Now imho this is bad engineering, yes if there was any justifiable reason for the drives to spin up I could accept it but as far as I can see (and anyone else for that matter) there is no such concrete reason.
So unless anyone tells me specifically what is happening when the drives spin up then this should not happen!

The qnap support team were clueless as to why it is happening and told me to wipe the system and start from scatch. Which sounds like a stab in the dark and not what I would expect from competent engineers.
kreeture
Getting the hang of things
 
Posts: 55
Joined: Wed Jun 16, 2010 1:01 am
NAS Model: SS-839 Pro

Re: Twonky wakes up NAS at midnight

Postby sl1000 » Sat May 26, 2012 6:50 am

as far as i know there is a crontab job running at around 3 am when twonkey is enabled. do a crontab -l to check for any jobs.
Try searching the perfect online manual, forum or the Wiki for answers before posting
### i've taken a qpkg development sabbatical ###
----------------------------------------------------------------------
TS-459Pro, 2x Samsung Spinpoint F2 HD154UI 1.5TB in Raid 1.
TS-212, 2x Seagate 500gb
SBS, SABNZB+, Sickbeard, CouchPotato, Subsonic, Dropbox, and more :)
----------------------------------------------------------------------
User avatar
sl1000
Moderator
 
Posts: 3520
Joined: Fri Nov 06, 2009 7:56 pm
Location: The Netherlands
NAS Model: TS-259 Pro+

Re: Twonky wakes up NAS at midnight

Postby Briain » Sat May 26, 2012 11:02 pm

Hi

The crontab job clears the Twonky image cache and you can comment it or completely remove it. If you change some if the images embedded in their music files, they will only show up after you manually empty the cache, or rebuild the Twonky database, so my guess is that one advantage of that crontab job is that any replaced images would show up within 24 hours. Personally, I've moved the Twonky cache, increased its size limit (both done via RPC calls) and removed the crontab job to delete the contents at 3 AM as I've a lot of 800 pixel embedded images and want the cache preserved (so I don't have to build it up every day; that would slow the responsiveness of my control point). Whilst in there, I also changed the other crontab jobs to only occur once a week, and thus far, I've not noticed any deterioration in anything (but I mostly use it as a media server, so most other services are disabled).

Below is how I now have it set, and I'd be interested to know if anyone recommends I change any of the below tasks from weekly back to daily. As I say, I've not noticed any problems, but then I mostly only use it as a media server.

# m h dom m dow cmd
1 3 * * 3 /etc/init.d/idmap.sh dump
2 3 * * 3 /sbin/hwclock -s
3 3 * * 3 /sbin/vs_refresh
5 3 * * 3 /sbin/clean_reset_pwd
4 3 * * 3 /etc/init.d/backup_conf.sh

Bri
User avatar
Briain
Been there, done that
 
Posts: 759
Joined: Tue Apr 20, 2010 11:56 pm
Location: Edinburgh (Scotland)
NAS Model: TS-459 Pro

Re: Twonky wakes up NAS at midnight

Postby kreeture » Sat May 26, 2012 11:18 pm

Its not the cronjobs i know as I have modified those to run at different times.
These random wakeups are really really annoying.
kreeture
Getting the hang of things
 
Posts: 55
Joined: Wed Jun 16, 2010 1:01 am
NAS Model: SS-839 Pro

Re: Twonky wakes up NAS at midnight

Postby schumaku » Sun May 27, 2012 9:43 pm

Before it was midnight as per the subject- now it's random?!?

Bad engineerig? The HDD spin-down is implemented in the was that the HDD are signelled to spin-down when the access to the physical storage is not required for a configured time, and to spin-up the HDD if the physical access is required again.

Anything beyond is your own personal assumption or based wrong expectations.
User avatar
schumaku
Guru
 
Posts: 22186
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
NAS Model: TS-x79 Pro

Re: Twonky wakes up NAS at midnight

Postby kreeture » Mon May 28, 2012 4:07 am

Seemingly the spin up is at midnight and other times, I do not have the time to investigate constantly.
The point I was making is that no one seems to know what processes are accessing the drives, just giving best guesses. Wake ups still seem to occur for people with all the application services disabled, so go figure.
kreeture
Getting the hang of things
 
Posts: 55
Joined: Wed Jun 16, 2010 1:01 am
NAS Model: SS-839 Pro

Re: Twonky wakes up NAS at midnight

Postby schumaku » Mon May 28, 2012 4:49 am

No access physical storage access required for the configured time == spon-down. Physically storage requirement spin-up. Nothing to figure. This is what is implemented - and it's working impressingly well.

When you want your HDD spin down over a certain time with the idea to save energy or avoind noise - power-off the NAS by schedule.
User avatar
schumaku
Guru
 
Posts: 22186
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
NAS Model: TS-x79 Pro

Re: Twonky wakes up NAS at midnight

Postby kreeture » Mon May 28, 2012 5:15 am

Yes but what is needing the storage causing the spin up?
I have been trying to figure this out now for months and no one has been able to help, hence my frustration.
I can accept the drives spinning up if I know what process is accesing the physical storage but the script and top do not point at any specific process.
Midnight here and the drives spin up again but no real disk activity.
kreeture
Getting the hang of things
 
Posts: 55
Joined: Wed Jun 16, 2010 1:01 am
NAS Model: SS-839 Pro

Re: Twonky wakes up NAS at midnight

Postby schumaku » Mon May 28, 2012 5:45 am

Obviously _something_ is requiring the storage to spin-up.
User avatar
schumaku
Guru
 
Posts: 22186
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
NAS Model: TS-x79 Pro

Re: Twonky wakes up NAS at midnight

Postby kreeture » Mon May 28, 2012 1:14 pm

Obviously.
kreeture
Getting the hang of things
 
Posts: 55
Joined: Wed Jun 16, 2010 1:01 am
NAS Model: SS-839 Pro

Re: Twonky wakes up NAS at midnight

Postby kreeture » Sat Jun 30, 2012 5:07 pm

Just noticed it also comes out of standby at mid-day as well, anyone else seen this behaviour in a TS-410?
kreeture
Getting the hang of things
 
Posts: 55
Joined: Wed Jun 16, 2010 1:01 am
NAS Model: SS-839 Pro

Re: Twonky wakes up NAS at midnight

Postby P3R » Sat Jun 30, 2012 8:18 pm

kreeture wrote:Just noticed it also comes out of standby at mid-day as well, anyone else seen this behaviour in a TS-410?
So a 12 hour interval. Do you happen to use that interval for internet time (ntp) updates? Or maybe the Qnap is a DHCP-client or server with a 24 hour lease time (a common default lease-time that would lead to refreshes every 12 hours)?
No, RAID has never ever been a replacement for backups. Without backups you will eventually lose data!
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TS-559 Pro II 3*HUA723030ALA640 RAID 5 | TS-459 Pro II 4*HDS722020ALA330 RAID 6 | TS-419P II 2*WD30EFRX RAID 1 | TS-119 ST3750640AS | TS-219P HDS722020ALA330 | All with APC Back-UPS ES BE700G-GR
P3R
Ask me anything
 
Posts: 5260
Joined: Sat Dec 29, 2007 1:39 am
Location: Sweden
NAS Model: TS-559 Pro II

Re: Twonky wakes up NAS at midnight

Postby kreeture » Sat Jun 30, 2012 11:46 pm

Hi P3R

Ntp updates are disabled, the qnap has a static ip address so i would think it cant be a renew issue.
My router is the dhcp server with 24 hour lease time, but the qnap still wakes up even when disconnected from the network :/

Tearing my hair out trying to find out what is causing the spin ups and blkdevmonitor.sh script didnt give any leads.
So any other ideas would be much appreciated.
kreeture
Getting the hang of things
 
Posts: 55
Joined: Wed Jun 16, 2010 1:01 am
NAS Model: SS-839 Pro

Next

Return to HDD Spin Down (HDD Standby)

Who is online

Users browsing this forum: No registered users and 3 guests