initramfs cannot find lvm root partition
I am trying to move my root and swap to a raid mirror with lvm in the raid partition.
When I boot, this is what I see: Code:
Volume group "root" not found Code:
Done. Fortunately I can still boot single user mode. I looked in initrd.img-2.6.18-6-686 with zcat|cpio -t and I see lib/libdevmapper.so.1.02. What it seems to me is that the lvm init script or whatever sets up the /dev/vgname/lvname stuff in /dev isn't getting run, or maybe lvm isn't in there at all really. Some poking around turned up this page: http://www.tldp.org/HOWTO/LVM-HOWTO/lvm2_boot.html which talks about adding: Code:
dmsetup mknodes I have run update-initramfs several times and copied the resulting new files to /dev/md0, but for some reason, update-initramfs does not seem to be creating the correct script to initialize the lvm stuff. Probably there is a simple fix for this or a step in installing the raid/lvm stuff that I've missed? I'm doing this on Debian Etch. The system was booting fine from an lvm disk partition before. Incidentally, the volume group of the old non-raid lvm was 'root' which is interesting because that's in the first line way above where it says 'Volume group "root" not found'. I don't know where it's getting that old volume group name from, it definitely has been changed in menu.lst. Michael Grant |
did you run update-initrd inside a chroot?
As far as I know, update-initrd reads from /etc/fstab to figure out where to get root. To permit update-initrd to guess the right place, you need to mount your new root and boot somewhere (e.g. /mnt and /mnt/boot); then chroot /mnt; and then update-initrd. That might solve it.
|
All times are GMT -5. The time now is 01:44 AM. |