Skip to contentSkip to conversation

master - man: lvconvert/create updates

PATCH Zdenek Kabelac 1 participant 1 message Oct 24, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=29c14a11943d52e47424140ffa3b91dc9b095bc5
Commit:        29c14a11943d52e47424140ffa3b91dc9b095bc5
Parent:        fd00d2c6eceb6536208558561a02d464d1808469
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Oct 7 14:48:38 2014 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Oct 24 16:39:32 2014 +0200

man: lvconvert/create updates

More description for cache support.
Introduce --pooldatasize option.

---
 WHATS_NEW          |    1 +
 man/lvconvert.8.in |   32 +++-
 man/lvcreate.8.in  |  486 +++++++++++++++++++++++++++++++---------------------
 3 files changed, 314 insertions(+), 205 deletions(-)
WHATS_NEW +1 -0
index 1bdb884..5ad246c 100644
@@ -1,5 +1,6 @@
 Version 2.02.112 - 
 =====================================
+  Update and correct lvcreate and lvcovert man pages.
   Mark pools and snapshots as unzeroable volumes.
   Check for zeroing of volume after segment type is fully detected.
   Better support for persistent major and minor options with lvcreate.
man/lvconvert.8.in +23 -9
index b08e420..bf699ee 100644
@@ -153,8 +153,11 @@ lvconvert \(em convert a logical volume from linear to mirror or snapshot
 .B lvconvert
 .RB [ \-\-type
 .BR \fIcache [ \fI\-pool ]| \-H | \-\-cache ]
-.RB [ \-\-cachepool
+.RB [{ \-\-cachepool
 .IR CachePoolLogicalVolume { Name | Path }]
+|
+.B \-\-pooldatasize
+.IR CachePoolMetadataSize [ bBsSkKmMgGtTpPeE ]}]
 .RB [ \-c | \-\-chunksize
 .IR ChunkSize [ bBsSkKmMgG ]]
 .RB [ \-\-cachemode
@@ -304,13 +307,13 @@ Separates \fISplitableLogicalVolume\fP.
 Option is agregating various split commands and tries to detect necessary split
 operation from its arguments.
 .TP
-.BR \-\-splitcache ", " \-\-uncache
+.BR \-\-splitcache
 Separates \fICacheLogicalVolume\fP from cache pool.
-Before volume becomes uncached, cache is flushed.
-With \-\-split the cache pool volume is then left unused and 
-could be i.e. used for caching other volumes.
-The inverse of \-\-cache is \-\-uncache where the cache pool 
-component volumes are automatically removed.
+Before the logical volume becomes uncached, cache is flushed.
+The cache pool volume is then left unused and
+could be used e.g. to caching another volume.
+See also the option \fB\-\-uncache\fP for uncaching and removing
+cache pool with one command.
 .TP
 .B \-\-splitsnapshot
 Separates \fISnapshotLogicalVolume\fP from its origin.
@@ -347,6 +350,7 @@ until thin target version 1.5.)
 .BR \-\-discards " {" \fIignore | \fInopassdown | \fIpassdown }
 Specifies whether or not discards will be processed by the thin layer in the
 kernel and passed down to the Physical Volume.
+Options is currently supported only with thin pools.
 Default is \fIpassdown\fP.
 .TP
 .BR \-Z ", " \-\-zero " {" \fIy | \fIn }
@@ -382,6 +386,10 @@ Without this option a default name of "lvol<n>" will be generated where
 This volume will be read-only and cannot be further modified as long,
 as it is being used as the external origin.
 .TP
+.IR \fB\-\-pooldatasize " " PoolDataVolumeSize [ bBsSkKmMgGtTpPeE ]
+Sets the size of pool's data logical volume.
+The option \fB\-\-size\fP could be still used with thin pools.
+.TP
 .BR \-\-poolmetadata " " \fIPoolMetadataLogicalVolume { \fIName | \fIPath }
 Specifies cache or thin pool metadata logical volume.
 The size should be in between 2MiB and 16GiB.
@@ -450,7 +458,7 @@ available in "<pool>_meta<n>" LV.
 Remove the specified device (\fIPhysicalVolume\fP) and replace it with one
 that is available in the volume group or from the specific list provided.
 This option is only available to RAID segment types
-(e.g. 
+(e.g.
 .IR raid1 ,
 .IR raid5 ,
 etc).
@@ -483,6 +491,12 @@ Content of converted volume is lost.
 Thin pool's metadata logical volume can be specified with the option
 \fB\-\-poolmetadata\fP or allocated with \fB\-\-poolmetadatasize\fP.
 See \fBlvmthin\fP(7) for more info about thin provisioning support.
+.TP
+.BR \-\-uncache
+Uncaches \fICacheLogicalVolume\fP.
+Before the volume becomes uncached, cache is flushed.
+Unlike with \fB\-\-splitcache\fP the cache pool volume is removed.
+This option could seen as an inverse of \fB\-\-cache\fP.
 
 .SH Examples
 Converts the linear logical volume "vg00/lvol1" to a two-way mirror
@@ -593,7 +607,7 @@ given cache metadata LV.
 Convert an existing logical volume to a cache LV using the given
 cache pool LV and chunk size 128KiB.
 .sp
-.B lvconvert \-\-cache  \-\-cachepool vg00/lvx_cachepool -c 128 vg00/lvx
+.B lvconvert \-\-cache \-\-cachepool vg00/lvx_cachepool -c 128 vg00/lvx
 .sp
 Detach cache pool from an existing cached logical volume "vg00/lvol1" and
 leave cache pool unused.
man/lvcreate.8.in +290 -196

694 lines not on this page · raw message