Wiki‎ > ‎

Create LVM over RAID0

posted Sep 25, 2018, 12:27 PM by Danny Xu

This section will convert the two RAIDs into physical volumes (PVs). Then combine those PVs into a volume group (VG). The VG will then be divided into logical volumes (LVs) that will act like physical partitions (e.g. /, /var, /home).


Create three arrays in the partition manager, don't have to format them when that option comes up.

sudo pvcreate -ff /dev/md/r250
sudo pvcreate -ff /dev/md/r2t
sudo pvcreate -ff /dev/md/r480

sudo vgcreate vg0 /dev/md/r250 /dev/md/r2t /dev/md/r480
sudo lvcreate -l +100%FREE vg0 -n lv0

At that point you can go into the partition manager and format lv0.