public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] systemd fails to mount nfs4 mounts
@ 2017-10-13 22:13 Daniel Frey
  2017-10-28 23:57 ` [gentoo-user] " Daniel Frey
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Frey @ 2017-10-13 22:13 UTC (permalink / raw
  To: gentoo-user

I discovered that after my update the other day (systemd is up to date 
as of Wednesday) that my remote nfs mounts are failing on startup.

(Note: as per my other thread, I haven't tried to disable ipv6 yet. I 
want to figure this out first.)

I use an IMSM raid with an initramfs provided by dracut.

I have also set:

  NetworkManager-wait-online.service 
                                loaded active exited    Network Manager 
Wait Online

to wait until networkmanager starts up, and it appears to be working.

When booting, something complains about the module sunrpc not being able 
to be loaded. However, everything I've selected relating to nfs is built 
directly into the kernel, so there shouldn't be external modules to 
begin with.

After logging in, dropping to the shell and manually mounting these nfs 
mounts work.

systemctl status:
● mnt-nas-Pictures.mount 
                                loaded failed failed 
/mnt/nas/Pictures

status:

# systemctl status mnt-nas-Pictures.mount
● mnt-nas-Pictures.mount - /mnt/nas/Pictures
    Loaded: loaded (/etc/fstab; generated; vendor preset: disabled)
    Active: failed (Result: timeout) since Fri 2017-10-13 14:51:08 PDT; 
17min ago
     Where: /mnt/nas/Pictures
      What: nas:/Pictures
      Docs: man:fstab(5)
            man:systemd-fstab-generator(8)
   Process: 781 ExecMount=/bin/mount nas:/Pictures /mnt/nas/Pictures -t 
nfs4 -o rw,defaults,_netdev,intr,bg (code=killed, signal=TERM)

Oct 13 14:49:37 myboringpc systemd[1]: Mounting /mnt/nas/Pictures...
Oct 13 14:51:08 myboringpc systemd[1]: mnt-nas-Pictures.mount: Mounting 
timed out. Stopping.
Oct 13 14:51:08 myboringpc systemd[1]: mnt-nas-Pictures.mount: Mount 
process exited, code=killed status=15
Oct 13 14:51:08 myboringpc systemd[1]: Failed to mount /mnt/nas/Pictures.
Oct 13 14:51:08 myboringpc systemd[1]: mnt-nas-Pictures.mount: Unit 
entered failed state.

So it is saying it was killed. When booting up, systemd sits waiting for 
a start job for two minutes. I rebooted and checked again, and it said 
it timed out. I can see it's waiting for Network Manager Wait Online, 
then it tries to mount the nfs shares.

I presume this means the network is not ready. As I mentioned above, 
logging in and manually mounting is working fine.

Anyone have any suggestions? Of course I didn't notice this until I 
tried to sync pictures from my phone...

Dan


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-11-01 22:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-13 22:13 [gentoo-user] systemd fails to mount nfs4 mounts Daniel Frey
2017-10-28 23:57 ` [gentoo-user] " Daniel Frey
2017-10-29  0:18   ` Adam Carter
2017-10-29 15:15     ` Daniel Frey
2017-11-01 20:25       ` Daniel Frey
2017-11-01 21:12         ` Wols Lists
2017-11-01 21:53           ` Rich Freeman
2017-11-01 22:52           ` Daniel Frey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox