[RESOLVED] CIFS mounts - My NAS won't hibernate

General support questions

[RESOLVED] CIFS mounts - My NAS won't hibernate

Postby MrGilbo » 2012/07/13 13:45:34

Hi there,

I recently reinstalled from scratch a CentOS 6.2 x64 installation to replace my existing 5.7 x86 build. I have two network shares presented from my Synology DiskStation that I have mounted as follows:

mount -t cifs //nas/share /home/data/share -o credentials=/root/diskstation, uid=,gid=,file_mode=0775,dir_mode=0775

The NAS is set to spin down the disks and hibernate after 30 minutes of disk inactivity and this worked perfectly under 5.7 with the shares mounted. The drive would spring into life as soon as anything accessed the mount points and then spin down half an hour later. However, under 6.2 the drives remain spun up and active 24 hours a day. I can see a small blip of disk activity once every 20 seconds and if I power the CentOS machine off, the disks then hibernate 30 minutes later as expected. I've disabled the hourly anacron job but this hasn't made any difference.

Does anybody know if CentOS now has some kind of index or process that could explain the probing my network shares every 20 seconds? I'd really like to stop it if I can.

Thanks for your help.

Gilbo
MrGilbo
 
Posts: 3
Joined: 2012/07/13 12:29:27

Re: CIFS mounts - My NAS won't hibernate

Postby MrGilbo » 2012/07/14 13:20:25

Actually, after some further testing I can confirm that the same behaviour applies to NFS mounts as well. Every 20 seconds there is activity on the network share that is keeping the drives spun up.

Any ideas? I've disabled / turned off all the applications that access the content on these mounts but it seems like Centos 6.2 is either probing the share or otherwise communicating with the NAS in such a way that forces disk acvitity.
MrGilbo
 
Posts: 3
Joined: 2012/07/13 12:29:27

Re: CIFS mounts - My NAS won't hibernate

Postby MrGilbo » 2012/07/15 10:08:15

Apologies. This behaviour doesn't apply to NFS shares, they do seem to allow the NAS to hibernate. Just seems to be CIFS.

In any event I've started using AutoFS to mount the volumes on demand and unmount them after 2 minutes of inactivity. A far more elegant solution and works beautifully!
MrGilbo
 
Posts: 3
Joined: 2012/07/13 12:29:27

[RESOLVED] CIFS mounts - My NAS won't hibernate

Postby toracat » 2012/07/15 16:15:12

MrGilbo wrote:

In any event I've started using AutoFS to mount the volumes on demand and unmount them after 2 minutes of inactivity. A far more elegant solution and works beautifully!

That was indeed a decent solution. For people who would like to use autofs to mount Windows shares (cifs), here I refer to the CentOS wiki How to mount remote Windows shares.
User avatar
toracat
Forum Moderator
 
Posts: 6686
Joined: 2006/09/03 16:37:24
Location: California, US

Re: [RESOLVED] CIFS mounts - My NAS won't hibernate

Postby AlanBartlett » 2012/07/15 21:48:18

Thank you for reporting back.

On your behalf and for posterity, this thread is now marked [RESOLVED].
User avatar
AlanBartlett
Forum Moderator
 
Posts: 8975
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk


Return to CentOS 6 - General Support

Who is online

Users browsing this forum: No registered users and 6 guests