악이 활성화되는 데 왜 그렇게 오랜 시간이 걸리는가?

악이 활성화되는 데 왜 그렇게 오랜 시간이 걸리는가?

이것은 openSUSE 13.2의 사악한 0.6.12 및 systemd 210입니다. 네트워크 관리자가 설치되지 않았습니다. 네트워크 인터페이스는 고정 IPv4 주소로 구성됩니다. Plymouth는 무슨 일이 일어나고 있는지 확인하는 것을 선호했기 때문에 그것을 설치하지 않았습니다.

부팅시간이 엄청나게 길어요. 그래픽 대상이 나타날 때까지 시스템은 아무 작업도 하지 않고 그대로 있는 것 같습니다.

산출systemd-analyze plot

sudo journalctl -b | ack -C 25 wicked(이전에 발생한 시간 간격 ) 의 출력 11:29:01:

Nov 14 11:28:48 ascorbic lvm[458]: /dev/sdb: open failed: No medium found
Nov 14 11:28:48 ascorbic lvm[458]: No volume groups found
Nov 14 11:28:48 ascorbic kernel: EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: acl,user_xattr
Nov 14 11:28:48 ascorbic systemd-journal[320]: Runtime journal is using 8.0M (max allowed 396.9M, trying to leave 595.3M free of 3.8G available → current limit 396.9M).
Nov 14 11:28:48 ascorbic avahi-daemon[494]: Found user 'avahi' (UID 491) and group 'avahi' (GID 489).
Nov 14 11:28:48 ascorbic avahi-daemon[494]: Successfully dropped root privileges.
Nov 14 11:28:48 ascorbic avahi-daemon[494]: avahi-daemon 0.6.31 starting up.
Nov 14 11:28:49 ascorbic kernel: vboxdrv: Found 2 processor cores.
Nov 14 11:28:49 ascorbic kernel: vboxdrv: fAsync=0 offMin=0x2a8 offMax=0x17a3
Nov 14 11:28:49 ascorbic kernel: vboxdrv: TSC mode is 'synchronous', kernel timer mode is 'normal'.
Nov 14 11:28:49 ascorbic kernel: vboxdrv: Successfully loaded version 4.3.18_OSE (interface 0x001a0008).
Nov 14 11:28:49 ascorbic avahi-daemon[494]: Loading service file /etc/avahi/services/sftp-ssh.service.
Nov 14 11:28:49 ascorbic avahi-daemon[494]: Loading service file /etc/avahi/services/ssh.service.
Nov 14 11:28:49 ascorbic avahi-daemon[494]: Network interface enumeration completed.
Nov 14 11:28:49 ascorbic avahi-daemon[494]: Registering HINFO record with values 'X86_64'/'LINUX'.
Nov 14 11:28:49 ascorbic avahi-daemon[494]: Server startup complete. Host name is ascorbic.local. Local service cookie is 142331764.
Nov 14 11:28:49 ascorbic avahi-daemon[494]: Service "ascorbic" (/etc/avahi/services/ssh.service) successfully established.
Nov 14 11:28:49 ascorbic avahi-daemon[494]: Service "ascorbic" (/etc/avahi/services/sftp-ssh.service) successfully established.
Nov 14 11:28:49 ascorbic kernel: NET: Registered protocol family 17
Nov 14 11:28:49 ascorbic kernel: No iBFT detected.
Nov 14 11:28:49 ascorbic kernel: vboxpci: IOMMU not found (not registered)
Nov 14 11:28:49 ascorbic vboxdrv[493]: Starting VirtualBox kernel modules..done
Nov 14 11:28:49 ascorbic kernel: r8169 0000:03:00.0 enp3s0: link down
Nov 14 11:28:49 ascorbic kernel: r8169 0000:03:00.0 enp3s0: link down
Nov 14 11:28:49 ascorbic kernel: IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
Nov 14 11:28:49 ascorbic wickedd[528]: lo: address 127.0.0.1 covered by a static lease
Nov 14 11:28:49 ascorbic dns-resolver[606]: ATTENTION: You have modified /etc/resolv.conf. Leaving it untouched...
Nov 14 11:28:49 ascorbic dns-resolver[608]: You can find my version in /etc/resolv.conf.netconfig
Nov 14 11:28:49 ascorbic wickedd[528]: dns-resolver: ATTENTION: You have modified /etc/resolv.conf. Leaving it untouched...
Nov 14 11:28:49 ascorbic wickedd[528]: dns-resolver: You can find my version in /etc/resolv.conf.netconfig
Nov 14 11:28:49 ascorbic wickedd[528]: ATTENTION: You have modified /etc/resolv.conf.  Leaving it untouched...
Nov 14 11:28:49 ascorbic wickedd[528]: You can find my version in /etc/resolv.conf.netconfig ...
Nov 14 11:28:49 ascorbic wickedd[528]: subprocesses exited with error
Nov 14 11:28:49 ascorbic wickedd[528]: failed to install generic settings
Nov 14 11:28:49 ascorbic wickedd[528]: lo: address ::1 covered by a static lease
Nov 14 11:28:49 ascorbic dns-resolver[733]: ATTENTION: You have modified /etc/resolv.conf. Leaving it untouched...
Nov 14 11:28:49 ascorbic dns-resolver[735]: You can find my version in /etc/resolv.conf.netconfig
Nov 14 11:28:49 ascorbic wickedd[528]: dns-resolver: ATTENTION: You have modified /etc/resolv.conf. Leaving it untouched...
Nov 14 11:28:49 ascorbic wickedd[528]: dns-resolver: You can find my version in /etc/resolv.conf.netconfig
Nov 14 11:28:49 ascorbic wickedd[528]: ATTENTION: You have modified /etc/resolv.conf.  Leaving it untouched...
Nov 14 11:28:49 ascorbic wickedd[528]: You can find my version in /etc/resolv.conf.netconfig ...
Nov 14 11:28:49 ascorbic wickedd[528]: subprocesses exited with error
Nov 14 11:28:49 ascorbic wickedd[528]: failed to install generic settings
Nov 14 11:28:51 ascorbic kernel: r8169 0000:03:00.0 enp3s0: link up
Nov 14 11:28:51 ascorbic kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp3s0: link becomes ready
Nov 14 11:28:51 ascorbic avahi-daemon[494]: Joining mDNS multicast group on interface enp3s0.IPv4 with address 192.168.222.165.
Nov 14 11:28:51 ascorbic avahi-daemon[494]: New relevant interface enp3s0.IPv4 for mDNS.
Nov 14 11:28:51 ascorbic avahi-daemon[494]: Registering new address record for 192.168.222.165 on enp3s0.IPv4.
Nov 14 11:28:51 ascorbic dns-resolver[877]: ATTENTION: You have modified /etc/resolv.conf. Leaving it untouched...
Nov 14 11:28:51 ascorbic dns-resolver[879]: You can find my version in /etc/resolv.conf.netconfig
Nov 14 11:28:51 ascorbic wickedd[528]: dns-resolver: ATTENTION: You have modified /etc/resolv.conf. Leaving it untouched...
Nov 14 11:28:51 ascorbic wickedd[528]: dns-resolver: You can find my version in /etc/resolv.conf.netconfig
Nov 14 11:28:51 ascorbic wickedd[528]: ATTENTION: You have modified /etc/resolv.conf.  Leaving it untouched...
Nov 14 11:28:51 ascorbic wickedd[528]: You can find my version in /etc/resolv.conf.netconfig ...
Nov 14 11:28:51 ascorbic wickedd[528]: subprocesses exited with error
Nov 14 11:28:51 ascorbic wickedd[528]: failed to install generic settings
Nov 14 11:28:52 ascorbic avahi-daemon[494]: Joining mDNS multicast group on interface enp3s0.IPv6 with address fe80::5246:5dff:fea0:251e.
Nov 14 11:28:52 ascorbic avahi-daemon[494]: New relevant interface enp3s0.IPv6 for mDNS.
Nov 14 11:28:52 ascorbic avahi-daemon[494]: Registering new address record for fe80::5246:5dff:fea0:251e on enp3s0.*.
Nov 14 11:29:01 ascorbic wicked[532]: lo              up
Nov 14 11:29:01 ascorbic wicked[532]: enp3s0          up
Nov 14 11:29:01 ascorbic sshd-gen-keys-start[969]: Checking for missing server keys in /etc/ssh
Nov 14 11:29:01 ascorbic cron[967]: (CRON) INFO (Syslog will be used instead of sendmail.)
Nov 14 11:29:01 ascorbic cron[967]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 95% if used.)
Nov 14 11:29:01 ascorbic cron[967]: (CRON) INFO (running with inotify support)
Nov 14 11:29:01 ascorbic iscsiadm[981]: iscsiadm: No records found
Nov 14 11:29:01 ascorbic sshd[982]: Server listening on 0.0.0.0 port 22.
Nov 14 11:29:01 ascorbic sshd[982]: Server listening on :: port 22.
Nov 14 11:29:01 ascorbic chronyd[986]: chronyd version 1.29.1 starting
Nov 14 11:29:01 ascorbic chronyd[986]: Could not open RTC file (null) for reading
Nov 14 11:29:01 ascorbic chronyd[986]: Set system time, error in RTC = 0.000000
Nov 14 10:29:01 ascorbic chronyd[986]: Linux kernel major=3 minor=16 patch=6
Nov 14 10:29:01 ascorbic chronyd[986]: hz=100 shift_hz=7 freq_scale=1.00000000 nominal_tick=10000 slew_delta_tick=833 max_tick_bias=1000 shift_pll=2
Nov 14 10:29:01 ascorbic chronyd[986]: Frequency 10.585 +/- 0.080 ppm read from /var/lib/chrony/drift
Nov 14 10:29:01 ascorbic chronyd[986]: Can't initialise from real time clock, driver not loaded
Nov 14 10:29:01 ascorbic chronyd[974]: Starting chronyd: ..done
Nov 14 10:29:01 ascorbic display-manager[987]: /etc/vconsole.conf available
Nov 14 10:29:01 ascorbic display-manager[987]: KEYMAP: de-latin1-nodeadkeys
Nov 14 10:29:01 ascorbic display-manager[987]: Command: localectl set-keymap de-latin1-nodeadkeys
Nov 14 10:29:01 ascorbic dbus[505]: [system] Activating via systemd: service name='org.freedesktop.locale1' unit='dbus-org.freedesktop.locale1.service'
Nov 14 10:29:01 ascorbic dbus[505]: [system] Successfully activated service 'org.freedesktop.locale1'
Nov 14 10:29:01 ascorbic display-manager[987]: Starting service kdm..done
Nov 14 10:29:01 ascorbic pdns_recursor[973]: PowerDNS Recursor 3.6.2 ([email protected]) (C) 2001-2014 PowerDNS.COM BV
Nov 14 10:29:01 ascorbic pdns_recursor[973]: Using 64-bits mode. Built on 20141030174804 by abuild@cloud108, gcc 4.8.1 20130909 [gcc-4_8-branch revision 202388].
Nov 14 10:29:01 ascorbic pdns_recursor[973]: PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Nov 14 10:29:01 ascorbic pdns_recursor[973]: Reading random entropy from '/dev/urandom'

답변1

DHCP 시간 초과가 너무 깁니다. /etc/sysconfig/network/dhcp합계 값을 편집하고 변경합니다 .DHCLIENT_WAIT_AT_BOOTDHCLIENT6_WAIT_AT_BOOT

답변2

실행해 보십시오 systemd-analyze critical-chain. 로그보다 출력이 읽기 더 쉽다고 생각합니다. 글쎄요, 이것은 단지 악이 책임이 있다는 것을 확인해 줄 수도 있습니다. 아직 Wick에 대한 경험은 없지만 strace에서 시작하여 어디에서 멈추거나 시간이 초과되는지 확인하거나 tcpdump를 병렬로 실행하여 네트워크에서 무엇을 하려는지 확인하려고 합니다.

편집: 이런, 플롯 링크를 놓쳤습니다. 따라서 크리티컬 체인은 실제로 뭔가 사악한 것이 범인임을 나타낼 것이라고 생각합니다. 따라서 strace 및/또는 tcpdump를 시도해 보십시오.

Edit2: strace를 사용하려면 시도해 보겠습니다.

ExecStart=/usr/bin/strace -ff -o /tmp/wicked.str -ttt -T /usr/sbin/wicked --systemd ifup all

사악한 유닛의 파일에 있습니다.

면책 조항: 테스트되지 않았습니다. 죄송합니다. 적합한 테스트 시스템이 없습니다.

관련 정보