10.03.2016 03:07, Greg Freemyer пишет:
The _netdev mounts were only attempted once and that was too soon. Another bug?
May be. For some reasons systemd explicitly does *not* add dependency on "fs_spec" for network mount points in this case. I.e. normally if you have /foo/bar /mnt ... it would implicitly add RequiresMoountsFor=/foo/bar /mnt that orders it after any mount point that contains them. But for network the former is skipped. It is sure something to at least ask upstream. Current systemd supports x-systemd.requires-mounts-for fstab option. As you have 13.2 which is too old, you can instead add configuration snippet to do the same. See below.
The NFS mount happened during the boot process, but seconds BEFORE the 2 mounts with _netdev in the args.
=== You can see the NFS mount happened at 15:29:35 ===
systemctl status srv_new.mount srv_new.mount - /srv_new Loaded: loaded (/etc/fstab) Active: active (mounted) since Wed 2016-03-09 15:29:35 EST; 3h 28min ago Where: /srv_new What: 10.200.3.230:/mnt/pacers1/kvm672/kvm672 Process: 1053 ExecMount=/bin/mount -n -t nfs -o rw,relatime,vers=3 10.200.3.230:/mnt/pacers1/kvm672/kvm672 /srv_new (code=exited, status=0/SUCCESS) ===
Note that the _netdev mount attempts were 5 seconds before that:
=== Output from systemd status for srv-sftp.mount === # systemctl status srv-sftp.mount srv-sftp.mount - /srv/sftp Loaded: loaded (/etc/fstab) Active: failed (Result: exit-code) since Wed 2016-03-09 15:29:30 EST; 3h 25min ago Where: /srv/sftp What: /srv_new/sftp-container-large Process: 1028 ExecMount=/bin/mount -n -t ext4 -o _netdev,loop /srv_new/sftp-container-large /srv/sftp (code=exited, status=32)
Mar 09 15:29:30 cloud1 mount[1028]: mount: /srv_new/sftp-container-large: failed to setup loop device: No such file or directory =====================
OK, so mkdir -p /etc/systemd/system/srv-sftp.mount.d cat > /etc/systemd/system/srv-sftp.mount.d/need_srv_new.conf << EOF [Unit] RequiresMountsFor=/srv_new/sftp-container-large EOF
Here's what I think is the only relevant part of the journal log:
=== Mar 09 15:29:30 cloud1 kernel: loop: module loaded Mar 09 15:29:30 cloud1 mount[1028]: mount: /srv_new/sftp-container-large: failed to setup loop device: No such file or directory Mar 09 15:29:30 cloud1 mount[1027]: mount: /srv_new/portal_backup_container: failed to setup loop device: No such file or directory Mar 09 15:29:30 cloud1 systemd[1]: Failed to mount /home/portal_backup/portal_backup. Mar 09 15:29:30 cloud1 systemd[1]: Dependency failed for Remote File Systems. Mar 09 15:29:30 cloud1 systemd[1]: Failed to mount /srv/sftp. ===
This is openSUSE 13.2 with current patches.
Thanks Greg -- Greg Freemyer www.IntelligentAvatar.net
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org