Anyone out there know about software RAID and LVM in grub2? I'm having real trouble getting it to work. I have an F19 system in a server, which has a reasonably large and fast RAID disk (software RAID0 over hardware RAID1 - this configuration chosen because the hardware RAID controller only supports levels 0 and 1). I'll call this RAID array md0 (that's what grub2 calls it). Currently, the system boots from and to a small and relatively slow 2.5" disk, call it sda, with the system being on an lvm logical volume SLOWVG/root. I'm happy to leave the boot partition on sda, but I would like to move the system to lvm logical volumes on a volume group (called RAIDVG) sitting on md0. So far, I have
TIA for any help on this
Best Wishes
Bob
- copied SLOWVG/root to a volume FASTVG/root. I did this using an lvm snapshot and dd-ing the snapshot, then deleting the snapshot, as documented here, so that SLOWVG/root and FASTVG/root have different UUIDs, and I also changed the UUID of the ext4 filesystem in FASTVG/root
- edited /etc/default/grub to include the line Code:
GRUB_PRELOAD_MODULES="raid mdraid09 lvm"
- added a new menuentry for booting from FASTVG/boot to /etc/grub.d/40_custom by taking the current menuentry for booting from SLOWVG/boot from /boot/grub2/grub.cfg and copying it to 40_custom, editing to replace all references to SLOWVG with FASTVG, and changing the corresponding references
- running grub2-install and grub2-mkconfig -o /boot/grub2/grub.cfg, to make sure the changes were reflected in the boot installation
TIA for any help on this
Best Wishes
Bob