How do I create a new boot image for a RAID?

asked 2013-08-11 10:21:17 -0600

Giraffro gravatar image

I've recently enlarged an encrypted LVM that's on my RAID but now I can't boot into the system. I've tried booting from a live cd and running the following commands (blah5 is an encrypted LVM countaining root, home and swap partitions, blah3 is my boot partition):

cryptsetup luksOpen /dev/mapper/blah5 blah
vgchange -a y VG
mkdir /media/blah
mount /dev/mapper/vg_VG_lv_root /media/blah
mount -o bind /proc /media/blah/proc
mount -o bind /dev /media/blah/dev
mount -o bind /sys /media/blah/sys
chroot /media/blah
mount /dev/mapper/blah3 /boot
dracut /boot/initramfs-<kernel version>.img <kernel version> --force

When I boot, it can't find my RAID partitions. Nothing shows up in /dev/mapper and there's no sda1, sdb2, etc. in /dev. Am I missing something?

edit retag flag offensive close merge delete