master - cache[pool]: Man page updates for lvs, lvcreate, lvconvert
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=5bfe4aaf95434d4289c7f030a354564b9375ab3d Commit: 5bfe4aaf95434d4289c7f030a354564b9375ab3d Parent: 0912cf67aae21446a10b3a22067aee1e8f792856 Author: Jonathan Brassow <[email protected]> AuthorDate: Wed Feb 12 10:29:07 2014 -0600 Committer: Jonathan Brassow <[email protected]> CommitterDate: Wed Feb 12 10:29:07 2014 -0600
cache[pool]: Man page updates for lvs, lvcreate, lvconvert
--- WHATS_NEW | 1 + man/lvconvert.8.in | 48 +++++++++++++++++++++++++++++++++++++++++++++--- man/lvcreate.8.in | 35 ++++++++++++++++++++++++++++++++++- man/lvs.8.in | 4 ++-- 4 files changed, 82 insertions(+), 6 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.106 - ==================================== + Add basic LVM support for cache[pool] segment types. Use local exclusive activation for creation of raid in cluster. Use correctly signed 64b constant when selecting raid volumes. Add systemd native service for clvmd, cmirrord and clustered LV activation.
man/lvconvert.8.in +45 -3
72 lines not on this page · raw message
man/lvcreate.8.in +34 -1
@@ -59,6 +59,8 @@ lvcreate \- create a logical volume in an existing volume group .RI { ReadAheadSectors | auto | none }] .RB [ \-t | \-\-test ] .RB [ \-T | \-\-thin +.RB [ \-\-cachemode +.IR { writeback | writethrough } .RB [ \-c | \-\-chunksize .IR ChunkSize [ bBsSkKmMgG ]] .RB [ \-\-discards
@@ -155,14 +157,28 @@ use \fBlvs\fP command where the state of the flag is reported within .TP .IR \fB\-K ", " \fB\-\-ignoreactivationskip 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. + .TP .BR \-c ", " \-\-chunksize " " \fIChunkSize [ \fIbBsSkKmMgG ] -Gives the size of chunk for snapshot and thin pool logical volumes. +Gives the size of chunk for snapshot, cache pool and thin pool logical volumes. Default unit is in kilobytes. .br 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 +is 64KiB. Values must be a multiple of 32KiB. +.br For thin pools the value must be between 64KiB and 1GiB and the default value starts with 64 and scales up to fit the pool metadata size within 128MiB,
@@ -499,6 +515,23 @@ 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 +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. +.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. +.sp +.B lvcreate --type cache -L 1G -n my_lv_cachepool vg/my_lv /dev/fast1 + .SH SEE ALSO .BR lvm (8), .BR lvm.conf (5),
man/lvs.8.in +2 -2
@@ -135,12 +135,12 @@ can also be chosen. The lv_attr bits are: .RS .IP 1 3 -Volume type: (m)irrored, (M)irrored without initial sync, (o)rigin, +Volume type: (C)ached, (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, under (c)onversion, thin (V)olume, (t)hin pool, (T)hin pool data, raid or -thin pool m(e)tadata or pool metadata spare. +pool m(e)tadata or pool metadata spare. .IP 2 3 Permissions: (w)riteable, (r)ead-only, (R)ead-only activation of non-read-only volume