dracut and centos 7

General support questions
Post Reply
ec2geek007
Posts: 6
Joined: 2018/09/05 10:45:57

dracut and centos 7

Post by ec2geek007 » 2018/09/05 11:10:18

I have a disk with the following structure on fdisk -l command


Device Boot Start End Blocks Id System
/dev/xvdh1 * 2048 2099199 1048576 83 Linux
/dev/xvdh2 2099200 16777215 7339008 8e Linux LVM

(the disk is attached to another running centos 7 vm, hence you are seeing xvdh1 & 2, else they will be xvda1&2 for the vm 'will be running)

as you can see xvdh1 is the boot ; contains only the replica of boot directory in xvdh2 while xvdh2 is the one that has all --> /boot /root /etc /shm ...

I am getting dracut error
204.955113] dracut-initqueue[669]: Warning: dracut-initqueue timeout - starting timeout scripts
[ 204.955327] dracut-initqueue[669]: Warning: Could not boot.
[ 205.095282] dracut-initqueue[669]: Warning: /dev/root does not exist
Starting Dracut Emergency Shell...
Warning: /dev/root does not exist
Generating "/run/initramfs/rdsosreport.txt"
Entering emergency mode. Exit the shell to continue.
Type "journalctl" to view system logs.
You might want to save "/run/initramfs/rdsosreport.txt to a USB stick or /boot
after mounting them and attach it to a bug report.



Any ideas on getting this right? much appreciated.

PS: I chrooted to dir that mounted xvdh2 and ran dracut -f ; generated intramfs... img but still running into same dracut error.
Thanks in advance!

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: dracut and centos 7

Post by TrevorH » 2018/09/05 12:01:29

There should be nothing in the /boot directory on the 2nd partition, it should be empty. You need to mount the 1st partition on the 2nd partition's /boot before you chroot and run dracut. You probably also need to specify the kernel version that you want it to build the initramfs for or else it will use the running one from the booted machine.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

ec2geek007
Posts: 6
Joined: 2018/09/05 10:45:57

Re: dracut and centos 7

Post by ec2geek007 » 2018/09/05 23:22:06

Thanks for your response and direction. I tried that;
1. Emptied xvdh2 boot dir
2. mounted xvdh1 on the boot dir
3. chrooted
4. issued dracut -f --kver kernel-version_i_have in the xvdh1

Had several warnings that some libraries missing..

5. Dracut completed
6. Shutdown -h now

removed/detached the disk and tried booting with another vm
same dracut timeout and unable to find root and boot

The etc/fstab has the following entries

/dev/mapper/centos-root / xfs defaults 0 0
UUID=a7bc7c98-bfaa-430c-91e8-89c160cd6097 /boot xfs defaults 0 0
/dev/mapper/centos-swap swap swap defaults 0 0

Anything else I need to do here? Pls note that this is a remote vm ; I do not have access to the console

Many thanks in advance!!

ec2geek007
Posts: 6
Joined: 2018/09/05 10:45:57

Re: dracut and centos 7

Post by ec2geek007 » 2018/09/07 23:34:25

I am now tired of multiple images and several variations

I get below. Is this a bug or something? what can I do? I basically import centos 7 image into aws
and it bombs this way. Please can someone point me in the right direction? Thanks a million in advance.

[ 196.375253] dracut-initqueue[255]: Warning: /dev/centos/root does not exist
[ 196.375481] dracut-initqueue[255]: Warning: /dev/centos/swap does not exist
[ 196.375638] dracut-initqueue[255]: Warning: /dev/mapper/centos-root does not exist
Starting Dracut Warning: /dev/centos/root does not exist
Warning: /dev/centos/swap does not exist
Warning: /dev/mapper/centos-root does not exist
Generating "/run/initramfs/rdsosreport.txt"
Entering emergency mode. Exit the shell to continue.
Type "journalctl" to view system logs.
You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot
after mounting them and attach it to a bug report.

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: dracut and centos 7

Post by hunter86_bg » 2018/09/08 08:29:47

Can you do the following:
1. Mount the root from xvdh2 on /mnt
2. mount /proc, /sys, /dev , /tmp and /run under /mnt with the option rbind '-o rbind'
For example ' mount -o rbind /proc /mnt/proc'
3. Mount xvdh1 on /mnt/boot
4. chroot /mnt
5. List the /boot once you chroot
6. Run 'pvs;vgs;lvs'
7. Run ' dracut -f --regenerate-all' or only specific version
8. Umount all 'umount -R /mnt ; umount /mnt'
Once you triy to boot, report what if it works or if any error is detected.

