LVM2 ./WHATS_NEW man/lvconvert.8.in tools/comm ...
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2012-05-09 12:17:08
Modified files:
. : WHATS_NEW man : lvconvert.8.in tools : commands.h lvconvert.c
Log message:
Initial support for lvconvert for thin pool volumes.
Support has many limitations and lots of FIXMEs inside, however it makes initial task when user creates a separate LV for thin pool data and thin metadata already usable, so let's enable it for testing.
Easiest API:
lvconvert --chunksize XX --thinpool data_lv metadata_lv
More functionality extensions will follow up.
TODO: Code needs some rework since a lot of same code is getting copied.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.2398&r2=1.2399
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/man/lvconvert.8.in.diff?cvsroot=lvm2&r1=1.25&r2=1.26
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/commands.h.diff?cvsroot=lvm2&r1=1.175&r2=1.176
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvconvert.c.diff?cvsroot=lvm2&r1=1.190&r2=1.191
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.96 - ================================ + Add initial support for thin pool lvconvert. Fix lvrename for thin volumes (regression in for_each_sub_lv() 2.02.89). Fix up-convert when mirror activation is controled by volume_list and tags. Disallow snapshots of mirror segment type.
man/lvconvert.8.in +15 -0
@@ -59,6 +59,21 @@ .RB [ \-\-version ] .IR LogicalVolume [ Path ]... .sp +.B lvconvert \-\-thinpool +.IR ThinPoolLogicalVolume { Name | Path } +.RB [ \-c | \-\-chunksize +.IR ChunkSize ] +.RB [[ \-\-poolmetadatasize +.IR MetadataSize [ bBsSkKmMgG ] +.RI [ PhysicalVolume [ Path ][ :PE [ -PE ]]...]] +| +.IR ThinMetadataLogicalVolume { Name | Path }] +.RB [ \-Z | \-\-zero +.RI { y | n }] +.RB [ \-h | \-? | \-\-help ] +.RB [ \-v | \-\-verbose ] +.RB [ \-\-version ] +.sp .B lvconvert \-\-repair .RB [ \-h | \-? | \-\-help ] .RB [ \-v | \-\-verbose ]
tools/commands.h +9 -1
@@ -138,12 +138,20 @@"\t[-d|--debug]\n" "\t[-h|-?|--help]\n" "\t[-v|--verbose]\n" -"\tLogicalVolume[Path]\n" , +"\tLogicalVolume[Path]\n\n" + +"lvconvert " +"--thinpool ThinPoolLogicalVolume[Path]\n" +"\t[--chunksize size]\n" +"\t[[--poolmetadatasize size] | ThinMetadataLogicalVolume[Path]]\n" +"\t[-z|--zero {y|n}]\n" +"\t[-d|--debug] [-h|-?|--help] [-v|--verbose]\n" , alloc_ARG, background_ARG, chunksize_ARG, corelog_ARG, interval_ARG, merge_ARG, mirrorlog_ARG, mirrors_ARG, name_ARG, noudevsync_ARG, regionsize_ARG, repair_ARG, replace_ARG, snapshot_ARG, splitmirrors_ARG, trackchanges_ARG, type_ARG, stripes_long_ARG, stripesize_ARG, test_ARG, + chunksize_ARG, poolmetadatasize_ARG, thinpool_ARG, use_policies_ARG, yes_ARG, force_ARG, zero_ARG) xx(lvcreate,
tools/lvconvert.c +221 -0
263 lines not on this page · raw message