Shutdown hangs for one minute while umounting NFS shares on kubuntu 22.04 |

Trending 1 month ago

I americium moving kubuntu 22.04 connected 2 desktop machines. I person parts of nan users' location directories mounted via NFS 3 (fstab pinch defaults). A fewer months agone I started encountering problems during shutdown and reboot: The process hangs for almost precisely 1 infinitesimal while unmounting nan NFS shares ("A extremity occupation is moving for ..."). Strangely enough, I tin umount nan NFS shares earlier shutdown from a personification convention without immoderate delay.

I tried to debug nan problem which is simply a situation connected its ain to maine and only recovered retired that nan bent seems to hap successful nan umount2()-call itself. See excerpt from an strace

16:22:29 umount2("/mnt/homes", 0) = 0 16:23:30 newfstatat(AT_FDCWD, "/run/mount/utab", {st_mode=S_IFREG|0644, st_size=1014, ...}, 0) = 0

It seems to beryllium immoderate weird systemd occupation dependency, because inserting nan pursuing work into nan footwear series solved nan problem astatine slightest for reboot, but not for shutdown:

[Unit] Description=umount NFS shares first point astatine shutdown [Service] Type=idle RemainAfterExit=true ExecStart=/bin/true ExecStop=/usr/bin/umount -a -t nfs [Install]

Any ideas really to lick this aliases astatine database further analyse?