Synology DS215j unintended wake-ups from hiberantion

All questions regarding system hibernation may be placed here. Thanks!
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:

https://account.synology.com/support/su ... p?lang=enu



2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.
casparvl
Trainee
Trainee
Posts: 11
Joined: Thu Dec 03, 2015 8:06 pm

Synology DS215j unintended wake-ups from hiberantion

Unread post by casparvl » Thu Dec 03, 2015 10:38 pm

So, as quite a few people before me on this forum, I'm troubled by my Synology randomly waking up several times a day.

I made quite a bit of progress getting rid of processes waking up my Synology, so I will share that knowledge in this post so other users may benifit from it. Also: it will tell you what I've already tried, and what I haven't.

- Enabled hybernation debug logging using the syno_hibernate_debug_tool --enable 1 command. This gave me some hints about which processes were waking up my synology, although sometimes it is not clear to me what process initially causes the wake-up (and which processes simply follow after that). Also, it is sometimes hard to relate it to which setting in DSM is causing that process to run. I've found a couple, but not all.

- Disabled forwarding of port 80 to my Synology on my router. This seemed to get rid of a lot (if not all) of lines like
"Nov 25 06:53:35 CasNas kernel: [666729.074965] [/usr/syno/synoman/phpsrc/web/] (16608) - pid 6314 [comm:(httpd)], ppid 6128 [httpd]"
in the debug log.

- Went through this FAQ https://www.synology.com/en-us/knowledgebase/faq/568. I only have cloud station, download station, media server and video station. Verified that I was not running eMule, RSS or active downloads, and that DMA logging for the media server was disabled.

- Rescheduled some tasks, such as checking for DSM updates (in the control panel -> update & restore) and security advisor scan, based on this post http://forum.synology.com/enu/viewtopic ... 83&t=95510 (which helped me a lot!). Also edited one or two other tasks manually in the /etc/crontab file mentioned in that post, because the time for some scheduled processes apparently cannot be changed through the GUI (read the other post for more info). I synchronized all these scheduled tasks to be performed around 8pm. This made sure wake-ups because of lines like:
Dec 2 20:00:03 CasNas kernel: [1318752.124567] [/etc/passwd] (27449) - pid 15313 [comm:(crond)], ppid 1 [init]
Dec 2 20:00:03 CasNas kernel: [1318752.131834] [sh] (74) on [md0] - pid 21732 [comm:(crond)], ppid 15313 [crond]
Dec 2 20:00:03 CasNas kernel: [1318752.139277] [libsynoftp.so.5] (5463) on [md0] - pid 21733 [comm:(synoschedtask)], ppid 21732 [sh]
only occur at 8pm, which is fine because together, they now only cause 1 wake-up.

- In addition: I have DDNS enabled (and would like to keep it that way, it's useful for me). I disabled heartbeat (with it, hibernate simply won't work). To sync the DDNS update, I had to disable it, and re-enable it at the required time (8pm), as it times out & updates every 24h (again: why is there no GUI setting for this?). This way, it is synched with my other tasks. Again, lines like
Dec 1 21:47:04 CasNas ddnsd: ddnsd.c:2912 DDNS Expired. UpdateAll.
Dec 1 21:47:07 CasNas ddnsd: ddnsd.c:1968 Success to update [casparvl.synology.me] with IP [178.85.206.200] at [Synology]
Now only occur at 8pm.

Despite the fact that I got rid of quite a few wake-ups, there are also quite some left. Here are some samples from the debug-log from yesterday:

