master - man: Enhancements to various man pages for cache[-pool] segtypes
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=3bb9eda97c6ef2fb6848322e36b2b44a688ed37c Commit: 3bb9eda97c6ef2fb6848322e36b2b44a688ed37c Parent: f8bf4d7dfbd0ab44ec035bc61a286388a263fc48 Author: Jonathan Brassow <[email protected]> AuthorDate: Tue Feb 25 12:17:03 2014 -0600 Committer: Jonathan Brassow <[email protected]> CommitterDate: Tue Feb 25 12:17:03 2014 -0600
man: Enhancements to various man pages for cache[-pool] segtypes
Better formatting. More consistent naming. Better clarity.
--- man/lvconvert.8.in | 30 +++---- man/lvcreate.8.in | 33 ++++---- man/lvm.8.in | 256 ++++++++++++++++++++++++++++++---------------------- man/lvs.8.in | 2 +- 4 files changed, 179 insertions(+), 142 deletions(-)
man/lvconvert.8.in +14 -16
@@ -131,7 +131,7 @@ lvconvert \- convert a logical volume from linear to mirror or snapshot .sp .B lvconvert \-\-type cache .RB \-\-cachepool -.IR CachePoolLogicalVolume { Name | Path } +.IR CachePoolLV { Name | Path } .IR LogicalVolume [ Path ] .RB [ \-h | \-? | \-\-help ] .RB [ \-v | \-\-verbose ]
@@ -170,12 +170,9 @@ arguments is required. .BR \-b ", " \-\-background Run the daemon in the background. .TP -.BR \-\-cachepool " " \fCachePoolLogicalVolume -This argument is used when converting a logical volume to a cached -logical volume. The CachePoolLogicalVolume is the small and fast -logical volume that will provide the cache for the large slow logical -volume that is being converted. Not that a cache pool LV can only be -used by one logical volume. +.BR \-\-cachepool " " \fCachePoolLV +This argument is necessary when converting a logical volume to a cache LV. +For more information on cache pool LVs and cache LVs, see \fBlvm\fP(8). .TP .BR \-m ", " \-\-mirrors " " \fIMirrors Specifies the degree of the mirror you wish to create.
@@ -208,8 +205,8 @@ uses this granularity to track which regions are in sync. .TP .B \-\-type \fISegmentType Used to convert a logical volume to another segment type, like cache-pool, -cache, raid1, mirror. When converting a logical volume to a cached logical -volume, the \-\-cachepool argument is required. +cache, raid1, or thin-pool. When converting a logical volume to a cache LV, +the \-\-cachepool argument is required. .TP .BR \-i ", " \-\-interval " " \fISeconds Report progress as a percentage at regular intervals.
@@ -478,16 +475,17 @@ For the read-only external origin use the new name "vg00/external". .sp .B lvconvert \-\-thinpool vg00/lvpool \-\-originname external -T vg00/origin -Convert an existing logical volume to a cache pool logical volume using the -given pool metadata LV. +Convert an existing logical volume to a cache pool LV using the +given cache metadata LV. .sp -.B lvconvert --type cache-pool vg00/my_lv_data \-\-poolmetadata vg00/my_lv_meta -.B lvrename vg00/my_lv_data vg00/my_lv_cachepool +.B lvconvert --type cache-pool --poolmetadata vg00/lvx_meta vg00/lvx_data +.br +.B lvrename vg00/lvx_data vg00/lvx_cachepool -Convert an existing logical volume to a cached logical volume using the given -cachepool. +Convert an existing logical volume to a cache LV using the given +cache pool LV. .sp -.B lvconvert \-\-type cache vg00/my_lv \-\-cachepool vg00/my_lv_cachepool +.B lvconvert \-\-type cache \-\-cachepool vg00/lvx_cachepool vg00/lvx .SH SEE ALSO .BR lvm (8),
man/lvcreate.8.in +17 -16
@@ -160,13 +160,14 @@ Ignore the flag to skip Logical Volumes during activation. .TP .BR \-\-cachemode " " { writeback | writethrough } -Specifying a cache mode determines when the writes to a cached logical volume -are considered complete. When "writeback" is specified, a write is considered -complete as soon as it is stored in the cache pool (i.e. the smaller faster -device). If "writethough" is specified, a write is considered complete only -when it has been stored in the cache pool and on the origin (i.e. the larger -slower device). While "writethrough" may be slower for writes, it is more -resilient if something should happen to the cache pool device. +Specifying a cache mode determines when the writes to a cache LV +are considered complete. When \fIwriteback\fP is specified, a write is +considered complete as soon as it is stored in the cache pool LV. +If \fIwritethough\fP is specified, a write is considered complete only +when it has been stored in the cache pool LV and on the origin LV. +While \fIwritethrough\fP may be slower for writes, it is more +resilient if something should happen to a device associated with the +cache pool LV. .TP .BR \-c ", " \-\-chunksize " " \fIChunkSize [ \fIbBsSkKmMgG ]
@@ -176,7 +177,7 @@ Default unit is in kilobytes. For snapshots the value must be power of 2 between 4KiB and 512KiB and the default value is 4. .br -For cache pools the value must be between 32KiB and 1GiB. The default +For cache pool LVs the value must be between 32KiB and 1GiB. The default is 64KiB. Values must be a multiple of 32KiB. .br For thin pools the value must be between 64KiB and
@@ -415,7 +416,7 @@ as is the case with or .IR zero . Note that the cache segment type requires a dm-cache kernel module version -1.3.0 or greater or a kernel version 3.14 or newer. +1.3.0 or greater. .TP .BR \-V ", " \-\-virtualsize " " \fIVirtualSize [ \fIbBsSkKmMgGtTpPeE ]
@@ -532,20 +533,20 @@ in vg00 that will use an existing thin pool "vg00/pool": .sp .B lvcreate -s --thinpool vg00/pool origin -Create a cache pool logical volume that can later be used to cache one +Create a cache pool LV that can later be used to cache one logical volume. .sp .B lvcreate --type cache-pool -L 1G -n my_lv_cachepool vg /dev/fast1 -If there is an existing cache pool logical volume, create the large slow -device (i.e. the origin) and link it to the supplied cache pool LV, -creating a cache logical volume. +If there is an existing cache pool LV, create the large slow +device (i.e. the origin LV) and link it to the supplied cache pool LV, +creating a cache LV. .sp .B lvcreate --type cache -L 100G -n my_lv vg/my_lv_cachepool /dev/slow1 -If there is an existing logical volume, create the fast and small -cache pool logical volume and link it to the supplied existing logical -volume (i.e. the origin), creating a cache logical volume. +If there is an existing logical volume, create the small and fast +cache pool LV and link it to the supplied existing logical +volume (i.e. the origin LV), creating a cache LV. .sp .B lvcreate --type cache -L 1G -n my_lv_cachepool vg/my_lv /dev/fast1
man/lvm.8.in +147 -109
303 lines not on this page · raw message
man/lvs.8.in +1 -1
@@ -135,7 +135,7 @@ can also be chosen. The lv_attr bits are: .RS .IP 1 3 -Volume type: (C)ached, (m)irrored, (M)irrored without initial sync, (o)rigin, +Volume type: (C)ache, (m)irrored, (M)irrored without initial sync, (o)rigin, (O)rigin with merging snapshot, (r)aid, (R)aid without initial sync, (s)napshot, merging (S)napshot, (p)vmove, (v)irtual, mirror or raid (i)mage, mirror or raid (I)mage out-of-sync, mirror (l)og device,