ec2geek007
Posts: 6
Joined: 2018/09/05 10:45:57

Re: dracut and centos 7

Post by ec2geek007 » 2018/09/08 15:19:04

Thanks Hunter86_bg and Trevor

I did follow to the letter on the instructions ; here is the full log -- removed some duplicate noisy messages

Anything else, my apologies for repeated results :) Appreciate your patience.

=======================================
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.0-862.11.6.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Tue Aug 14 21:49:04 UTC 2018
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.10.0-862.11.6.el7.x86_64 root=/dev/mapper/centos-root ro crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap console=ttyS0
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000007d9f9fff] usable
[ 0.000000] BIOS-e820: [mem 0x000000007d9fa000-0x000000007fffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000e0000000-0x00000000e03fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] SMBIOS 2.7 present.
[ 0.000000] Hypervisor detected: KVM
[ 0.000000] e820: last_pfn = 0x7d9fa max_arch_pfn = 0x400000000
[ 0.000000] PAT configuration [0-7]: WB WC UC- UC WB WP UC- UC
[ 0.000000] Using GB pages for direct mapping
[ 0.000000] RAMDISK: [mem 0x358bf000-0x36c57fff]
[ 0.000000] Early table checksum verification disabled
[ 0.000000] ACPI: RSDP 00000000000f8fb0 00014 (v00 AMAZON)
[ 0.000000] ACPI: RSDT 000000007d9fe3d0 00038 (v01 AMAZON AMZNRSDT 00000001 AMZN 00000001)
[ 0.000000] ACPI: FACP 000000007d9fff80 00074 (v01 AMAZON AMZNFACP 00000001 AMZN 00000001)
[ 0.000000] ACPI: DSDT 000000007d9fe410 010E9 (v01 AMAZON AMZNDSDT 00000001 AMZN 00000001)
[ 0.000000] ACPI: FACS 000000007d9fff40 00040
[ 0.000000] ACPI: SSDT 000000007d9ff6c0 0087A (v01 AMAZON AMZNSSDT 00000001 AMZN 00000001)
[ 0.000000] ACPI: APIC 000000007d9ff5d0 00076 (v01 AMAZON AMZNAPIC 00000001 AMZN 00000001)
[ 0.000000] ACPI: SRAT 000000007d9ff530 000A0 (v01 AMAZON AMZNSRAT 00000001 AMZN 00000001)
[ 0.000000] ACPI: WAET 000000007d9ff500 00028 (v01 AMAZON AMZNWAET 00000001 AMZN 00000001)
[ 0.000000] SRAT: PXM 0 -> APIC 0x00 -> Node 0
[ 0.000000] SRAT: PXM 0 -> APIC 0x01 -> Node 0
[ 0.000000] SRAT: Node 0 PXM 0 [mem 0x00000000-0x7fffffff]
[ 0.000000] NODE_DATA(0) allocated [mem 0x7d9d3000-0x7d9f9fff]
[ 0.000000] Reserving 161MB of memory at 688MB for crashkernel (System RAM: 2009MB)
[ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[ 0.000000] kvm-clock: cpu 0, msr 0:7d983001, primary cpu clock
[ 0.000000] kvm-clock: using sched offset of 19594820570 cycles
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x00001000-0x00ffffff]
[ 0.000000] DMA32 [mem 0x01000000-0xffffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00001000-0x0009efff]
[ 0.000000] node 0: [mem 0x00100000-0x7d9f9fff]
[ 0.000000] Initmem setup node 0 [mem 0x00001000-0x7d9f9fff]
[ 0.000000] ACPI: PM-Timer IO Port: 0xb008
[ 0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[ 0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
[ 0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
[ 0.000000] ACPI: IOAPIC (id[0x00] address[0xfec00000] gsi_base[0])
[ 0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
[ 0.000000] Using ACPI (MADT) for SMP configuration information
[ 0.000000] smpboot: Allowing 2 CPUs, 0 hotplug CPUs
[ 0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000effff]
[ 0.000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff]
[ 0.000000] e820: [mem 0x80000000-0xdfffffff] available for PCI devices
[ 0.000000] Booting paravirtualized kernel on KVM
[ 0.000000] setup_percpu: NR_CPUS:5120 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
[ 0.000000] PERCPU: Embedded 35 pages/cpu @ffff8a87fd600000 s104920 r8192 d30248 u1048576
[ 0.000000] KVM setup async PF for cpu 0
[ 0.000000] kvm-stealtime: cpu 0, msr 7d613500
[ 0.000000] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes)
[ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 506395
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-3.10.0-862.11.6.el7.x86_64 root=/dev/mapper/centos-root ro crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap console=ttyS0
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] x86/fpu: xstate_offset[2]: 0240, xstate_sizes[2]: 0100
[ 0.000000] x86/fpu: xstate_offset[3]: 03c0, xstate_sizes[3]: 0040
[ 0.000000] x86/fpu: xstate_offset[4]: 0400, xstate_sizes[4]: 0040
[ 0.000000] x86/fpu: xstate_offset[5]: 0440, xstate_sizes[5]: 0040
[ 0.000000] x86/fpu: xstate_offset[6]: 0480, xstate_sizes[6]: 0200
[ 0.000000] x86/fpu: xstate_offset[7]: 0680, xstate_sizes[7]: 0400
[ 0.000000] x86/fpu: xstate_offset[8]: 0000, xstate_sizes[8]: 0000
[ 0.000000] x86/fpu: xstate_offset[9]: 0a80, xstate_sizes[9]: 0008
[ 0.000000] xsave: enabled xstate_bv 0x2ff, cntxt size 0xa88 using standard form
[ 0.000000] Memory: 1820352k/2058216k available (7348k kernel code, 392k absent, 237472k reserved, 6281k data, 1836k init)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] x86/pti: Unmapping kernel while in userspace
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=5120 to nr_cpu_ids=2.
[ 0.000000] NR_IRQS:327936 nr_irqs:440 0
[ 0.000000] Console: colour VGA+ 80x25
[ 0.000000] console [ttyS0] enabled
[ 0.000000] allocated 8388608 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[ 0.000000] tsc: Detected 2500.000 MHz processor
[ 0.254426] Calibrating delay loop (skipped) preset value.. 5000.00 BogoMIPS (lpj=2500000)
[ 0.255895] pid_max: default: 32768 minimum: 301
[ 0.256745] Security Framework initialized
[ 0.257493] SELinux: Initializing.
[ 0.258115] Yama: becoming mindful.
[ 0.258913] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.260568] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.261948] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.263166] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.264560] Initializing cgroup subsys memory
[ 0.265326] Initializing cgroup subsys devices
[ 0.266147] Initializing cgroup subsys freezer
[ 0.266965] Initializing cgroup subsys net_cls
[ 0.267769] Initializing cgroup subsys blkio
[ 0.268550] Initializing cgroup subsys perf_event
[ 0.269397] Initializing cgroup subsys hugetlb
[ 0.270194] Initializing cgroup subsys pids
[ 0.270955] Initializing cgroup subsys net_prio
[ 0.272984] mce: CPU supports 32 MCE banks
[ 0.273987] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[ 0.275016] Last level dTLB entries: 4KB 64, 2MB 0, 4MB 0
[ 0.275973] tlb_flushall_shift: 6
[ 0.276570] Speculative Store Bypass: Vulnerable
[ 0.277394] FEATURE SPEC_CTRL Not Present
[ 0.278149] FEATURE IBPB_SUPPORT Not Present
[ 0.279324] Spectre V2 : Vulnerable: Retpoline without IBPB
[ 0.283750] Freeing SMP alternatives: 24k freed
[ 0.296524] ACPI: Core revision 20130517
[ 0.297933] ACPI: All ACPI Tables successfully acquired
[ 0.298942] ftrace: allocating 28097 entries in 110 pages
[ 0.359486] Enabling x2apic
[ 0.360041] Enabled x2apic
[ 0.360832] Switched APIC routing to physical x2apic.
[ 0.363098] ..TIMER: vector=0x30 apic1=0 pin1=0 apic2=-1 pin2=-1
[ 0.364149] smpboot: CPU0: Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz (fam: 06, model: 55, stepping: 04)
[ 0.365955] Performance Events: unsupported p6 CPU model 85 no PMU driver, software events only.
[ 0.367598] KVM setup paravirtual spinlock
[ 0.369964] smpboot: Booting Node 0, Processors #1 OK
[ 0.371175] kvm-clock: cpu 1, msr 0:7d983041, secondary cpu clock
[ 0.373683] Brought up 2 CPUs
[ 0.373687] KVM setup async PF for cpu 1
[ 0.373693] kvm-stealtime: cpu 1, msr 7d713500
[ 0.375740] smpboot: Max logical packages: 1
[ 0.376507] smpboot: Total of 2 processors activated (10000.00 BogoMIPS)
[ 0.378305] devtmpfs: initialized
[ 0.381406] EVM: security.selinux
[ 0.382013] EVM: security.ima
[ 0.382552] EVM: security.capability
[ 0.384277] atomic64 test passed for x86-64 platform with CX8 and with SSE
[ 0.385501] pinctrl core: initialized pinctrl subsystem
[ 0.386597] RTC time: 15:01:39, date: 09/08/18
[ 0.387480] NET: Registered protocol family 16
[ 0.388521] ACPI: bus type PCI registered
[ 0.389249] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[ 0.390496] PCI: Using configuration type 1 for base access
[ 0.394880] ACPI: Added _OSI(Module Device)
[ 0.395659] ACPI: Added _OSI(Processor Device)
[ 0.396465] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.397314] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.398291] ACPI: Added _OSI(Linux-Dell-Video)
[ 0.400894] ACPI: Interpreter enabled
[ 0.401586] ACPI: (supports S0 S3 S4 S5)
[ 0.402308] ACPI: Using IOAPIC for interrupt routing
[ 0.403222] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[ 0.405430] ACPI: Enabled 16 GPEs in block 00 to 0F
[ 0.408521] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[ 0.409637] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI]
[ 0.410859] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
[ 0.412060] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
[ 0.414330] acpiphp: Slot [3] registered
[ 0.415064] acpiphp: Slot [4] registered
[ 0.415797] acpiphp: Slot [5] registered
[ 0.416540] acpiphp: Slot [6] registered
[ 0.417268] acpiphp: Slot [7] registered
[ 0.418009] acpiphp: Slot [8] registered
[ 0.418747] acpiphp: Slot [9] registered
[ 0.419487] acpiphp: Slot [10] registered
[ 0.420236] acpiphp: Slot [11] registered
[ 0.420996] acpiphp: Slot [12] registered
[ 0.421735] acpiphp: Slot [13] registered
[ 0.422487] acpiphp: Slot [14] registered
[ 0.423226] acpiphp: Slot [15] registered
[ 0.423978] acpiphp: Slot [16] registered
[ 0.424733] acpiphp: Slot [17] registered
[ 0.425483] acpiphp: Slot [18] registered
[ 0.426252] acpiphp: Slot [19] registered
[ 0.426992] acpiphp: Slot [20] registered
[ 0.427738] acpiphp: Slot [21] registered
[ 0.428481] acpiphp: Slot [22] registered
[ 0.429237] acpiphp: Slot [23] registered
[ 0.429978] acpiphp: Slot [24] registered
[ 0.430730] acpiphp: Slot [25] registered
[ 0.431479] acpiphp: Slot [26] registered
[ 0.432228] acpiphp: Slot [27] registered
[ 0.432972] acpiphp: Slot [28] registered
[ 0.433723] acpiphp: Slot [29] registered
[ 0.434462] acpiphp: Slot [30] registered
[ 0.435213] acpiphp: Slot [31] registered
[ 0.435953] PCI host bridge to bus 0000:00
[ 0.436675] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.437653] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
[ 0.438851] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window]
[ 0.440050] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[ 0.441351] pci_bus 0000:00: root bus resource [mem 0x80000000-0xfebfffff window]
[ 0.444799] pci 0000:00:01.3: quirk: [io 0xb000-0xb03f] claimed by PIIX4 ACPI
[ 0.446102] pci 0000:00:01.3: quirk: [io 0xb100-0xb10f] claimed by PIIX4 SMB
[ 0.447427] pci 0000:00:01.3: PIIX4 devres E PIO at fff0-ffff
[ 0.448469] pci 0000:00:01.3: PIIX4 devres F MMIO at ffc00000-ffffffff
[ 0.449623] pci 0000:00:01.3: PIIX4 devres G PIO at fff0-ffff
[ 0.450664] pci 0000:00:01.3: PIIX4 devres H MMIO at ffc00000-ffffffff
[ 0.451841] pci 0000:00:01.3: PIIX4 devres I PIO at fff0-ffff
[ 0.452889] pci 0000:00:01.3: PIIX4 devres J PIO at fff0-ffff
[ 0.457396] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
[ 0.458633] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
[ 0.459825] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
[ 0.461057] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
[ 0.462240] ACPI: PCI Interrupt Link [LNKS] (IRQs *9)
[ 0.463439] vgaarb: device added: PCI:0000:00:03.0,decodes=io+mem,owns=io+mem,locks=none
[ 0.464866] vgaarb: loaded
[ 0.465379] vgaarb: bridge control possible 0000:00:03.0
[ 0.466408] SCSI subsystem initialized
[ 0.467117] ACPI: bus type USB registered
[ 0.467866] usbcore: registered new interface driver usbfs
[ 0.468859] usbcore: registered new interface driver hub
[ 0.469806] usbcore: registered new device driver usb
[ 0.470774] EDAC MC: Ver: 3.0.0
[ 0.471596] PCI: Using ACPI for IRQ routing
[ 0.472619] NetLabel: Initializing
[ 0.473255] NetLabel: domain hash size = 128
[ 0.474042] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.474940] NetLabel: unlabeled traffic allowed by default
[ 0.475983] amd_nb: Cannot enumerate AMD northbridges
[ 0.476906] Switched to clocksource kvm-clock
[ 0.482361] pnp: PnP ACPI init
[ 0.482995] ACPI: bus type PNP registered
[ 0.484125] pnp: PnP ACPI: found 5 devices
[ 0.484883] ACPI: bus type PNP unregistered
[ 0.492275] NET: Registered protocol family 2
[ 0.493237] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.494529] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[ 0.495751] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.496946] TCP: reno registered
[ 0.497538] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.498629] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.499839] NET: Registered protocol family 1
[ 0.500652] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[ 0.501727] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[ 0.502936] Unpacking initramfs...
[ 0.750002] Freeing initrd memory: 20068k freed
[ 0.755384] RAPL PMU: API unit is 2^-32 Joules, 3 fixed counters, 10737418240 ms ovfl timer
[ 0.756837] RAPL PMU: hw unit of domain pp0-core 2^-0 Joules
[ 0.757856] RAPL PMU: hw unit of domain package 2^-0 Joules
[ 0.758828] RAPL PMU: hw unit of domain dram 2^-16 Joules
[ 0.760272] sha1_ssse3: Using AVX2 optimized SHA-1 implementation
[ 0.761415] sha256_ssse3: Using AVX2 optimized SHA-256 implementation
[ 0.762815] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 0.763941] Initialise system trusted keyring
[ 0.764756] audit: initializing netlink socket (disabled)
[ 0.765760] type=2000 audit(1536418900.546:1): initialized
[ 0.787581] HugeTLB registered 1 GB page size, pre-allocated 0 pages
[ 0.788740] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.791069] zpool: loaded
[ 0.791577] zbud: loaded
[ 0.792294] VFS: Disk quotas dquot_6.5.2
[ 0.793043] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.794361] msgmni has been set to 3594
[ 0.795102] Key type big_key registered
[ 0.796624] NET: Registered protocol family 38
[ 0.797458] Key type asymmetric registered
[ 0.798202] Asymmetric key parser 'x509' registered
[ 0.799113] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[ 0.800442] io scheduler noop registered
[ 0.801154] io scheduler deadline registered (default)
[ 0.802063] io scheduler cfq registered
[ 0.802760] io scheduler mq-deadline registered
[ 0.803577] io scheduler kyber registered
[ 0.804384] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 0.805374] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[ 0.806654] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
[ 0.807943] ACPI: Power Button [PWRF]
[ 0.808758] GHES: HEST is not enabled!
[ 0.809517] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.833075] 00:04: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 0.834552] Non-volatile memory driver v1.3
[ 0.835354] Linux agpgart interface v0.103
[ 0.836175] crash memory driver: version 1.1
[ 0.836991] rdac: device handler registered
[ 0.837758] hp_sw: device handler registered
[ 0.838520] emc: device handler registered
[ 0.839271] alua: device handler registered
[ 0.840072] libphy: Fixed MDIO Bus: probed
[ 0.840858] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.842018] ehci-pci: EHCI PCI platform driver
[ 0.842819] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.843899] ohci-pci: OHCI PCI platform driver
[ 0.844691] uhci_hcd: USB Universal Host Controller Interface driver
[ 0.845870] usbcore: registered new interface driver usbserial
[ 0.846916] usbcore: registered new interface driver usbserial_generic
[ 0.848091] usbserial: USB Serial support registered for generic
[ 0.849184] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
[ 0.850827] i8042: Warning: Keylock active
[ 1.996591] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 1.997638] mousedev: PS/2 mouse device common for all mice
[ 1.998940] rtc_cmos 00:00: RTC can wake from S4
[ 2.000347] rtc_cmos 00:00: rtc core: registered rtc_cmos as rtc0
[ 2.001582] rtc_cmos 00:00: alarms up to one day, 114 bytes nvram
[ 2.002697] cpuidle: using governor menu
[ 2.003463] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.004531] usbcore: registered new interface driver usbhid
[ 2.005526] usbhid: USB HID core driver
[ 2.006272] drop_monitor: Initializing network drop monitor service
[ 2.007441] TCP: cubic registered
[ 2.008047] Initializing XFRM netlink socket
[ 2.008916] NET: Registered protocol family 10
[ 2.009873] NET: Registered protocol family 17
[ 2.010677] mpls_gso: MPLS GSO support
[ 2.011531] microcode: sig=0x50654, pf=0x1, revision=0x2000043
[ 2.012637] microcode: Microcode Update Driver: v2.01 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
[ 2.014317] Loading compiled-in X.509 certificates
[ 2.015213] Loaded X.509 cert 'CentOS Linux kpatch signing key: xyz'
[ 2.016900] Loaded X.509 cert 'CentOS Linux Driver update signing key: xyz2'
[ 2.019083] Loaded X.509 cert 'CentOS Linux kernel signing key: xyz3'
[ 2.020766] registered taskstats version 1
[ 2.023407] Key type trusted registered
[ 2.025650] Key type encrypted registered
[ 2.026434] IMA: No TPM chip found, activating TPM-bypass! (rc=-19)
[ 2.027789] Magic number: 2:172:32
[ 2.028646] rtc_cmos 00:00: setting system clock to 2018-09-08 15:01:41 UTC (1536418901)
[ 2.031280] Freeing unused kernel memory: 1836k freed
[ 2.032556] Write protecting the kernel read-only data: 12288k
[ 2.035387] Freeing unused kernel memory: 832k freed
[ 2.037729] Freeing unused kernel memory: 676k freed
[ 2.041397] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.043225] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.044383] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.046625] systemd[1]: systemd 219 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[ 2.049620] systemd[1]: Detected virtualization kvm.
[ 2.050472] systemd[1]: Detected architecture x86-64.
[ 2.051341] systemd[1]: Running in initial RAM disk.

