한동안 이 문제가 있어서 오늘 온라인에서 찾은 제안을 시도하고 실행하여 systemd-analyze plot
결과를 확인했습니다.
여기에 SVG 파일을 첨부하는 이유는 제가 착각하지 않는 한 시작하는 데 시간이 오래 걸리는 일이 두 가지밖에 없기 때문입니다. 그 중 하나는 systemd-networkd-wait-online
(물론) 그런데 이상하게 sendmail
도 I조차 얻지 못합니다. 내 홈 네트워크 서버에서 시드박스/미디어 서버처럼 사용하고 있습니다.
여기서 뭔가 빠졌나요? wlan
유선 기계이고 필요하지 않기 때문에 제외하기 위해 이전에 비활성화 했습니다 wlan
.
비활성화하고 sendmail
다시 시작하고 시간 초과를 확인한 다음 다시 실행했는데 이제 시간이 걸리는 유일한 것은 내가 고치려는 것뿐입니다. 어떤 도움이라도 대단히 감사하겠습니다.
https://c0ld.net/slowboot-nosendmail.svg
전체 Journalctl은 다음과 같습니다.http://0x0.st/Xo36.txt
고정 IP가 있고 인터넷에 연결되어 있지 않으며 실행 plex
되고 저장 bittorrent-nox
을 위해 부팅 시 두 개의 USB 하드 드라이브가 마운트되어 있습니다. jellyfin
및 를 제외하고는 실행되는 모든 webmin
것 입니다 cockpit
. 전체 Ubuntu GNome이 설치되어 있지만 부팅 시 시작되지 않습니다. 백업 PC로 사용해야 할 경우 재미로 사용하고 싶습니다.
나는 서비스를 비활성화함으로써 단순히 문제를 가리고 싶지 않습니다. 나는 renderer: networkd
에서 로 변경하려고 시도했습니다 renderer: NetworkManager
.netplan
추가, 출력하도록 설계됨networkctl
1 lo loopback carrier unmanaged
2 eno1 ether routable configured
3 wlp1s0 wlan off unmanaged
3 links listed.
그래서 거기에는 미친 것이 없습니다.
또한 optional: true
netplan에서 eno1을 구성했습니다.
편집: 아래에 지정된 대로 --any 및 --interface=eno1을 추가해 보았지만 둘 다 여전히 동일한 시간 초과를 갖습니다. https://ubuntuforums.org/showthread.php?t=2490962
Apr 21 15:15:16 jays-lenovo systemd[1]: Starting Wait for Network to be Configured...
░░ Subject: A start job for unit systemd-networkd-wait-online.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit systemd-networkd-wait-online.service has begun execution.
░░
░░ The job identifier is 3886.
Apr 21 15:17:16 jays-lenovo systemd-networkd-wait-online[4967]: Timeout occurred while waiting for network connectivity.
Apr 21 15:17:16 jays-lenovo systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit systemd-networkd-wait-online.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Apr 21 15:17:16 jays-lenovo systemd[1]: systemd-networkd-wait-online.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit systemd-networkd-wait-online.service has entered the 'failed' state with result 'exit-code'.
Apr 21 15:17:16 jays-lenovo systemd[1]: Failed to start Wait for Network to be Configured.
░░ Subject: A start job for unit systemd-networkd-wait-online.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit systemd-networkd-wait-online.service has finished with a failure.
░░
░░ The job identifier is 3886 and the job result is failed.
이는 --interface=eno1을 사용하여 서비스를 다시 시작한 후였으며 확실히 시작되었습니다! ! ! !
systemd-networkd.service에 대해 동일한 검사를 수행합니다.
-- Boot 984031206640442cb02a40798ddf3b7f --
Apr 21 14:21:12 jays-lenovo systemd[1]: Starting Network Configuration...
░░ Subject: A start job for unit systemd-networkd.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit systemd-networkd.service has begun execution.
░░
░░ The job identifier is 49.
Apr 21 14:21:12 jays-lenovo systemd-networkd[1178]: lo: Link UP
Apr 21 14:21:12 jays-lenovo systemd-networkd[1178]: lo: Gained carrier
Apr 21 14:21:12 jays-lenovo systemd-networkd[1178]: Enumeration completed
Apr 21 14:21:12 jays-lenovo systemd[1]: Started Network Configuration.
░░ Subject: A start job for unit systemd-networkd.service has finished successfully
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit systemd-networkd.service has finished successfully.
░░
░░ The job identifier is 49.
Apr 21 14:23:15 jays-lenovo systemd-networkd[1178]: eno1: Link UP
Apr 21 14:23:18 jays-lenovo systemd-networkd[1178]: eno1: Gained carrier
Apr 21 14:23:19 jays-lenovo systemd-networkd[1178]: eno1: Gained IPv6LL
Apr 21 14:51:50 jays-lenovo systemd-networkd[1178]: eno1: Re-configuring with /run/systemd/network/10-netplan-eno1.network
Apr 21 14:51:51 jays-lenovo systemd-networkd[1178]: eno1: Re-configuring with /run/systemd/network/10-netplan-eno1.network
Apr 21 14:51:51 jays-lenovo systemd-networkd[1178]: eno1: DHCPv6 lease lost
Apr 21 14:52:23 jays-lenovo systemd[1]: Stopping Network Configuration...
░░ Subject: A stop job for unit systemd-networkd.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A stop job for unit systemd-networkd.service has begun execution.
░░
░░ The job identifier is 4966.
Apr 21 14:52:23 jays-lenovo systemd-networkd[1178]: eno1: DHCPv6 lease lost
Apr 21 14:52:23 jays-lenovo systemd[1]: systemd-networkd.service: Deactivated successfully.
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit systemd-networkd.service has successfully entered the 'dead' state.
Apr 21 14:52:23 jays-lenovo systemd[1]: Stopped Network Configuration.
░░ Subject: A stop job for unit systemd-networkd.service has finished
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A stop job for unit systemd-networkd.service has finished.
░░
░░ The job identifier is 4966 and the job result is done.
-- Boot dc2cb94cb1f649c49648ba8e085192db --
Apr 21 14:53:19 jays-lenovo systemd[1]: Starting Network Configuration...
░░ Subject: A start job for unit systemd-networkd.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit systemd-networkd.service has begun execution.
░░
░░ The job identifier is 25.
Apr 21 14:53:19 jays-lenovo systemd-networkd[1172]: lo: Link UP
Apr 21 14:53:19 jays-lenovo systemd-networkd[1172]: lo: Gained carrier
Apr 21 14:53:19 jays-lenovo systemd-networkd[1172]: Enumeration completed
Apr 21 14:53:19 jays-lenovo systemd[1]: Started Network Configuration.
░░ Subject: A start job for unit systemd-networkd.service has finished successfully
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit systemd-networkd.service has finished successfully.
░░
░░ The job identifier is 25.
Apr 21 14:53:19 jays-lenovo systemd-networkd[1172]: eno1: Link UP
Apr 21 14:53:22 jays-lenovo systemd-networkd[1172]: eno1: Gained carrier
Apr 21 14:53:24 jays-lenovo systemd-networkd[1172]: eno1: Gained IPv6LL
Apr 21 15:26:32 jays-lenovo systemd-networkd[1172]: eno1: Re-configuring with /run/systemd/network/10-netplan-eno1.network
Apr 21 15:26:32 jays-lenovo systemd-networkd[1172]: eno1: DHCPv6 lease lost
Apr 21 15:26:32 jays-lenovo systemd-networkd[1172]: eno1: Re-configuring with /run/systemd/network/10-netplan-eno1.network
Apr 21 15:26:32 jays-lenovo systemd-networkd[1172]: eno1: DHCPv6 lease lost
가득한https://c0ld.net/dmesg.html여기에서 찾을 수 있습니다. 이제 무엇을 더 시도해야 할지 모르겠어서 인터넷을 통해 검색해 보았습니다.
eno1도 고정 IP로 구성되어 있으므로 사용 가능해지는 데 더 짧은 시간이 걸리는 대신 더 오래 걸리는 것은 의미가 없습니다.
192.168.2.1은 집 전체의 기본 라우터입니다. 여러 라우터와 수십 개의 장치가 있으며 다른 라우터에는 문제가 없습니다.
# This is the network config written by 'subiquity'
network:
version: 2
renderer: networkd
ethernets:
eno1:
optional: false
addresses:
- 192.168.2.99/24
nameservers:
addresses: [192.168.2.1]
routes:
- to: default
via: 192.168.2.1
답변1
오 와, 알았어, 몇 가지 연습을 했고 미래의 여행자를 위해 NetworkManager와 netplan과 네트워킹의 혼란이 있습니다. 나는 가서 이 두 가지를 모두 따랐고(또는 어쨌든 약간의 비트가 누락되었음) 모든 것이 완벽하게 작동했으며 재부팅하는 데 몇 초밖에 걸리지 않았습니다. :)
https://linux.fernandocejas.com/docs/how-to/switch-from-network-manager-to-systemd-networkd
https://askubuntu.com/questions/1336247/removing-netplan-to-use-systemd-networkd-directly