WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Shutdown Very Long due to NFS Mounts - Un-Mounting in Shutdown.sh Doesn't Work?  (Read 2244 times)

Offline baz

  • Full Member
  • ***
  • Posts: 216
At boot I mount NFS drives to my NAS and it works great. However at shutdown, I noticed that it hangs on "Unmounting all filesystems" (over a minute), and intermittently would generate some sort of RPC error. It is not unimaginable for it to take long unmounting since manually running umount.nfs for each mount takes about as long. But I still wanted to shorten this, so I decided to force unmount the drives in shutdown.sh by adding these lines:

umount.nfs /mount1 -f
umount.nfs /mount2 -f
umount.nfs /mount3 -f

If I manually run those commands they are executed instantly and all drives are unmounted in a second. However placing them in shutdown.sh seems to have no effect. Either the commands are being run at the wrong time of the shutdown process, or the -f option is being ignored. Does anyone have any insight into this?

Cheers,
Baz

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
I use the "-l" switch when I have that problem. Try using it instead of "-f".