Welcome to [0;34mCentOS Linux 7 (Core) dracut-033-535.el7_5.1 (Initramfs)[0m!

[ 2.054615] systemd[1]: Set hostname to <xyz.com>.
[ 2.076946] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.078098] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.079277] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.080432] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.082078] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.083312] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.084647] random: systemd: uninitialized urandom read (16 bytes read)
[[32m OK [0m] Reached target Local File Systems.
[ 2.090538] systemd[1]: Reached target Local File Systems.
[ 2.091495] systemd[1]: Starting Local File Systems.
[[32m OK [0m] Reached target Swap.
[ 2.094162] systemd[1]: Reached target Swap.
[ 2.094923] systemd[1]: Starting Swap.
[[32m OK [0m] Reached target Timers.
[ 2.097421] systemd[1]: Reached target Timers.
[ 2.098208] systemd[1]: Starting Timers.
[[32m OK [0m] Created slice Root Slice.
[ 2.100913] systemd[1]: Created slice Root Slice.
[ 2.101710] systemd[1]: Starting Root Slice.
[[32m OK [0m] Listening on Journal Socket.
[ 2.104413] systemd[1]: Listening on Journal Socket.
[ 2.105277] systemd[1]: Starting Journal Socket.
[[32m OK [0m] Listening on udev Kernel Socket.
[ 2.108081] systemd[1]: Listening on udev Kernel Socket.
[ 2.109005] systemd[1]: Starting udev Kernel Socket.
[[32m OK [0m] Listening on udev Control Socket.
[ 2.111832] systemd[1]: Listening on udev Control Socket.
[ 2.112817] systemd[1]: Starting udev Control Socket.
[[32m OK [0m] Reached target Sockets.
[ 2.115022] systemd[1]: Reached target Sockets.
[ 2.115824] systemd[1]: Starting Sockets.
[[32m OK [0m] Created slice System Slice.
[ 2.117933] systemd[1]: Created slice System Slice.
[ 2.118808] systemd[1]: Starting System Slice.
[ 2.119983] systemd[1]: Starting Journal Service...
Starting Journal Service...
[[32m OK [0m] Reached target Slices.
[ 2.123557] systemd[1]: Reached target Slices.
[ 2.124416] systemd[1]: Starting Slices.
[ 2.125665] systemd[1]: Starting dracut cmdline hook...
Starting dracut cmdline hook...
[ 2.128487] systemd[1]: Starting Setup Virtual Console...
Starting Setup Virtual Console...
[ 2.131381] systemd[1]: Starting Create list of required static device nodes for the current kernel...
Starting Create list of required st... nodes for the current kernel...
[ 2.136204] systemd[1]: Starting Apply Kernel Variables...
Starting Apply Kernel Variables...
[[32m OK [0m] Started Journal Service.
[ 2.140830] systemd[1]: Started Journal Service.
[[32m OK [0m] Started Create list of required sta...ce nodes for the current kernel.
Starting Create Static Device Nodes in /dev...
[[32m OK [0m] Started Apply Kernel Variables.
[[32m OK [0m] Started Create Static Device Nodes in /dev.
[[32m OK [0m] Started dracut cmdline hook.
Starting dracut pre-udev hook...
[ 2.498378] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
[ 2.514530] device-mapper: uevent: version 1.0.3
[ 2.515479] device-mapper: ioctl: 4.37.1-ioctl (2018-04-03) initialised: dm-devel@redhat.com
[[32m OK [0m] Started Setup Virtual Console.
[[32m OK [0m] Started dracut pre-udev hook.
Starting udev Kernel Device Manager...
[[32m OK [0m] Started udev Kernel Device Manager.
Starting udev Coldplug all Devices...
Mounting Configuration File System...
[[32m OK [0m] Mounted Configuration File System.
[[32m OK [0m] Started udev Coldplug all Devices.
Starting Show Plymouth Boot Screen...
Starting dracut initqueue hook...
[[32m OK [0m] Reached target System Initialization.
%G[[32m OK [0m] Started Show Plymouth Boot Screen.

[[32m OK [0m] Reached target Paths.

[[32m OK [0m] Reached target Basic System.

[ 125.288937] dracut-initqueue[262]: Warning: dracut-initqueue timeout - starting timeout scripts


[ 142.008162] dracut-initqueue[262]: Warning: dracut-initqueue timeout - starting timeout scripts

[ 142.334406] random: fast init done
[ 142.608094] dracut-initqueue[262]: Warning: dracut-initqueue timeout - starting timeout scripts

[ 186.507027] dracut-initqueue[262]: Warning: dracut-initqueue timeout - starting timeout scripts

[ 189.717145] dracut-initqueue[262]: Warning: dracut-initqueue timeout - starting timeout scripts

[ 189.717413] dracut-initqueue[262]: Warning: Could not boot.

%G[[32m OK [0m] Started Show Plymouth Boot Screen.

[[32m OK [0m] Reached target Paths.

[[32m OK [0m] Reached target Basic System.


[ 189.717145] dracut-initqueue[262]: Warning: dracut-initqueue timeout - starting timeout scripts

[ 189.717413] dracut-initqueue[262]: Warning: Could not boot.

[ 190.036668] dracut-initqueue[262]: Warning: /dev/centos/root does not exist
[ 190.036910] dracut-initqueue[262]: Warning: /dev/centos/swap does not exist
[ 190.037091] dracut-initqueue[262]: Warning: /dev/mapper/centos-root does not exist
Warning: /dev/centos/root does not exist
Warning: /dev/centos/swap does not exist
Warning: /dev/mapper/centos-root does not exist

Generating "/run/initramfs/rdsosreport.txt"


Entering emergency mode. Exit the shell to continue.
Type "journalctl" to view system logs.
You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot
after mounting them and attach it to a bug report.

ec2geek007
Posts: 6
Joined: 2018/09/05 10:45:57

Re: dracut and centos 7

Post by ec2geek007 » 2018/09/08 20:17:23

Many thanks to all!! At last 'got it working,

Culprit was the grub entry which pointed both kernel and intrafms in a different directory

did blkid , crosscheked with fstab mounts and figured that grub entries are mismatched.

nevertheless, the knowledge that you have shared with me is price less. Big thank you!

suv
Posts: 1
Joined: 2019/03/06 09:23:24

Re: dracut and centos 7

Post by suv » 2019/03/06 09:36:09

Hi!

I am facing same issue with centos 7.6. However in my case dracut file is all correct and intact. When the scenario is tested multiple times with the same disk, sometimes it fails to identify the root volume.
The observation is, whenever it goes in dracut emergency mode while finding the root disk, actually all LVM related files are missing from initramfs image.

So here are the steps.
1. Updated dracut.conf with required additional driver.
2. Created new image with dracut -f <image file> <kernel version>

Image gets successfully created.
Crass verified required driver entries using lsinitrd.

On Failure
#lsinitrd initramfs-3.10.0-123.el7.x86_64.img.bkp | grep lvm returns nothing.

On Success
# lsinitrd initramfs-3.10.0-123.el7.x86_64.img | grep lvm
lvm
drwxr-xr-x 2 root root 0 Mar 6 12:37 etc/lvm
-rw-r--r-- 1 root root 94109 Mar 6 12:37 etc/lvm/lvm.conf
-rw-r--r-- 1 root root 776 Sep 12 2013 etc/udev/rules.d/64-lvm.rules
-rwxr-xr-x 1 root root 596 Nov 2 23:10 usr/lib/dracut/hooks/cmdline/30-parse-lvm.sh
-r--r--r-- 1 root root 2454 Nov 19 21:49 usr/lib/udev/rules.d/11-dm-lvm.rules
-r--r--r-- 1 root root 6385 Mar 6 12:37 usr/lib/udev/rules.d/69-dm-lvm-metad.rules
-r-xr-xr-x 1 root root 11392 Mar 6 12:38 usr/lib64/device-mapper/libdevmapper-event-lvm2mirror.so
-r-xr-xr-x 1 root root 11384 Mar 6 12:38 usr/lib64/device-mapper/libdevmapper-event-lvm2raid.so
-r-xr-xr-x 1 root root 15640 Mar 6 12:38 usr/lib64/device-mapper/libdevmapper-event-lvm2snapshot.so
-r-xr-xr-x 1 root root 15728 Mar 6 12:38 usr/lib64/device-mapper/libdevmapper-event-lvm2thin.so
-r-xr-xr-x 1 root root 15704 Mar 6 12:38 usr/lib64/device-mapper/libdevmapper-event-lvm2vdo.so
-r-xr-xr-x 1 root root 11600 Mar 6 12:38 usr/lib64/libdevmapper-event-lvm2.so.2.02
lrwxrwxrwx 1 root root 46 Mar 6 12:37 usr/lib64/libdevmapper-event-lvm2mirror.so -> device-mapper/libdevmapper-event-lvm2mirror.so
lrwxrwxrwx 1 root root 44 Mar 6 12:37 usr/lib64/libdevmapper-event-lvm2raid.so -> device-mapper/libdevmapper-event-lvm2raid.so
lrwxrwxrwx 1 root root 48 Mar 6 12:37 usr/lib64/libdevmapper-event-lvm2snapshot.so -> device-mapper/libdevmapper-event-lvm2snapshot.so
lrwxrwxrwx 1 root root 44 Mar 6 12:37 usr/lib64/libdevmapper-event-lvm2thin.so -> device-mapper/libdevmapper-event-lvm2thin.so
lrwxrwxrwx 1 root root 43 Mar 6 12:37 usr/lib64/libdevmapper-event-lvm2vdo.so -> device-mapper/libdevmapper-event-lvm2vdo.so
-r-xr-xr-x 1 root root 2190664 Mar 6 12:38 usr/lib64/liblvm2cmd.so.2.02
-r-xr-xr-x 1 root root 2220416 Mar 6 12:38 usr/sbin/lvm
-rwxr-xr-x 1 root root 3670 Nov 2 23:10 usr/sbin/lvm_scan


Any guess why dracut is failing to inject lvm related packages? and this happens once in 5 iterations.
Your help is really appreciated.

Thanks!

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: dracut and centos 7

Post by TrevorH » 2019/03/06 12:27:23

If you have a kernel version of 3.10.0-123 then you are not running CentOS 7.6. That is 7.0 and thus you have 5.5 years worth of bugs and security vulnerabilities present on your system.

Run yum update to get up to date and reboot into the 3.10.0-957.5.1.el7 kernel.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply