You are not logged in.
I've had this problem a while, and lots of searching hasn't found a solution.
If use any auto-mounted CIFS share, then suspend the laptop, wait 15+ minutes, and resume the laptop, I find accessing (via ls, df etc) the CIFS share takes several minutes before returning. There is no console message, but simply an excessive delay before it finally works. This issue does not occur if the laptop is resumed only a few seconds after the suspend.
I have freshly reinstalled the laptop with the February 2016 ISO. It's a fairly vanilla setup, with all mounts defined in /etc/fstab. Various mount options have been tried, but the latest is:
//nas/Public /mnt/public cifs defaults,x-systemd.automount,rw,_netdev,credentials=/etc/smbcredentials,uid=1000 0 0I started with simpler options as per the wiki, but they didn't work and that's why I tried the extra options suggested in various bug tickets, blog entries and other forums.
If I explicitly unmount the CIFS shares before suspending, at resume time there is no issue. Remembering to unmount shares is an inconvenient workaround, though (sometimes you need to just close the laptop lid and go do something else).
Testing is being done with a wired connection to the laptop, and I always ping the router before attempting to access the CIFS share in order to confirm the network is online and working. Many other machines on the network can consistently access the NAS without issue.
Any suggestions appreciated.
Last edited by benalexau (2016-02-11 21:57:57)
Offline
I am not sure but maybe the remote server has closed the connexion since your laptop does not respond to any request/ping while it is suspended. I don't think network file systems can remain mounted when the machine is off for a long time. I think the proper solution is to umount the share before suspending and resume it afterwards. You can write a systemd sleep hook for this (see the wiki).
Last edited by olive (2016-02-16 10:50:14)
Offline