Dec 2 00:53:58 CasNas kernel: [1249983.288812] [Block I/O] on [md1] - pid 28565 [comm:(scemd)], ppid 28561 [scemd]
Dec 2 02:07:32 CasNas kernel: [1254397.155832] [Block I/O] on [md0] - pid 3949 [comm:(smbd)], ppid 6486 [smbd]
Dec 2 02:07:32 CasNas kernel: [1254397.163096] [SCSI CMD] on [sdb] - pid 3949 [comm:(smbd)], ppid 6486 [smbd]
Dec 2 02:07:32 CasNas kernel: [1254397.170276] [Block I/O] on [md0] - pid 3949 [comm:(smbd)], ppid 6486 [smbd]
Dec 2 08:39:48 CasNas kernel: [1277934.774105] [Block I/O] on [md0] - pid 6486 [comm:(smbd)], ppid 1 [init]
Dec 2 08:39:48 CasNas kernel: [1277934.781108] [SCSI CMD] on [sdb] - pid 6486 [comm:(smbd)], ppid 1 [init]
Dec 2 09:43:09 CasNas kernel: [1281735.990848] [Block I/O] on [md0] - pid 1213 [comm:(scheduler)], ppid 1 [init]
Dec 2 09:43:09 CasNas kernel: [1281735.998288] [SCSI CMD] on [sdb] - pid 1213 [comm:(scheduler)], ppid 1 [init]
Dec 2 09:43:09 CasNas kernel: [1281736.005659] [Block I/O] on [md0] - pid 1213 [comm:(scheduler)], ppid 1 [init]
Dec 2 09:43:09 CasNas kernel: [1281736.013101] [/etc.defaults/synoinfo.conf] (22371) - pid 5240 [comm:(scemd)], ppid 1 [init]
Dec 2 10:51:26 CasNas kernel: [1285833.245622] [Block I/O] on [md0] - pid 6387 [comm:(smbd)], ppid 6486 [smbd]
Dec 2 10:51:26 CasNas kernel: [1285833.252887] [SCSI CMD] on [sdb] - pid 6387 [comm:(smbd)], ppid 6486 [smbd]
Dec 2 13:48:11 CasNas kernel: [1296438.887046] [Block I/O] on [md0] - pid 1213 [comm:(scheduler)], ppid 1 [init]
Dec 2 13:48:11 CasNas kernel: [1296438.894485] [SCSI CMD] on [sdb] - pid 1213 [comm:(scheduler)], ppid 1 [init]
Dec 2 13:48:11 CasNas kernel: [1296438.901841] [Block I/O] on [md0] - pid 1213 [comm:(scheduler)], ppid 1 [init]

And some of today:

Dec 3 09:43:16 CasNas kernel: [1368147.698203] [etc] (4622) on [md0] - pid 1213 [comm:(scheduler)], ppid 1 [init]
Dec 3 13:48:17 CasNas kernel: [1382849.624648] [run] (22255) on [md0] - pid 1213 [comm:(scheduler)], ppid 1 [init]

So, today I had very few wake-ups, which made it quite easy to focus on the two I dó have. Both are caused by something called 'scheduler' and the pid 1213 belongs to the process /var/packages/DownloadStation/target/sbin/scheduler. Beside being called scheduler, it occurs at practically the same 2 times on both days: 9:43 and 13:48h. I suspect ONE of these may be caused by RSS updating: I don't have any RSS feeds added, but in the settings of downloadstation, you can set an RSS update interval which is currently set at 24h. Since these wake-ups occur at fixed times, I figure DownloadStation may be waking my synology on a schedule, only to conclude that there are no RSS feeds that need updating. But... I cannot disable this setting. I have just changed the time interval to 12h to confirm my theory, so tomorrow I hope to know more. If this affects my wake-ups, I will try editing the file /var/packages/DownloadStation/etc/settings.conf to try and manually set the RSS update interval to a very large number (in the GUI it can be set to 24h at most), as apparently it cannot be disabled.

