1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-05 13:18:20 +03:00
lvm2/lib/metadata
Jonathan Earl Brassow f60175c308 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
2011-10-07 14:56:01 +00:00
..
lv_alloc.h lvcreate parsing for thin provisioning. 2011-09-06 00:26:42 +00:00
lv_manip.c Allow 'nosync' extension of mirrors. 2011-10-06 15:32:26 +00:00
lv.c Add 'Volume Type' lv_attr characters for RAID and RAID_IMAGE. 2011-09-23 15:17:54 +00:00
lv.h Add a new 'thin_pool' output field to 'lvs. 2011-09-09 00:54:49 +00:00
merge.c Move defines to header 2011-10-06 11:05:56 +00:00
metadata-exported.h Add the ability to convert LVs of "mirror" segtype to "raid1" segtype. 2011-10-07 14:56:01 +00:00
metadata.c Abort if _finish_pvmove suspend_lvs fails instead of cleaning up incompletely. 2011-09-27 17:09:42 +00:00
metadata.h Add simple function for lookup of some free device_id 2011-10-03 18:39:17 +00:00
mirror.c Fix splitmirror in cluster having different DM/LVM views of storage. 2011-10-06 14:55:39 +00:00
pv_alloc.h Fix all segments memory is allocated from vg private mempool. 2010-03-31 17:23:18 +00:00
pv_manip.c Improve the discard documentation. Also improve discard code in 2011-04-13 18:26:39 +00:00
pv_map.c Allow ALLOC_ANYWHERE to split contiguous areas. 2010-03-25 21:19:26 +00:00
pv_map.h Remove superfluous fn prototypes. 2010-07-09 15:21:10 +00:00
pv.c Terminate pv_attr field correctly. (2.02.86) 2011-09-07 13:42:00 +00:00
pv.h Defer writing PV labels to vg_write. 2011-06-01 19:29:31 +00:00
raid_manip.c Add the ability to convert LVs of "mirror" segtype to "raid1" segtype. 2011-10-07 14:56:01 +00:00
replicator_manip.c add thin_manip.c like the other manip files 2011-09-06 19:25:42 +00:00
segtype.c Handle metadata with unknown segment types more gracefully. 2009-10-16 17:41:49 +00:00
segtype.h Add the ability to convert linear LVs to RAID1 2011-10-07 14:52:26 +00:00
snapshot_manip.c Fix potential null ptr deref in 'origin_from_cow' 2011-07-19 16:23:52 +00:00
thin_manip.c Missed rename pool->thin_pool 2011-10-03 19:10:52 +00:00
vg.c Cache and share generated VG structs 2011-08-11 17:24:23 +00:00
vg.h Cache and share generated VG structs 2011-08-11 17:24:23 +00:00