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

General support questions
Post Reply
MrGilbo
Posts: 3
Joined: 2012/07/13 12:29:27

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

Post by 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

Post by 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

Post by 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!

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

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

Post by toracat » 2012/07/15 16:15:12

[quote]
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![/quote]
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 [url=http://wiki.centos.org/TipsAndTricks/WindowsShares#head-e10fdeb5fc04f32fbbb50402d3c9f0dcdd688c85]How to mount remote Windows shares[/url].

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

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

Post by AlanBartlett » 2012/07/15 21:48:18

Thank you for reporting back.

On your behalf and for posterity, this thread is now marked [RESOLVED].

Post Reply