]> sourceware.org Git - lvm2.git/commit
Add the ability to convert LVs of "mirror" segtype to "raid1" segtype.
authorJonathan Earl Brassow <jbrassow@redhat.com>
Fri, 7 Oct 2011 14:56:01 +0000 (14:56 +0000)
committerJonathan Earl Brassow <jbrassow@redhat.com>
Fri, 7 Oct 2011 14:56:01 +0000 (14:56 +0000)
commitf60175c30816700c2bf03a614371ac826d6e8d85
tree1f82a894043bf9b2605ab8427179e1f2e5cbdef3
parentd3582e025277861ef184e7a5d099f6e7138a7dce
Add the ability to convert LVs of "mirror" segtype to "raid1" segtype.

Example:
~> lvconvert --type raid1 vg/mirror_lv

Steps to convert "mirror" to "raid1"
1) Allocate a RAID metadata LV for each mirror image from the same PVs
   on which they are located.
2) Clear the metadata LVs.  This involves writing LVM metadata, so we don't
   change any aspects of the mirror LV before this so that the user can easily
   remove LVs from the failed convert attempt while retaining the original
   mirror.
3) Remove the mirror log, if it exists.
4) Add metadata LVs to mirror LV
5) Rename mirror sub-lvs (s/mimage/rimage/)
6) Change flags and segtype from mirror to raid1
WHATS_NEW
lib/metadata/metadata-exported.h
lib/metadata/raid_manip.c
test/t-lvconvert-raid.sh
tools/lvconvert.c
This page took 0.030437 seconds and 5 git commands to generate.