You are not logged in.

#1 2016-09-22 01:06:25

Kresp
Member
Registered: 2016-09-22
Posts: 7

CIFS attempts to mount before network is ready.

I have this in my fstab:

//192.168.253.1/@LOG            /mnt/username/@LOG            cifs    credentials=/home/maxi/.config/username.smb,_netdev,file_mode=0444,dir_mode=0555,uid=1000,gid=1000    0       0
//192.168.253.1/@MUSIC          /mnt/username/@MUSIC          cifs    credentials=/home/maxi/.config/username.smb,_netdev,file_mode=0444,dir_mode=0555,uid=1000,gid=1000    0       0
//192.168.253.1/@PUB            /mnt/username/@PUB            cifs    credentials=/home/maxi/.config/username.smb,_netdev,file_mode=0444,dir_mode=0555,uid=1000,gid=1000    0       0
//192.168.253.1/@SHARE          /mnt/username/@SHARE          cifs    credentials=/home/maxi/.config/username.smb,_netdev,file_mode=0444,dir_mode=0555,uid=1000,gid=1000    0       0
//192.168.253.1/@TEST           /mnt/username/@TEST           cifs    credentials=/home/maxi/.config/username.smb,_netdev,file_mode=0444,dir_mode=0555,uid=1000,gid=1000    0       0

During boot, i get following (from journalctl -b):

Sep 21 15:03:34 alhazred systemd[1]: NetworkManager-wait-online.service: Job NetworkManager-wait-online.service/start failed with result 'dependency'.
Sep 21 15:03:34 alhazred systemd[1]: Started Daily rotation of log files.
Sep 21 15:03:34 alhazred systemd[1]: Started Open Virtual Machine Tools (vmware-vmblock-fuse).
Sep 21 15:03:34 alhazred systemd[1]: Starting Login Service...
Sep 21 15:03:34 alhazred systemd[1]: Started Daily Cleanup of Temporary Directories.
Sep 21 15:03:34 alhazred systemd[1]: Started Daily man-db cache update.
Sep 21 15:03:34 alhazred systemd[1]: Reached target Timers.
Sep 21 15:03:34 alhazred systemd[1]: Started Login Service.
Sep 21 15:03:34 alhazred systemd-logind[375]: New seat seat0.
Sep 21 15:03:34 alhazred systemd-logind[375]: Watching system buttons on /dev/input/event2 (Power Button)
Sep 21 15:03:34 alhazred systemd[1]: Mounting FUSE Control File System...
Sep 21 15:03:34 alhazred systemd[1]: Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
Sep 21 15:03:34 alhazred systemd[1]: Mounted FUSE Control File System.
Sep 21 15:03:34 alhazred kernel: e1000 0000:02:01.0 eth0: (PCI:66MHz:32-bit) 00:0c:29:bd:b1:d6
Sep 21 15:03:34 alhazred kernel: e1000 0000:02:01.0 eth0: Intel(R) PRO/1000 Network Connection
Sep 21 15:03:34 alhazred dhcpcd[371]: no valid interfaces found
Sep 21 15:03:34 alhazred dhcpcd[371]: forked to background, child pid 382
Sep 21 15:03:34 alhazred systemd[1]: Started dhcpcd on all interfaces.
Sep 21 15:03:34 alhazred systemd[1]: Reached target Network.
Sep 21 15:03:34 alhazred kernel: e1000 0000:02:01.0 ens33: renamed from eth0
Sep 21 15:03:34 alhazred systemd[1]: Starting Network Time Service...
Sep 21 15:03:34 alhazred systemd[1]: Starting Samba SMB/CIFS server...
Sep 21 15:03:34 alhazred systemd[1]: Reached target Network is Online.
Sep 21 15:03:34 alhazred systemd[1]: Mounting /mnt/username/@MUSIC...
Sep 21 15:03:34 alhazred systemd[1]: Mounting /mnt/username/@LOG...
Sep 21 15:03:34 alhazred systemd[1]: Mounting /mnt/username/@PUB...
Sep 21 15:03:34 alhazred systemd[1]: Started OpenSSH Daemon.
Sep 21 15:03:34 alhazred systemd[1]: Mounting /mnt/username/@TEST...
Sep 21 15:03:34 alhazred kernel: NET: Registered protocol family 40
Sep 21 15:03:34 alhazred ntpd[383]: ntpd 4.2.8p8@1.3265-o Sat Jun  4 14:58:28 UTC 2016 (1): Starting
Sep 21 15:03:34 alhazred kernel: FS-Cache: Loaded
Sep 21 15:03:34 alhazred kernel: Key type dns_resolver registered
Sep 21 15:03:34 alhazred kernel: FS-Cache: Netfs 'cifs' registered for caching
Sep 21 15:03:34 alhazred kernel: Key type cifs.spnego registered
Sep 21 15:03:34 alhazred kernel: Key type cifs.idmap registered
Sep 21 15:03:34 alhazred kernel: IPv6: ADDRCONF(NETDEV_UP): ens33: link is not ready
Sep 21 15:03:34 alhazred kernel: e1000: ens33 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
Sep 21 15:03:34 alhazred kernel: IPv6: ADDRCONF(NETDEV_CHANGE): ens33: link becomes ready
Sep 21 15:03:34 alhazred systemd[1]: mnt-username-\x40MUSIC.mount: Mount process exited, code=exited status=32
Sep 21 15:03:34 alhazred mount[387]: mount error(101): Network is unreachable
Sep 21 15:03:34 alhazred mount[387]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Sep 21 15:03:34 alhazred ntpd[383]: Command line: /usr/bin/ntpd -g -u ntp:ntp
Sep 21 15:03:34 alhazred mount[394]: mount error(101): Network is unreachable
Sep 21 15:03:34 alhazred mount[394]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Sep 21 15:03:34 alhazred mount[389]: mount error(101): Network is unreachable
Sep 21 15:03:34 alhazred mount[389]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Sep 21 15:03:34 alhazred mount[385]: mount error(101): Network is unreachable
Sep 21 15:03:34 alhazred mount[385]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Sep 21 15:03:34 alhazred systemd[1]: Failed to mount /mnt/username/@MUSIC.
Sep 21 15:03:34 alhazred dhcpcd[382]: ens33: waiting for carrier
Sep 21 15:03:34 alhazred systemd[1]: Dependency failed for Remote File Systems.
Sep 21 15:03:34 alhazred dhcpcd[382]: ens33: waiting for carrier
Sep 21 15:03:34 alhazred systemd[1]: remote-fs.target: Job remote-fs.target/start failed with result 'dependency'.
Sep 21 15:03:34 alhazred dhcpcd[382]: ens33: carrier acquired
Sep 21 15:03:34 alhazred systemd[1]: mnt-username-\x40MUSIC.mount: Unit entered failed state.
Sep 21 15:03:34 alhazred dhcpcd[382]: ens33: adding address fe80::78d:a70c:6452:78c0
Sep 21 15:03:34 alhazred systemd[1]: Starting Permit User Sessions...
Sep 21 15:03:34 alhazred systemd[1]: mnt-username-\x40LOG.mount: Mount process exited, code=exited status=32
Sep 21 15:03:34 alhazred systemd[1]: Failed to mount /mnt/username/@LOG.
Sep 21 15:03:34 alhazred systemd[1]: mnt-username-\x40LOG.mount: Unit entered failed state.
Sep 21 15:03:34 alhazred systemd[1]: Started Network Time Service.
Sep 21 15:03:34 alhazred systemd[1]: mnt-username-\x40PUB.mount: Mount process exited, code=exited status=32
Sep 21 15:03:34 alhazred systemd[1]: Failed to mount /mnt/username/@PUB.
Sep 21 15:03:34 alhazred systemd[1]: mnt-username-\x40PUB.mount: Unit entered failed state.
Sep 21 15:03:34 alhazred systemd[1]: mnt-username-\x40TEST.mount: Mount process exited, code=exited status=32
Sep 21 15:03:34 alhazred systemd[1]: Failed to mount /mnt/username/@TEST.
Sep 21 15:03:34 alhazred systemd[1]: mnt-username-\x40TEST.mount: Unit entered failed state.

