You are not logged in.

#1 2020-12-23 14:39:13

smax
Member
Registered: 2012-03-14
Posts: 9

systemd shutdown order for netboot systems

Hello,
I have several devices netbooting from a central server via PXE and TFTP. The root file system is then mounted by the kernel via nfs4. The devices start up and everything looks good.

The problem occures during shutdown/reboot. While Stopping the Network Service the devices get stuck. This is the output I see during shutdown

[...]
[  Ok  ] Stopped target Network.
[...]
         Stopping Network Service
(1 of 4) A stop job is running for Network Service
(2 of 4) A stop job is running for Network Time Synchronization
(3 of 4) A stop job is running for Update UTMP about System Boot/Shutdown
(4 of 4) A start job is running for Generate shutdown-ramfs

After some time I also get this message:

           nfs: server 10.0.0.1 not responding, still trying

To me it looks like the system shuts down the network interface even if it is still needed for the nfs. Afterwards other jobs try to access the nfs and fail as the network has already been killed.

So is there a way to prevent/postpone the network shutdown? I already tried to mark the "network.target" as wanted for example in the systemd-timesyncd.service however this didn't help.

Thanks in advance

Offline

Board footer

Powered by FluxBB