Discussion:
[linux-lvm] LVM mirror or RAID1?
MegaBrutal
2014-12-02 08:58:07 UTC
Permalink
Hi all,

Could you please advise which is better? Creating mirrored logical
volumes or raid1 logical volumes?
The purpose of these 2 methods seem rather similar, so I'm curious
what is the difference.
I'd like to know the pros and contras of both methods. I'm also
interested to hear about your personal experiences.


Regards,
MegaBrutal
Mauricio Tavares
2014-12-02 11:00:06 UTC
Permalink
Post by MegaBrutal
Hi all,
Could you please advise which is better? Creating mirrored logical
volumes or raid1 logical volumes?
The purpose of these 2 methods seem rather similar, so I'm curious
what is the difference.
I'd like to know the pros and contras of both methods. I'm also
interested to hear about your personal experiences.
I usually build raid volumes and then LVM on the top of that. IMHO LVM
is abstracting the physical storage: you can group a bunch of raid volumes
into a single volume group. So they kinda complement each other.

I've never done mirrored lvs so I can't vouch for that.
Post by MegaBrutal
Regards,
MegaBrutal
_______________________________________________
linux-lvm mailing list
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
MegaBrutal
2014-12-03 16:33:04 UTC
Permalink
Just to be clear, I wouldn't like to use LVM over RAID1, as the requirement
for having equal-sized disks is not tolerable by me, also I don't wish to
mirror all of my LVs.

My question is whether to use the mirror or raid1 segment types for LVs
over LVM.

So, should I rather create my LVs with "lvcreate --type mirror" or
"lvcreate --type raid1"? Which option is more efficient?
LVM now has folded the raid capability. but you want to use the true raid1
capability not the "mirrored" logical volumes. The raid writes to both in
parallel. The mirrored LV is sequential and a LOT slower.
Loading...