This is Arch inside VmWare Player, on Win8.1 host. Host machine provides network shares.
sudo mount -a works fine.
Option _netdev seems to get ignored.

Mounting fails on boot, but works if i do mounts manually after network is ready.
How do i make mount wait for until network is available?

Last edited by Kresp (2016-09-22 01:09:31)

Offline

#2 2016-09-22 14:37:00

ukhippo
Member
From: Non-paged pool
Registered: 2014-02-21
Posts: 366

Re: CIFS attempts to mount before network is ready.

Network mounts do wait for the network to become "available" by being ordered after network-online.target - which requires your networking software to provide something that starts network-online.target once the network is available.

Your journalctl log shows your "NetworkManager-wait-online.service" is failing. You need to investigate, and fix that failure. Sorry, I know nothing about NetworkManager (I'm assuming that's the networking software you are using from the service name), so can't help with that

Offline

#3 2016-09-22 22:28:51

Kresp
Member
Registered: 2016-09-22
Posts: 7

Re: CIFS attempts to mount before network is ready.

ukhippo wrote:

Network mounts do wait for the network to become "available" by being ordered after network-online.target - which requires your networking software to provide something that starts network-online.target once the network is available.

Your journalctl log shows your "NetworkManager-wait-online.service" is failing. You need to investigate, and fix that failure. Sorry, I know nothing about NetworkManager (I'm assuming that's the networking software you are using from the service name), so can't help with that

That was exactly the problem. NetworkManager was disabled.
Only had to do sudo systemctl enable NetworkManager.

Thanks.

Offline

Board footer

Powered by FluxBB