master - lvconvert: options splitcache, split, uncache
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a8497e329b3c70c88feb5f0121e05464d32b2433 Commit: a8497e329b3c70c88feb5f0121e05464d32b2433 Parent: 4e9fbb4b96ad4beed5dd004f221cdbfb874e1094 Author: Zdenek Kabelac <[email protected]> AuthorDate: Sat Oct 4 15:32:24 2014 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Oct 6 15:18:05 2014 +0200
lvconvert: options splitcache, split, uncache
--splitcache
Splits only cached LV (also pool could be specified). Detaches cachepool from cached LV.
--split
Should be univerzal command to split various complex targets. At this moment it knows cache.
--uncache
Opposite command to --cache. Detaches and DELETES cachepool for cached LV.
Note: we support thin pool cached metadata device for uncaching. Also use may specify wither cached LV or association cachepool device to request split of cache.
--- WHATS_NEW | 1 + tools/args.h | 3 + tools/commands.h | 23 ++++++- tools/lvconvert.c | 182 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 205 insertions(+), 4 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.112 - ===================================== + Support lvconvert --splitcache and --uncache of cached LV. Option --cache has also shortcut -H (i.e. lvcreate -H). Refactor lvcreate code and better preserve --type argument. Refactor process_each_vg in toollib.
tools/args.h +3 -0
@@ -108,6 +108,9 @@ arg(detachprofile_ARG, '\0', "detachprofile", NULL, 0) arg(mergedconfig_ARG, '\0', "mergedconfig", NULL, 0) arg(ignoreskippedcluster_ARG, '\0', "ignoreskippedcluster", NULL, 0) arg(splitsnapshot_ARG, '\0', "splitsnapshot", NULL, 0) +arg(splitcache_ARG, '\0', "splitcache", NULL, 0) +arg(uncache_ARG, '\0', "uncache", NULL, 0) +arg(split_ARG, '\0', "split", NULL, 0) arg(readonly_ARG, '\0', "readonly", NULL, 0) arg(atomic_ARG, '\0', "atomic", NULL, 0)arg (activationmode_ARG,'\0' ,"activationmode" , string_arg,0 )
tools/commands.h +20 -3
@@ -184,7 +184,23 @@ xx(lvconvert,"--splitsnapshot\n" COMMON_OPTS "\tSnapshotLogicalVolume[Path]\n\n" - + +"lvconvert " +"--splitcache\n" +COMMON_OPTS +"\tCacheLogicalVolume[Path]\n\n" + +"lvconvert " +"--split\n" +"\t[--name SplitLogicalVolumeName]\n" +COMMON_OPTS +"\tSplitableLogicalVolume[Path]\n\n" + +"lvconvert " +"--uncache\n" +COMMON_OPTS +"\tCacheLogicalVolume[Path]\n\n" +"lvconvert " "[--type snapshot|-s|--snapshot]\n" "\t[-c|--chunksize]\n"
@@ -229,9 +245,10 @@ xx(lvconvert, corelog_ARG, discards_ARG, force_ARG, interval_ARG, merge_ARG, mirrorlog_ARG, mirrors_ARG, name_ARG, noudevsync_ARG, originname_ARG, poolmetadata_ARG, poolmetadatasize_ARG, poolmetadataspare_ARG, readahead_ARG, regionsize_ARG, - repair_ARG, replace_ARG, snapshot_ARG, splitmirrors_ARG, splitsnapshot_ARG, + repair_ARG, replace_ARG, snapshot_ARG, + split_ARG, splitcache_ARG, splitmirrors_ARG, splitsnapshot_ARG, stripes_long_ARG, stripesize_ARG, test_ARG, thin_ARG, thinpool_ARG, - trackchanges_ARG, type_ARG, use_policies_ARG, zero_ARG) + trackchanges_ARG, type_ARG, uncache_ARG, use_policies_ARG, zero_ARG) xx(lvcreate, "Create a logical volume",
tools/lvconvert.c +181 -1
235 lines not on this page · raw message