[lvm-devel] [PATCH 0 of 2] LVM: Split mirror capability
Alasdair G Kergon
agk at redhat.com
Mon Oct 26 20:58:46 UTC 2009
Based on the first proposal, things do seem to fit together nice
and simply.
On Tue, Oct 13, 2009 at 04:20:42PM -0500, Jon Brassow wrote:
> [root at bp-01 ~]# lvconvert -m1 --split vg/lv /dev/sdc1
(1) One lvconvert cmd can only split a mirror into two pieces.
Starting with a 2-way mirror:
lvconvert -m1 -n lvcopy --retainas copy vg/lv lv_mimage1
Splits off lv_mimage1, promotes it to a visible LV and renames it 'lvcopy'.
Starting with a 3-way mirror, it would split off a 2-way mirror (which you
could split further if you wished).
Without -n it would rename it to lv_msplit_N where N is the next unused digit
and msplit is *not* a reserved name.
lvconvert -m1 --retainas unsynced vg/lv lv_mimage1
promotes lv_mimage1 to a read-only visible LV & renames it to
lv_mimage1_unsynced (still a reserved name - you cannot rename it while
in this state). You can now lvremove it, or further use
lvconvert --retainas copy vg/lv_mimage1
to split it properly, rename it and make it writeable (unless the mirror
is itself readonly).
Alasdair
More information about the lvm-devel
mailing list