Summary: | CIFS mount hangs on shutdown/restart | ||
---|---|---|---|
Product: | systemd | Reporter: | jree2kx |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED FIXED | QA Contact: | systemd-bugs |
Severity: | normal | ||
Priority: | medium | CC: | jree2kx, keepitsimpleengineer, mickael9 |
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
See Also: | https://bugs.freedesktop.org/show_bug.cgi?id=70002 | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
jree2kx
2013-01-09 04:49:42 UTC
Hmm, if you drop the automount bit for it, does it work correctly then? No. Same thing. I tried autofs and the same issue. I just switched to KDE and there is an option to run shutdown scripts. I added one to run "sudo umount -t cifs -a -f -l" and added myself to sudoers to execute umount without a password which does the trick for me. I'm not sure if the behavior is the same for NFS shares because I have none set up to test. The shares are being mounted after there is a network connection so it would make sense on shutdown to do the reverse and unmount them before the network service is shutdown. Hmm, I wonder if 0c08f5cde749bd2818475e487109cd0d413452df fixes things for you? Could you test? Sorry, I somehow missed the email notification. If that patch is in 198, the issue is still there. I just switched to NFS and I do not have this issue anymore. I'm also having this issue. https://www.samba.org/samba/docs/man/manpages-3/umount.cifs.8.html specifies that the -f option can be passed to umount. Strangely enough, with -f the unmount process still seems to be blocking (even though the device is unmounted instantly). I'm having the hanging issue with systemd 207-5 and 3.11.1-2-ARCH x86_64. System crashes (become unresonsive requires hard reset) when shutdown or restarted. On restart the boot partition require fsck do to improper closure. Stopping requires unount /dev/sdf1 ; sync ; poweroff -f No such problem with i686 laptop. (In reply to comment #2) >> Hmm, if you drop the automount bit for it, does it work correctly then? > No. Same thing. I tried autofs and the same issue. Just to verify, does it also hang if automount is not used at all? systemd side of the problem should be fixed in http://cgit.freedesktop.org/systemd/systemd/commit/?id=7700945. The issue that cifs mount cannot be forcibly unmounted probably remains. Feel free to take it up with fuse people or kernel people. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.