[linux-lvm] LVM2 + dm-mirror
dmerillat at sequiam.com
Fri Aug 13 06:09:58 UTC 2004
Now that the snapshot and mirror targets are in the stock kernel, is it
possible to use LVM tools to setup a LVM-based RAID1? I know how to do
it via dmsetup, but that's just not very clean.
I'd prefer to have the LV mirrored on multiple PVs, as it lets me scale
the mirrored slice as large as I want, rather then making a fixed RAID1
and putting the PV+LV on top of it.
This will also be nice to have when dm-raid get added to the
kernel. Imagine adding 2 drives, then doing a pmove to turn a
single-drive setup into a raid5. That's the kind of thing that's
handled very-well userspace: create a 'missing disk' raid-5, begin
writing to it, once you read enough out, start remapping the beginning
sectors to an optimal raid-5 config, with the mirror target making sure
any writes to the block device end up in the appropriate place.
More information about the linux-lvm