[linux-lvm] LVM mirroring or mdadm

Koen Vermeer koen at vermeer.tv
Mon Jul 13 17:06:04 UTC 2009


On Mon, 2009-07-13 at 17:32 +0100, Imobach González Sosa wrote:
> I've got a pair of identical Seagate disks on a server and I'm considering 
> using a software RAID (RAID1). I was thinking of setting up LVM on a mdadm 
> RAID, but I've read that LVM has support itself for mirroring.
> So, what is the better approach? Using LVM mirroring capabilities or putting 
> the LVM on a mdadm RAID 1?

I faced the same dilemma and chose RAID instead of LVM mirroring. The
reason is that LVM requires an extra log partition when doing mirroring.
(In fact, this is not strictly true, but otherwise it will rebuild the
mirror after each reboot.) The log partition doesn't have to be big, but
I didn't like the additional tinkering.

If there exists some easy way around the extra partition, I'd probably
switch to an LVM-only solution. But for now, it's LVM-over-RAID for me.

Koen




More information about the linux-lvm mailing list