Skip to content

Instantly share code, notes, and snippets.

@pamolloy
Created April 7, 2012 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pamolloy/2330869 to your computer and use it in GitHub Desktop.
Save pamolloy/2330869 to your computer and use it in GitHub Desktop.
Arch Linux LVM Hook Error
Loading ../vmlinux-linux.....
Loading ../initramfs-linux.img......ready.
Probing EDD (edd=off to disable)... ok
Decompressing Linux... Parsing ELF... done.
Booting the kernel.
:: Starting udevd... done.
:: Running Hook [udev]
:: Triggering uevents... done.
:: Running Hook [lvm2]
Waiting 10 seconds for device /dev/mapper/VolGroupArray-lvroot ...
Activating logical volumes...
No volume groups found
ERROR: Unable to find root device ''.
You are being dropped to a recover shell
Type 'exit' to try and continue booting
sh: can't access tty; job control turned off
@pamolloy
Copy link
Author

pamolloy commented Apr 7, 2012

I'm worried that using mdadm_udev is just hiding errors related to mdadm assembling the arrays. It's not even clear to me how the arrays are assembled with mdadm_udev.

I also find it odd that the ERROR line above contains an empty string made of two apostrophes, rather than the path to the root file system (i.e. the root logical volume).

The lvm2 hook does the following after printing "Activating logical volumes..."

[ -d /etc/lvm ] && /sbin/lvm vgscan
eval /sbin/lvm vgchange --sysinit -a y $LVMQUIET

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment