[Bug 725503] New: multiminute hang/delay during sysvinit
https://bugzilla.novell.com/show_bug.cgi?id=725503 https://bugzilla.novell.com/show_bug.cgi?id=725503#c0 Summary: multiminute hang/delay during sysvinit Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: i686 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mrmazda@earthlink.net QAContact: qa@suse.de Found By: --- Blocker: --- I've done 'zypper dup' on several 32 bit machines using init=/sbin/init on grub cmdline in recent days, and this is happening on every one of them. tty1 displays normal boot messages up into eth0 initialization, then just sits that way several minutes before more messages appear and init finishes. On the boot that completed seconds ago, neither /var/log/boot.msg nor /var/log/boot.omsg was written. boot.omsg was actually last written when this machine was last dup'd 11 days ago. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c
zj jia
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c1
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c2
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c3
Felix Miata
You are pretty sure that you have booted SysVinit? Simply because /sbin/init could be a symbolic link ... on the other head the file /sbin/init could be part of both sysvinit-init and systemd-sysvinit
I thought that init=/sbin/init was all that was required to use sysvinit instead of systemd. Now I see on the first system checked that /sbin/init is indeed a symlink to systemd, in spite of the fact that all my 12.1 systems were initially installed prior to systemd becoming default, had systemd locked out until M5, and use init=/sbin/init on all Grub kernel lines. Nevertheless, the extended boot delay is real. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c4
--- Comment #4 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c5
--- Comment #5 from Felix Miata
try booting with systemd.log_level=debug systemd.log_target=kmsg and post dmesg output.
attached
you can also try to run systemd-analyze blame to see which service is taking time to start.
7419ms md.service 3688ms smb.service 3656ms smartd.service 1802ms nfsserver.service 1755ms nmb.service 1347ms systemd-vconsole-setup.service 1311ms cifs.service 1084ms systemd-logind.service 947ms cycle.service 939ms systemd-remount-api-vfs.service 886ms var-lock.mount 865ms var-run.mount 836ms media.mount 835ms localnet.service 815ms remount-rootfs.service 691ms systemd-sysctl.service 635ms dev-hugepages.mount 616ms console-kit-daemon.service 599ms sys-kernel-security.mount 598ms syslog.service 535ms network-remotefs.service 523ms microcode.ctl.service .. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c6
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c7
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c8
--- Comment #8 from Felix Miata
Could you please take a look if there is some error visible in /var/log/messages or /var/log/boot.msg?
I forgot to do this before installing sysvinit-init and rebooting on the first machine tried on, gx280, which is a machine not yet updated from beta1 (previous kernel 3.1.rc7) to RC1 (& 3.1.rc9) until after this change, and didn't suffer this bug on first boot today to update this bug.
Further, I'd like to see what happens when normal sysvinit is in use. Could you switch by installing "sysvinit-init" package, reboot and attach /var/log/messages and /var/log/boot.msg and the output of "ip a s; ip -4 r s; ip -6 r s"?
This attachment. Todo: other machine(s) as time permits, so leaving NEEDINFO set. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c9
Marius Tomaschewski
Created an attachment (id=459615) --> (http://bugzilla.novell.com/attachment.cgi?id=459615) [details] ip outputs and logs requested in comment 7
(In reply to comment #7)
Could you please take a look if there is some error visible in /var/log/messages or /var/log/boot.msg?
I forgot to do this before installing sysvinit-init and rebooting on the first machine tried on, gx280, which is a machine not yet updated from beta1 (previous kernel 3.1.rc7) to RC1 (& 3.1.rc9) until after this change, and didn't suffer this bug on first boot today to update this bug.
OK, there is no problem with sysvinit:
service network start
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c10
--- Comment #10 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c11
--- Comment #11 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c12
Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c13
--- Comment #13 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c14
--- Comment #14 from Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c15
Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c16
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c
Mike Coleman
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c17
--- Comment #17 from Christian Bachmaier
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c18
Christian Bachmaier
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c19
--- Comment #19 from Christian Bachmaier
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c20
Christian Bachmaier
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c21
Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c22
--- Comment #22 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c23
--- Comment #23 from Christian Bachmaier
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c24
--- Comment #24 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c25
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c26
Christian Bachmaier
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c27
Cristian Rodríguez
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c28
Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c29
Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c30
--- Comment #30 from lynn wilson
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c31
--- Comment #31 from Christian Bachmaier
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c32
--- Comment #32 from Marius Tomaschewski
It would also be nice to get some background information about the purpose of this script, what it does and why it is necessary. Is it to be able to mount cifs shares within fstab in a fixed fashion? As far as I know, other distributions (Ubuntu) do not have something similar.
No, they may not have them. /etc/sysconfig/network/if-up.d/21-dhcpcd-hook-samba: AFAIS, it writes WINS server, ... it got via dhcp into the /etc/samba/dhcp.conf (included in /etc/samba/smb.conf): ## Path: Network/DHCP/DHCP client ## Description: DHCP client configuration ## Type: yesno ## Default: yes # # Should the DHCP client modify /etc/samba/dhcp.conf? # DHCLIENT_MODIFY_SMB_CONF="yes" /etc/sysconfig/network/if-up.d/21-cifs: AFAIS, it start/stops /etc/init.d/cifs and nmb when the network is restarted. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c33
--- Comment #33 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c34
Malvern Star
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c35
--- Comment #35 from d t
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c36
--- Comment #36 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c37
--- Comment #37 from Christian Bachmaier
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c38
--- Comment #38 from lynn wilson
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c39
--- Comment #39 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c40
--- Comment #40 from Christian Bachmaier
I've also pushed another fix to samba-client, please test samba-client 3.6.1-34.7.1 or later ; packages are available at http://download.opensuse.org/repositories/home:/fcrozat:/systemd/openSUSE_12...
This version (x86_64 tested) seems to fix the boot delay! Many thanks to Frederic. What I could not test is functionality like updating the wins server by dhcp. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c41
--- Comment #41 from Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c42
--- Comment #42 from Felix Miata
try booting with systemd.log_level=debug systemd.log_target=kmsg and post dmesg output.
I installed 12.2M1 fresh yesterday. Initially there was no boot delay, but after several boots I turned on several services with chkconfig and added several RAID1 partition entries to fstab, which caused the this long delay. IIRC, newly enabled services included smb, nmb, nfs, nfsserver, rpcbind, cifs & smolt.
you can also try to run systemd-analyze blame to see which service is taking time to start.
8518ms md.service 2802ms ntp.service 2296ms nfsserver.service 2232ms nmb.service 2073ms localnet.service 1589ms cifs.service 1587ms systemd-vconsole-setup.service 1427ms systemd-modules-load.service 1225ms cycle.service 1044ms systemd-logind.service 960ms nfs.service 892ms network-remotefs.service 714ms smb.service 556ms console-kit-daemon.service 554ms avahi-daemon.service 540ms remount-rootfs.service 514ms syslog.service 485ms udev.service 465ms systemd-remount-api-vfs.service 458ms var-run.mount 346ms cpufreq.service 306ms media.mount 294ms var-lock.mount 278ms sys-kernel-debug.mount 232ms systemd-tmpfiles-setup.service 224ms rpcbind.service 195ms console-kit-log-system-start.service 190ms systemd-sysctl.service 171ms sys-kernel-security.mount 166ms usr-local.mount 137ms dbus.service 136ms fbset.service 133ms udev-trigger.service 109ms systemd-user-sessions.service 108ms dev-mqueue.mount 104ms purge-kernels.service 99ms home.mount 97ms smolt.service 94ms sshd.service 89ms disks-boot.mount 80ms dev-hugepages.mount 78ms disks-sda-boot.mount 57ms rc-local.service 54ms pub.mount 41ms acpid.service -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c43
--- Comment #43 from Felix Miata
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c44
--- Comment #44 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c45
Wilfred van Velzen
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c46
--- Comment #46 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c47
--- Comment #47 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c48
--- Comment #48 from Wilfred van Velzen
https://bugzilla.novell.com/show_bug.cgi?id=725503
https://bugzilla.novell.com/show_bug.cgi?id=725503#c49
Frederic Crozat
participants (1)
-
bugzilla_noreply@novell.com