Anyway, if someone knows more about wake-ups caused by 'scheduler' and how to prevent them, I'd love to hear it. The other thing I hope is that someone can help me with the other wake-ups on Dec 2 at 02:07h and 10:51 (at 00:53h it MIGHT have been me, I'm not sure, at 8:39 it definitely was me). Comparing these to what happenned at 8:39, when I turned on my PC, it almost seems that at 2:07h, the same thing happened except... I was asleep and my pc was off. Any clues? If someone else in my LAN turns on their PC (which doesn't have any of my NAS disks mounted), would it result in a similar looking wake-up?

N.B. To be honest, I think Synology should provide a simple way in the GUI to sync all of the scheduled tasks to one moment in time. If even automated updating of DSM and packages (pretty basic features) can mess with hibernation (another pretty basic feature), you should help the user to at least limit the number of wake-ups to one per day. Make a button next to the hibernate checkbox to sync all scheduled items? Or provide a warning to the user when he/she checks the hibernate checkbox of which items are currently scheduled, so that at least he/she knows for which items scheduled times need to be changed if he/she wants hibernate to work properly? This is really not the user-friendliness I was hoping for when buying a ready-made NAS instead of building one myself...

Edit (6 Dec 2015): RSS feeds updating does not seem to be the problem, at least I haven't found my Synology waking up at shorter intervals with the new 12h setting. However, I found another possible cause for wake-ups. Today, I saw this line in the logs

Dec 6 09:43:24 CasNas kernel: [1627369.873734] [Block I/O] on [dm-0] - pid 32297 [comm:(synodtvd)], ppid 1 [init]

Remember the daily log entries I had at 9:43? Before it said comm:(scheduler), but now it was talking about synodtvd. By looking at the pid (using the ps) I found out this was related to video station. Looking in video station, I found a tab called 'dtv', with a setting "TV guide settings - update frequency", which is currently set at 'daily'. As I'm unable to set the time at which this update happens and as I'm not currently using this feature, I will simply set it to 'never'. Will keep you updated to see if my 9:43 entry will disappear now.

castaway1
Beginner
Beginner
Posts: 20
Joined: Tue Mar 24, 2015 8:49 am

Re: Synology DS215j unintended wake-ups from hiberantion

Unread post by castaway1 » Wed Dec 16, 2015 8:44 pm

let me know if you resolve your issues. My DS215j is waking up like every 30min sometimes every 1hour. I did a lot tip and tricks but this problem is still here. Thinking about reseting whole nas to defaults and restore my settings. Someone here reported that it can help.
Seems you are a lot more experienced. Good luck with tracking issue.

danckel
I'm New!
I'm New!
Posts: 2
Joined: Mon Dec 26, 2016 10:45 pm

Re: Synology DS215j unintended wake-ups from hiberantion

Unread post by danckel » Tue Dec 27, 2016 3:58 pm

@casparvl

It sound that you got rid off these messages
Dec 2 00:53:58 CasNas kernel: [1249983.288812] [Block I/O] on [md1] - pid 28565 [comm:(scemd)], ppid 28561 [scemd]
Dec 2 02:07:32 CasNas kernel: [1254397.155832] [Block I/O] on [md0] - pid 3949 [comm:(smbd)], ppid 6486 [smbd]
Dec 2 02:07:32 CasNas kernel: [1254397.163096] [SCSI CMD] on [sdb] - pid 3949 [comm:(smbd)], ppid 6486 [smbd]
Dec 2 02:07:32 CasNas kernel: [1254397.170276] [Block I/O] on [md0] - pid 3949 [comm:(smbd)], ppid 6486 [smbd]
Dec 2 08:39:48 CasNas kernel: [1277934.774105] [Block I/O] on [md0] - pid 6486 [comm:(smbd)], ppid 1 [init]
Dec 2 08:39:48 CasNas kernel: [1277934.781108] [SCSI CMD] on [sdb] - pid 6486 [comm:(smbd)], ppid 1 [init]
Dec 2 09:43:09 CasNas kernel: [1281735.990848] [Block I/O] on [md0] - pid 1213 [comm:(scheduler)], ppid 1 [init]
Dec 2 09:43:09 CasNas kernel: [1281735.998288] [SCSI CMD] on [sdb] - pid 1213 [comm:(scheduler)], ppid 1 [init]
Dec 2 09:43:09 CasNas kernel: [1281736.005659] [Block I/O] on [md0] - pid 1213 [comm:(scheduler)], ppid 1 [init]
Dec 2 09:43:09 CasNas kernel: [1281736.013101] [/etc.defaults/synoinfo.conf] (22371) - pid 5240 [comm:(scemd)], ppid 1 [init]
May i ask how you did that?

I seem to have a vey similar problem: My DS916+ does not spin down (even without a network cable and all packages turned off). And I get these almost identical messages about every 3 to 6 seconds:

2016-12-26T17:12:24+01:00 RGS2Diskstation kernel: [26711.125401] [Block I/O] on [sda1] - pid 3921 [commmd0_raid1)], ppid 2 [kthreadd]
2016-12-26T17:12:24+01:00 RGS2Diskstation kernel: [26711.133961] [SCSI CMD] on [sda] - pid 3921 [commmd0_raid1)], ppid 2 [kthreadd]
2016-12-26T17:12:24+01:00 RGS2Diskstation kernel: [26711.142336] [Block I/O] on [sdb1] - pid 3921 [commmd0_raid1)], ppid 2 [kthreadd]
2016-12-26T17:12:24+01:00 RGS2Diskstation kernel: [26711.150913] [SCSI CMD] on [sdb] - pid 3921 [commmd0_raid1)], ppid 2 [kthreadd]
2016-12-26T17:12:24+01:00 RGS2Diskstation kernel: [26711.159278] [Block I/O] on [sdc1] - pid 3921 [commmd0_raid1)], ppid 2 [kthreadd]

I have no clue what they mean and how I get my system settled down.

Any thoughts are much appreciated.

Best, Danckel

User avatar
perplex
Trainee
Trainee
Posts: 14
Joined: Tue Apr 19, 2016 1:33 pm

Re: Synology DS215j unintended wake-ups from hiberantion

Unread post by perplex » Sun Jan 08, 2017 2:37 am

I dont know if this will help, but ive been in contact with Synology for the last couple of days trying to sort this out, the outcome they said is

