Environment
- Red Hat Enterprise Linux 6
Issue
- When server is booting the boot process hangs at
dracut: Switching root
, and never displays anything else.
device-mapper: ioctl: 4.33.1-ioctl (2015-8-18) initialised: xx-xxxx@redhat.com
udev: starting version 147
dracut: Starting plymouth daemon
dracut: rd_NO_DM: removing DM RAID activation
dracut: rd_NO_MD: removing MD RAID activation
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc120 irq 14
ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc128 irq 15
Refined TSC clocksource calibration: 2599.999 MHz.
virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10
virtio-pci 0000:00:07.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11
virtio-pci 0000:00:08.0: PCI INT A -> Link[LNKD] -> GSI 11 (level, high) -> IRQ 11
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input3
vda: vda1 vda2
dracut: Scanning devices vda2 for LVM logical volumes vg_unused/lv_swap vg_unused/lv_root
dracut: inactive '/dev/vg_unused/lv_root' [8.51 GiB] inherit
dracut: inactive '/dev/vg_unused/lv_swap' [1.00 GiB] inherit
EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts:
dracut: Remounting /dev/mapper/vg_unused-lv_root with -o noatime,ro
EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts:
dracut: Mounted root filesystem /dev/mapper/vg_unused-lv_root
dracut: Loading SELinux policy
type=1404 audit(1479934528.427:2): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
type=1403 audit(1479934529.195:3): policy loaded auid=4294967295 ses=4294967295
dracut:
dracut: Switching root
Resolution
- Check and confirm that all of the upstart initscripts under
/etc/init/
are intact and correct. - The main script to confirm is
/etc/init/rcS.conf
, this script executes/etc/rc.d/rc.sysinit
which prints text to the console after switch root. - An
fsck
from rescue mode can be run to see if the issue is file corruption based. - If
fsck
doesn't correct the initscripts, the initscripts package needs to be reinstalled via rescue mode.
Root Cause
When the boot process switches root from the initramfs loaded in memory to the mounted storage, it executes the upstart initscripts in
/etc/init/
, which in turn continue the boot process to the login screen. So if any of those scripts are corrupted by file corruption or from a bad update, then there is a chance the boot process will halt at dracut: Switching root
.
Comments
Post a Comment