WD My Cloud randomly wakes up the drive when Drive Sleep is enabled

Hi Mona and rac8006

@Mona @rac8006

Here is my result. It is quite good. Thank you so much for your helpful reply.

WDMyCloud:/# cat /var/log/user.log.1 /var/log/user.log|./sleep.awk
cat: /var/log/user.log.1: No such file or directory
05 18 21:08:50 21:09:12 22 0:00:22
05 18 21:15:20 21:22:06 406 0:06:46
05 18 21:29:15 21:29:37 22 0:00:22
05 18 21:34:43 21:36:04 81 0:01:21
05 18 21:47:17 21:47:35 18 0:00:18
05 18 21:53:43 21:54:05 22 0:00:22
05 18 22:08:26 22:08:48 22 0:00:22
05 18 23:48:27 23:48:49 22 0:00:22
05 19 23:53:55 00:57:19 3804 1:03:24
05 19 01:02:25 03:28:08 8743 2:25:43
05 19 03:33:14 06:51:54 11920 3:18:40
05 19 06:57:00 10:35:52 13132 3:38:52
Total Sleep Time : 10:38:52
Start : 05/18/2020 20:57:47
End : 05/19/2020 10:35:52
Total Up Time : 13:38:05 77% Sleep 23% Wake

Glad to hear that it’s better now! Did you do any additional steps in order to prevent it from waking up?

If you use the user-start file provided by me, you may want to add some extra services to stop, from the previous posts. I think I removed some from the list due to bugs with the notifications listing, and so on…

Hi Mona,

Glad to hear your reply. If you see my log, in fact only the log from 01:02:25 is for reference because I shut down my PC and go to sleep at 1:00am. You see 3:28:08 wakes up and I do not know the reason. Then 6:51:54 wakes up because I set the wifi sleep time for the router from 1:00am to 7:00am and the clock of MyCloud is 8 minutes earlier as I turn off NTP service. I have few knowledge on linux and if you have any further comment, please let me know.

According to your user-start file, I also add more services to stop based on rac8006. So the list is long like the following. I only use Samba and Remote Cloud service.

Attempts to fix sleep issue with Samba

/etc/init.d/samba stop
mount -t tmpfs -o mode=0700,noatime,size=2m tmpfs /etc/samba/msg.sock/
mount -t tmpfs -o noatime tmpfs /var/run/samba
mount -t tmpfs -o noatime tmpfs /var/cache/samba
/etc/init.d/samba start

Stop unwanted wakeups

mount -o remount,noatime /dev/root /

Stop and disable indexing services (just stopping the service not disable)

/etc/init.d/wdmcserverd stop
/etc/init.d/wdphotodbmergerd stop

For OS3 firmware only - stop RESTSDK server daemon

/etc/rc2.d/S03atop stop
/etc/rc2.d/S20nfs-common stop
/etc/rc2.d/S20nfs-kernel-server stop
/etc/rc2.d/S20restsdk-serverd stop
/etc/rc2.d/S20winbind stop
/etc/rc2.d/S50netatalk stop
/etc/rc2.d/S60mDNSResponder stop
/etc/rc2.d/S61upnp_nas stop
/etc/rc2.d/S85twonky stop
/etc/rc2.d/S85wdmcserverd stop
/etc/rc2.d/S86wdphotodbmergerd stop
/etc/rc2.d/S92wdnotifierd stop
/etc/rc2.d/S95wdAutoMount stop

#Mona Additional disables:
/etc/init.d/restsdk-serverd stop
/etc/init.d/cron stop
/etc/init.d/upnp_nas stop
/etc/init.d/mDNSResponder stop