Need help booting into LVM root
SCTP: Hash tables configured (established 65536 bind 65536)
Using IPI Shortcut mode
registered taskstats version 1
XENBUS: Device with no driver: device/console/0
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun …
md: … autorun DONE.
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 32768KiB [1 disk] into ram disk… done.
kjournald starting. Commit interval 5 seconds
EXT3 FS on ram0, internal journal
EXT3-fs: mounted filesystem with writeback data mode.
VFS: Mounted root (ext3 filesystem) on device 1:0.
VFS: Cannot open root device "mapper/rootvg-rootlv" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
ca00 45875200 xvda driver: vbd
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Pid: 1, comm: swapper Not tainted 2.6.32-linode23 #1
Call Trace:
[
[
[
[
[
[
[
[
4 Replies
Is anyone booting an LVM root? The profile dashboard makes it seem possible:
> Select the /dev/xvdX device to use as your root device, or provide a custom root device (useful for root LVM, etc).
Any ideas how?
I started with Linode source
From looking at your boot-log, I'd guess that it cannot find your root, because it cannot read from your LVM. I haven't got much further than that myself, but I'm pretty certain that we probably need to make use of an initrd file.
If I make any headway, I'll let you know.
I noticed after playing around with PVGRUB, that it kept looking for '(hd0)/boot/grub/menu.lst' so I figured I'd give it that. I created a filesystem directly on a disk, then I copied my /boot to it's /boot. I had to ensure that the target file system still contained a /boot directory. Then in my /boot/grub/menu.lst, I pointed it to root (hd1,0). hd1,0 is a second drive containing my real /boot partition.
So I started up my Linode with /dev/xvda being my boot-disk and /dev/xvdb containing two slices one for /boot and one for lvm. This way I still have a bootable system if I remove /dev/xvda.
Like I said, I'll try to provide more details later.