openSUSE 11.4 raid + lvm in kvm guest

Preliminary

To experiment with a raid 1 installation, we use the -d (--disk) option of the vm-create script to set up two 8 GB hard disks. This is just an example to illustrate the installation process of a raid 1 + lvm system under openSUSE 11.4. It is unlikely you will be using these hard disk and partition sizes in real life.

Notice that this installation was done with openSUSE 11.4 RC1.

The first command (using the -t or --try option) parses the options and prints the final command to be passed to virt-install on standard ouput. The second command (without -t) actually creates the virtual machine (that we called 'oprah') and starts an installation on the local machine. To install to a remote host over ssh you would use the option -c (--connect) as in the example below:

# vm-create -c remotehost -s 8 -d 2 -b br0 -R 11.4-RC1 -S -u opensuse oprah

A detailled description of the vm-create script has been posted in the openSUSE forum: vm-create : create kvm virtual machines


installation slideshow

Installation Mode Suggested Partitioning Preparing Hard Disk Expert Partitioner Add partition on /dev/vda Add partition on /dev/vda Add partition on /dev/vda Expert Partitioner Expert Partitioner Add partition on /dev/vdb Add partition on /dev/vdb Add partition on /dev/vdb Expert Partitioner Add partition on /dev/vda Add partition on /dev/vda Expert Partitioner Add Raid /dev/md0 Add Raid /dev/md0 Add Raid /dev/md0 Expert Partitioner Add Raid /dev/md1 Add Raid /dev/md1 Add Raid /dev/md1 Expert Partitioner Expert Partitioner Add Volume Group Expert Partitioner Add Logical Volume SUS_ROOT on /dev/RVG01 Add Logical Volume SUS_ROOT on /dev/RVG01 Add Logical Volume SUS_ROOT on /dev/RVG01 Expert Partitioner Suggested Partitioning Installation Settings Installation Settings Default Runlevel Installation Settings Installation Settings

You can use the mousewheel to navigate in the slideshow

The rest is the same as for the standard installation.


After install

We now have a raid array for /boot (md0), a raid array for the LVM (md1) and 2 swap partitions outside of the RAID.

Expert Partitioner Expert Partitioner Expert Partitioner Expert Partitioner Expert Partitioner

You can use the mousewheel to navigate in the slideshow