"From the debug file, this has been identified as a known issue due to scemd affect the hibernation function but it should NOT, and syslog-ng wrote some logs into the file 'scemd.log', the two service affect this function work abnormally. We are working hard to address this in a future release.

Please kindly stay tuned for the update, and in the meantime, we apologize for any inconvenience caused.

I will forward the opinion to our developer department and let them know there is user concerns about this function.

However, thank you for bringing this issue to our attention. Hopefully we will be able to improve this function in our future DSM releases."

im not sure if you can even fix, maybe we have to wait for Synology to do something, ive had my NAS for 1 year and they still havent fixed, so im not holding my breath.... abit dissapointing...

User avatar
perplex
Trainee
Trainee
Posts: 14
Joined: Tue Apr 19, 2016 1:33 pm

Re: Synology DS215j unintended wake-ups from hiberantion

Unread post by perplex » Fri May 05, 2017 1:31 am

just a update

so about 1 month ago after many emails they said "The status for the known issue is Verified at this moment, which mean our QC department are testing it now"

then i didnt hear anything, so i emailed them again, and replyed "This issue has been fixed on DSM 6.1.1 update 1"

so it will be interesting to see if they fixed it

User avatar
perplex
Trainee
Trainee
Posts: 14
Joined: Tue Apr 19, 2016 1:33 pm

Re: Synology DS215j unintended wake-ups from hiberantion

Unread post by perplex » Fri Jul 21, 2017 12:29 pm

another update from me,
ive still been talking to them almost every day since.

"Please go to Control Panel > Task Scheduler, click the "Create" button, > Triggered task > then enter the following command in the Task Settings page and click "OK" button to apply it.

mount / -o remount,noatime"

i dont know what the command does but it seemed to worked, and stopped it waking up, it still comes on the same time everyday and still finding how to fix that, also sometimes it takes longer than the set 15 mins to go into hibernation

ill keep it updated

gerald46
I'm New!
I'm New!
Posts: 3
Joined: Tue Jul 18, 2017 12:56 am

Re: Synology DS215j unintended wake-ups from hiberantion

Unread post by gerald46 » Sat Aug 05, 2017 5:23 pm

Hi perplex

My model Synology NAS is DS116 but has similar hibernation issues. The worst case scenario was hibernating then just before the disk slows down to a stop, wake up again. Mostly twice in a row. But I may have seen it three time before going back into hibernation. The timing as indicated in other areas of this forum is interesting. At first it was the time of the OS install. Then it shifted after my first update. Contacted support and they had me turn on hibernation logging and wait a day. Then I downloaded the debug.dat file and send it via email. He wrote back and the system process scmed was the cause of waking up from hibernation. I was getting wake ups from the three Win 7 computers on our network. It appears that I stopped that by not having the NAS join the workgroup. So far I see no negative effects uploading files from any windows machine or seeing it on our network.

The solution was similar as perplex wrote above. Using the mount / -o remount,noatime via Putty on my Win 7 machine and SSH. For the next 48 hours the NAS remained in hibernation. On the last day as the ticket was being closed out it woke up once. But no repeated hibernate wake up cycles. This command basically disables a write to the disk for last access time (no write last access time). Win 7 by the way has this disabled by default via the registry.

Last night I read perplex's recent post. So I decided to do the same thing. Enter the above command in a triggered task at boot time. The method I used would be cleared if the system was rebooted.

gerald46
I'm New!
I'm New!
Posts: 3
Joined: Tue Jul 18, 2017 12:56 am

Re: Synology DS215j unintended wake-ups from hiberantion

Unread post by gerald46 » Tue Aug 08, 2017 5:08 pm

Update of my DS116 with waking up from hibernation. The system wakes up every day at 11:22am, give or take a minute. The process that wakes it up is scmed. With the noatime added to scheduled tasks using trigger at boot time no more hibernate, wake up, hibernate, wake up, hibernate, wake up seconds apart.

User avatar
perplex
Trainee
Trainee
Posts: 14
Joined: Tue Apr 19, 2016 1:33 pm

Re: Synology DS215j unintended wake-ups from hiberantion

Unread post by perplex » Tue Sep 12, 2017 9:20 am

gerald46 wrote:Update of my DS116 with waking up from hibernation. The system wakes up every day at 11:22am, give or take a minute. The process that wakes it up is scmed. With the noatime added to scheduled tasks using trigger at boot time no more hibernate, wake up, hibernate, wake up, hibernate, wake up seconds apart.
mine use to do this as well, i found a fix for this also

i did this

Storage manager - volume - Edit - change record access time to monthly

that seemed to fix that

hope it helps

Post Reply

Return to “Hibernation Room”