Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  Slow boot due to NFS mount timing out 60s  (Read 2521 times)

pekkal

  • Guest
Slow boot due to NFS mount timing out 60s
« on: 2016/01/17, 18:39:32 »

I have a brand new siduction 15.1.0 KDE. Adding the NFS mount to fstab resulted 60 second delay to the boot.


I copied to my fstab from my old (2014-1) siduction install the NFS mount commands:
Quote
ip-address:/path /media/netbackup        nfs          auto,users,rw,exec
ip-address:/path  /media/netvideo         nfs          auto,users,rw,exec


After booting the "journalctl -b -x" shows for each entry:
Quote
-- 
-- The start-up result is done.
Jan 17 16:38:19 siductionbox systemd[1]: media-netmusic.mount: Mounting timed out. Stopping.
Jan 17 16:38:19 siductionbox systemd[1]: Mounted /media/netmusic.
-- Subject: Unit media-netmusic.mount has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit media-netmusic.mount has finished starting up.
--


"systemd-analyze blame":
Quote
   1min 30.046s media-netbackup.mount
   1min 30.044s media-netvideo.mount


After the slow boot the NFS disk works fine. Any advice: is NFS waiting for my net disk to wake up, or my siduction server to get started. In the both cases: how to  avoid the 60s wait time?


pekkal

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.938
Re: Slow boot due to NFS mount timing out 60s
« Reply #1 on: 2016/01/17, 18:52:13 »
You want to search our forum about systemd automount of nfs shares.
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

pekkal

  • Guest
Re: Slow boot due to NFS mount timing out 60s
« Reply #2 on: 2016/01/23, 10:19:41 »
OK, thanks. I changed fstab to
Quote

.../media/netbackup nfs noauto,x-systemd.automount,x-systemd.device-timeout=10,timeo=14,x-systemd.idle-timeout=1min 0 0
and this results a fast boot and the NFS shares coming up later.