December 2009 Archives

2009-12-01 11:01:44

Creating a KVM guest with RAID1

I wanted to have a play with how to setup software RAID-1 boot disks on a "Hat" platform. Using the virt-manager install didn't give me the option to add multiple disks, so I used the command line version which supports this:

sudo virt-install --name=raid1 --disk path=/var/lib/libvirt/images/raid1-d0.img --disk path=/var/lib/libvirt/images/raid1-d1.img --ram=1024 --virt-type=kvm -c /Downloads/os/Fedora-12-x86_64-DVD/Fedora-12-x86_64-DVD.iso

This worked nicely from the VM side. On the F12 install side, choosing "md0" as the device to put grub onto, did not work as planned. I had to boot from the iso again and reinstall grub using the rescue mode. I used "grub-install /dev/sda" and "grub-install /dev/sdb" to put it on both disks. Hopefully that'll mean that I can rip one or the other out, and the system will still boot.

I'm not sure what happens when grub is updated. I suppose that I'll need to manually redo the grub-install on one or both disks.


Posted by Mark Chandler | Permanent link | File under: Linux, Fedora