New sleep problem

I noticed that my cloud was not sleeping as much as it has in the past. So I decided to look into what is happening. I found that the system was changing the time on the /etc/samba/smbpasswd file every 30 seconds. I’ve seen this once before. Not sure what is causing this to happen. The easiest way to see if this happening on your system is to use the “stat” command. You will notice that the change time value is increasing.

stat /etc/samba/smbpasswd
File: `/etc/samba/smbpasswd’
Size: 105 Blocks: 8 IO Block: 4096 regular file
Device: 901h/2305d Inode: 110231 Links: 1
Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-02-02 19:12:43.000000000 -0500
Modify: 2016-01-27 16:48:35.000000000 -0500
Change: 2016-02-03 22:13:14.000000000 -0500
Birth: -

stat /etc/samba/smbpasswd
File: `/etc/samba/smbpasswd’
Size: 105 Blocks: 8 IO Block: 4096 regular file
Device: 901h/2305d Inode: 110231 Links: 1
Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2016-02-02 19:12:43.000000000 -0500
Modify: 2016-01-27 16:48:35.000000000 -0500
Change: 2016-02-03 22:33:20.000000000 -0500
Birth: -

RAC

PS change time means that the files permissions have been changed.

Perhaps it would be best to contact WD Support about this. You can do so over the phone or via E-mail.

Why would I contact WD support? The problem is in samba. I’ve contacted the samba support group.

RAC

How does your MC sleep pattern look like now ? My drive wakes up after ~15 minutes of sleep

With samba disabled it sleeps a lot longer as much as 6 hours at a time.

RAC

And with Samba enabled?

With samba enabled it can not sleep for 12 hours or it could sleep normally. There seems to be a condition that causes samba to update the permissions on /etc/samba/smbpasswd file every 30 seconds. What ever the condition it seems to come and go. To see if this is happening on your Cloud. You can SSH into the cloud and “stat /etc/samba/smbpasswd”
The last time called change should not be close to the current time.

RAC

Hi,
Since i update my WD mycloud in latest firmware version (v04.04.02-105) , it does’nt go to sleep mode !
In previous firmware, it shutdown hard drive every 30’ of inactivity… (For only few minutes) but it gone to sleep mode…

It’s very bad for the durability of the hard drive, no ?

Thanks’s for your help :wink:

There are several things you will have to look at to determine why it is not sleeping. On this version of firmware. I found that samba is changing the permissions on the /etc/samba/smbpasswd file. You can verify this by ssh into the My Cloud and run “stat /etc/samba/smbpasswd” The Change time will be within 30 seconds of the current time and every 30 seconds or so it will update. Currently the only fix is to stop samba. But then you will lose the ability to map the drive. Another thing is to stop wdmcserverd and wdphotodbmergerd.
I’ve uploaded a sleep.awk file. If you know how to SSH into the My Cloud you can unzip the file. Copy it to the Public folder. Then you can use this command to see when your My Cloud is sleeping. “cat /var/log/user.log.1 /var/log/user.log|./sleep.awk”
sleep.zip (464 Bytes)

RAC