Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=dae455f806dfba87…
Commit: dae455f806dfba878e9cfb766f7415ad038d72fe
Parent: bda0fe95ad66b864429ce18bb9dc6277259ba348
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Wed Mar 26 14:04:44 2014 +0100
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Wed Mar 26 14:11:37 2014 +0100
man: colorization fixes
Fix style
---
man/lvchange.8.in | 6 +++---
man/lvconvert.8.in | 22 +++++++++++-----------
man/lvcreate.8.in | 8 ++++----
man/lvmetad.8.in | 11 ++++-------
4 files changed, 22 insertions(+), 25 deletions(-)
diff --git a/man/lvchange.8.in b/man/lvchange.8.in
index 64231c8..5de75e0 100644
--- a/man/lvchange.8.in
+++ b/man/lvchange.8.in
@@ -41,7 +41,7 @@ lvchange \- change attributes of a logical volume
.RB [ \-\-[raid]writebehind
.IR IOCount ]
.RB [ \-\-[raid]writemostly
-.IR PhysicalVolume[:{t|n|y}] ]
+.IR PhysicalVolume [ : { t | n | y }]]
.RB [ \-\-sysinit ]
.RB [ \-\-noudevsync ]
.RB [ \-M | \-\-persistent
@@ -166,7 +166,7 @@ If \fIrepair\fP is used, the discrepancies will be corrected as they are
encountered. The 'lvs' command can be used to show the number of
discrepancies found or repaired.
.TP
-.BR \-\-[raid]writebehind " IOCount"
+.BR \-\-[raid]writebehind " " \fIIOCount
Specify the maximum number of outstanding writes that are allowed to
devices in a RAID1 logical volume that are marked as \fIwrite-mostly\fP.
Once this value is exceeded, writes become synchronous (i.e. all writes
@@ -174,7 +174,7 @@ to the constituent devices must complete before the array signals the
write has completed). Setting the value to zero clears the preference
and allows the system to choose the value arbitrarily.
.TP
-.BR \-\-[raid]writemostly " PhysicalVolume[:{t|y|n}]"
+.IR \fB\-\-[raid]writemostly " " PhysicalVolume [ : { t | y | n }]
Mark a device in a RAID1 logical volume as \fIwrite-mostly\fP. All reads
to these drives will be avoided unless absolutely necessary. This keeps
the number of I/Os to the drive to a minimum. The default behavior is to
diff --git a/man/lvconvert.8.in b/man/lvconvert.8.in
index ade106d..fe6525b 100644
--- a/man/lvconvert.8.in
+++ b/man/lvconvert.8.in
@@ -91,11 +91,11 @@ lvconvert \- convert a logical volume from linear to mirror or snapshot
.IR ChunkSize [ bBsSkKmMgG ]]
.RB [ \-\-discards
.RI { ignore | nopassdown | passdown }]
-.RB [[ \-\-poolmetadata
-.IR ThinPoolMetadataLogicalVolume { Name | Path }]
+.RB [{ \-\-poolmetadata
+.IR ThinPoolMetadataLogicalVolume { Name | Path }
|
-.RB [ \-\-poolmetadatasize
-.IR ThinPoolMetadataSize [ bBsSkKmMgG ]]
+.B \-\-poolmetadatasize
+.IR ThinPoolMetadataSize [ bBsSkKmMgG ]}]
.RB [ \-r | \-\-readahead
.RI { ReadAheadSectors | auto | none }]
.RB [ \-\-stripes
@@ -113,24 +113,24 @@ lvconvert \- convert a logical volume from linear to mirror or snapshot
.RB [ \-v | \-\-verbose ]
.RB [ \-\-version ]
.sp
-.B lvconvert \-\-type cache-pool
+.B lvconvert \-\-type \fIcache-pool
.RB [ \-c | \-\-chunksize
.IR ChunkSize [ bBsSkKmMgG ]]
.RB [ \-\-cachemode
.RI { writeback | writethrough }]
-.RB [[ \-\-poolmetadata
-.IR CachePoolMetadataLogicalVolume { Name | Path }]
+.RB [{ \-\-poolmetadata
+.IR CachePoolMetadataLogicalVolume { Name | Path }
|
-.RB [ \-\-poolmetadatasize
-.IR CachePoolMetadataSize [ bBsSkKmMgG ]]
+.B \-\-poolmetadatasize
+.IR CachePoolMetadataSize [ bBsSkKmMgG ]}]
.IR LogicalVolume [ Path ]
.RI [ PhysicalVolume [ Path ][ :PE [ -PE ]]...]
.RB [ \-h | \-? | \-\-help ]
.RB [ \-v | \-\-verbose ]
.RB [ \-\-version ]
.sp
-.B lvconvert \-\-type cache
-.RB \-\-cachepool
+.B lvconvert \-\-type \fIcache
+.B \-\-cachepool
.IR CachePoolLV { Name | Path }
.IR LogicalVolume [ Path ]
.RB [ \-h | \-? | \-\-help ]
diff --git a/man/lvcreate.8.in b/man/lvcreate.8.in
index 325baad..445af80 100644
--- a/man/lvcreate.8.in
+++ b/man/lvcreate.8.in
@@ -60,7 +60,7 @@ lvcreate \- create a logical volume in an existing volume group
.RB [ \-t | \-\-test ]
.RB [ \-T | \-\-thin
.RB [ \-\-cachemode
-.IR { writeback | writethrough }
+.RI { writeback | writethrough }
.RB [ \-c | \-\-chunksize
.IR ChunkSize [ bBsSkKmMgG ]]
.RB [ \-\-discards
@@ -145,7 +145,7 @@ be overridden. If the clustered locking is enabled,
.IR \fB\-a { a | l } y
will activate only on the local node.
.TP
-.IR \fB\-k ", " \fB\-\-setactivationskip " " { y | n }
+.IR \fB\-k ", " \fB\-\-setactivationskip " {" y | n }
Controls whether Logical Volumes are persistently flagged to be skipped during
activation. By default, thin snapshot volumes are flagged for activation skip.
To activate such volumes, an extra \fB\-K/\-\-ignoreactivationskip\fP option must
@@ -155,11 +155,11 @@ detach the flag for existing volumes. To see whether the flag is attached,
use \fBlvs\fP command where the state of the flag is reported within
\fBlv_attr\fP bits.
.TP
-.IR \fB\-K ", " \fB\-\-ignoreactivationskip
+.BR \-K ", " \-\-ignoreactivationskip
Ignore the flag to skip Logical Volumes during activation.
.TP
-.BR \-\-cachemode " " { writeback | writethrough }
+.IR \fB\-\-cachemode " " { writeback | writethrough }
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.
diff --git a/man/lvmetad.8.in b/man/lvmetad.8.in
index 4956a3f..444c7c0 100644
--- a/man/lvmetad.8.in
+++ b/man/lvmetad.8.in
@@ -4,14 +4,11 @@ lvmetad \- LVM metadata cache daemon
.SH SYNOPSIS
.B lvmetad
.RB [ \-l
-.RI {all|wire|debug}
-.RB ]
+.RI { all | wire | debug }]
.RB [ \-p
-.RI pidfile_path
-.RB ]
+.IR pidfile_path ]
.RB [ \-s
-.RI socket_path
-.RB ]
+.IR socket_path ]
.RB [ \-f ]
.RB [ \-h ]
.RB [ \-V ]
@@ -34,7 +31,7 @@ Don't fork, but run in the foreground.
.BR \-h ", " \-?
Show help information.
.TP
-.BR \-l " {" \fIall | \fIwire | \fIdebug }
+.IR \fB\-l " {" all | wire | debug }
Select the type of log messages to generate.
Messages are logged by syslog.
Additionally, when -f is given they are also sent to standard error.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=bda0fe95ad66b864…
Commit: bda0fe95ad66b864429ce18bb9dc6277259ba348
Parent: a3615f314993f4f898fb3bdc4e53f1548069698f
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Wed Mar 26 14:04:14 2014 +0100
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Wed Mar 26 14:11:36 2014 +0100
man: add repair info for thin pools
Document lvconvert --repair for thin pools.
---
man/lvconvert.8.in | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/man/lvconvert.8.in b/man/lvconvert.8.in
index 190e221..ade106d 100644
--- a/man/lvconvert.8.in
+++ b/man/lvconvert.8.in
@@ -333,14 +333,23 @@ a suitable value automatically.
"None" is equivalent to specifying zero.
.TP
.B \-\-repair
-Repair a mirror after suffering a disk failure. The mirror will be brought back
-into a consistent state. By default, the original number of mirrors will be
+Repair a mirror after suffering a disk failure or try to fix thin pool metadata.
+
+The mirror will be brought back into a consistent state.
+By default, the original number of mirrors will be
restored if possible. Specify \fB\-y\fP on the command line to skip
the prompts. Use \fB\-f\fP if you do not want any replacement.
Additionally, you may use \fB\-\-use\-policies\fP to use the device
replacement policy specified in \fBlvm.conf\fP(5),
viz. activation/mirror_log_fault_policy or
activation/mirror_device_fault_policy.
+
+Thin pool repair automates the use of \fBthin_repair\fP(8) tool.
+Only inactive thin pool volumes can be repaired.
+There is no validation of metadata between kernel and lvm2.
+This requires further manual work.
+After successfull repair the old unmodified metadata are still
+available in \fB<pool>_tmeta<n>\fP LV.
.TP
.B \-\-replace \fIPhysicalVolume
Remove the specified device (\fIPhysicalVolume\fP) and replace it with one
@@ -498,4 +507,5 @@ cache pool LV.
.BR lvscan (8),
.BR vgcreate (8),
.BR thin_dump (8),
+.BR thin_repair (8)
.BR thin_restore (8)
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=1259ae59540b3e9c…
Commit: 1259ae59540b3e9c5ef582a6e472e17258ee36dc
Parent: 4b30863e857aa5a671485227c9b7a7e3a6d1e277
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Tue Mar 25 23:55:45 2014 +0100
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Wed Mar 26 00:05:46 2014 +0100
tests: cover code from more commands
---
test/shell/covercmd.sh | 36 +++++++++++++++++++++++++++++++++---
1 files changed, 33 insertions(+), 3 deletions(-)
diff --git a/test/shell/covercmd.sh b/test/shell/covercmd.sh
index ad7f480..54fe192 100644
--- a/test/shell/covercmd.sh
+++ b/test/shell/covercmd.sh
@@ -27,11 +27,14 @@ pvcreate --norestorefile -u $TEST_UUID --metadatacopies 0 "$dev5"
vgcreate $vg $(cat DEVICES)
lvcreate -l 5 -i5 -I256 -n $lv $vg
+lvcreate -l 5 -n $lv1 $vg
+lvcreate -s -l 5 -n $lv2 $vg/$lv1
+
if aux have_readline; then
# test *scan and *display tools
cat <<EOF | lvm
pvscan --uuid
-vgscan
+vgscan --mknodes
lvscan
lvmdiskscan
vgdisplay --units k $vg
@@ -39,8 +42,11 @@ lvdisplay --units g $vg
pvdisplay -c "$dev1"
pvdisplay -s "$dev1"
vgdisplay -c $vg
+vgdisplay -C $vg
vgdisplay -s $vg
lvdisplay -c $vg
+lvdisplay -C $vg
+lvdisplay -m $vg
EOF
for i in h b s k m g t p e H B S K M G T P E; do
@@ -48,7 +54,7 @@ for i in h b s k m g t p e H B S K M G T P E; do
done | lvm
else
pvscan --uuid
-vgscan
+vgscan --mknodes
lvscan
lvmdiskscan
vgdisplay --units k $vg
@@ -56,18 +62,36 @@ lvdisplay --units g $vg
pvdisplay -c "$dev1"
pvdisplay -s "$dev1"
vgdisplay -c $vg
+vgdisplay -C $vg
vgdisplay -s $vg
lvdisplay -c $vg
+lvdisplay -C $vg
+lvdisplay -m $vg
for i in h b s k m g t p e H B S K M G T P E; do
pvdisplay --units $i "$dev1"
done
fi
+not lvdisplay -C -m $vg
+not lvdisplay -c -v $vg
+not lvdisplay --aligned $vg
+not lvdisplay --noheadings $vg
+not lvdisplay --options lv_name $vg
+not lvdisplay --separator : $vg
+not lvdisplay --sort size $vg
+not lvdisplay --unbuffered $vg
+
+not vgdisplay -C -A
+not vgdisplay -C -c
+not vgdisplay -C -s
+not vgdisplay -c -s
+not vgdisplay -A $vg1
+
# "-persistent y --major 254 --minor 20"
# "-persistent n"
# test various lvm utils
-for i in dumpconfig formats segtypes; do
+for i in dumpconfig devtypes formats segtypes tags; do
lvm $i
done
@@ -88,8 +112,12 @@ pvcreate -u $TEST_UUID --restorefile backup.$$ "$dev5"
vgremove -f $vg
# test pvresize functionality
+# missing params
not pvresize
+# negative size
not pvresize --setphysicalvolumesize -10M "$dev1"
+# not existing device
+not pvresize --setphysicalvolumesize 10M "$dev7"
pvresize --setphysicalvolumesize 10M "$dev1"
pvresize "$dev1"
@@ -98,6 +126,8 @@ not lvmchange
not lvrename $vg
not lvrename $vg-xxx
not lvrename $vg $vg/$lv-rename $vg/$lv
+not lvscan $vg
+not vgscan $vg
#test vgdisplay -A to select only active VGs
# all LVs active - VG considered active