You are not logged in.
I am using Systemd automount for my NFS share. There is my configs:
#/etc/systemd/system/mnt-storage.mount
[Unit]
Description=Storage on grotten
[Mount]
What=grotten:/mnt/storage
Where=/mnt/storage
Type=nfs4
Options=rw,_netdev
LazyUnmount=yes#/etc/systemd/system/mnt-storage.automount
[Unit]
Description=Automount storage on grotten
[Automount]
Where=/mnt/storage
TimeoutIdleSec=300
[Install]
WantedBy=remote-fs.targetmnt-storage.automount is enabled. Also I have a storage symlink in my ~/ to /mnt/storage.
I have two annoying trobles with this mount.
1. On shutdown or reboot there is "Stop job is running for mnt-storage.mount" with 90 sec timeout.
Workaround is unit
#/etc/systemd/system/mnt-storage-unmount.service
[Unit]
Description=unmount-nfs shares from raspi-nas
DefaultDependencies=no
Before=shutdown.target reboot.target halt.target
[Service]
ExecStart=/usr/bin/umount /mnt/storage
Type=oneshot
[Install]
WantedBy=shutdown.targetIt works fine, but it seems like dirty way. I want Systemd to umount in propper way.
2. When I have no connection to my NFS server (e. g. network is down or I am in other network), file manager (e. g. Thunar) stucks to show me my home.
I tried the soft option, but it did not take any effect.
So how can I deal with my mount?
Last edited by bergentroll (2018-05-03 15:36:59)
Offline
Offline
seth, so, well. Thank you — this options defenetly help with shutdown and reboot issue, but I still have freezes on my file-manager while network is not available.
Last edited by bergentroll (2018-05-03 15:05:37)
Offline
You could strace thunar to get an idea what it's doing when blocking.
Edit: it might be relevant whether gvfs and/or thunar-volman are installed.
Last edited by seth (2018-05-03 15:15:42)
Offline
Exactly! Without thunar-volman there is no hangs anymore. Thank you again!
Offline