3

The task is to create LVM storage for virtual machine images. So LVM will be used in any case.

There are two ways LVM providing redundancy:

  1. block mirroring

    lvcreate -m 1 --mirrorlog mirrored -n logical_volume -L 50G vg0

  2. internal RAID mechanism

    lvcreate --type=raid1 -n logical_volume -L 50G vg0

Second way should provide reading performance boost.

As alternative we can create raid1 with mdadm and use Linux Soft Raid device as physical volume for LVM.

Which way is better and why?

1 Answer 1

3

mdadm raid is better for raid1 and on top of that you can put lvm for flexibility. Lvm has problems when a disk goes bad, mdadm is the tried and proved solution for raid1.

1
  • 1
    I choose pure LVM solution as it allows to provision both RAID and non-RAID LV from the same VG. It saves a lot of space in case of storing unimportant data like swap partitions. Jul 17, 2019 at 14:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .