[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#775541: NFS mounts from /etc/fstab do not work



I would be happy to this solution could close this bug.

## Debian jessie: systemd could not bring-up rpcbind, nfs-common correctly?

do `sudo systemctl enable systemd-networkd-wait-online.service`

## Explain

If you have found these log with `sudo journalctl` command output..

 5月 18 09:29:27 jupiter systemd[1]: Found dependency on basic.target/start
 5月 18 09:29:27 jupiter systemd[1]: Breaking ordering cycle by deleting job portmap.service/start
 5月 18 09:29:27 jupiter systemd[1]: Job portmap.service/start deleted to break ordering cycle start
ing with basic.target/start
 5月 18 09:29:27 jupiter systemd[1]: Found ordering cycle on basic.target/start
 5月 18 09:29:27 jupiter systemd[1]: Found dependency on sysinit.target/start
 5月 18 09:29:27 jupiter systemd[1]: Found dependency on rpcbind.service/start
 5月 18 09:29:27 jupiter systemd[1]: Found dependency on network-online.target/start
 5月 18 09:29:27 jupiter systemd[1]: Found dependency on network.target/start
 5月 18 09:29:27 jupiter systemd[1]: Found dependency on systemd-networkd.service/start
 5月 18 09:29:27 jupiter systemd[1]: Found dependency on dbus.service/start
 5月 18 09:29:27 jupiter systemd[1]: Found dependency on basic.target/start
 5月 18 09:29:27 jupiter systemd[1]: Breaking ordering cycle by deleting job rpcbind.service/start
 5月 18 09:29:27 jupiter systemd[1]: Job rpcbind.service/start deleted to break ordering cycle start
ing with basic.target/start

See "Breaking ordering cycle by deleting job [...]" lines.

It may not installed "Netwrok-Manager", system network may bringed-up
with "systemd-networkd".

If system bring-up network with classic wheezy style
/etc/init.d/networking to read /etc/network/interfaces, this probrem
would not present.

If "Network-Manager" installed on the system, "nm-dispatcher" bring-up
rpmbind and nfs-common correctly, then also this probrem would not
present.

Default installing "Desktop-Environment" of jessie, Network-Manager
installed automaticaly.

Some situation, "dist-upgrade", "custom install" or removed
"Network-Manager" by hand, then setup "systemd-networkd" to bring-up
network, it cause could not satisfy "insserv" dependency.

"update-rc.d" and "insserv" use /etc/init.d/* scripts include
"Provides, Required-(Start|Stop), X-Start-Before, X-Stop-After"
requests, and "insserv" write to /etc/init.d/.depend.boot these
dependencies.

Systemd on jessie read these dependencies to boot clearly.

But if admin only setup "systemd-networkd", it is not provide
"$network" found in /etc/init.d/* scripts and "networking" in
/etc/init.d/.depend.boot file.

Systemd provide this with "systemd-networkd-wait-online.service" found
in /lib/systemd/system/ directory.

Admins sould do enabling "systemd-networkd-wait-online.service" with
`sudo systemctl enable systemd-networkd-wait-online.service` command.

This provide
/run/systemd/generator/networking.service.d/50-insserv-$network.conf
then required insserv dependencies were satisfied, then rpcbind and
nfs-common bring-up clearly.

I think it would be happy "systemd-networkd" enabling
"systemd-networkd-wait-online.service" automaticaly.

Regards,

-- 
  Shinichiro HIDA  shinichiro@stained-g.net
  GPG fingerprint = BD22 BAE5 43BA 5E70 9F1B  7627 1D81 E567 6912 F09D


Reply to: