Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=eee3aeeb612c65c0…
Commit: eee3aeeb612c65c0851bf8080e0ef381587837ab
Parent: c36dcc17282cf9c5f745cc627f9ce3825b4ee5e2
Author: David Teigland <teigland(a)redhat.com>
AuthorDate: Fri Aug 30 11:45:12 2013 -0500
Committer: David Teigland <teigland(a)redhat.com>
CommitterDate: Fri Aug 30 11:53:10 2013 -0500
test: fix process-each-duplicate-vgnames
After enable_dev, the following commands were not
consistently seeing the pv on it.
Alasdair explained, "whenever enabling/disabling devs
outside the tools (and you aren't trying to test how
the tools cope with suddenly appearing/disappering
devices) use "vgscan""
---
test/shell/process-each-duplicate-vgnames.sh | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/test/shell/process-each-duplicate-vgnames.sh b/test/shell/process-each-duplicate-vgnames.sh
index 865ef9f..6eeaa6f 100644
--- a/test/shell/process-each-duplicate-vgnames.sh
+++ b/test/shell/process-each-duplicate-vgnames.sh
@@ -18,15 +18,22 @@ aux disable_dev $dev1
aux disable_dev $dev2
aux enable_dev $dev1
+vgscan
vgcreate $vg1 $dev1
UUID1=$(vgs --noheading -o vg_uuid $vg1)
aux disable_dev $dev1
aux enable_dev $dev2
+vgscan
vgcreate $vg1 $dev2
UUID2=$(vgs --noheading -o vg_uuid $vg1)
aux enable_dev $dev1
+# need vgscan after enabling/disabling devs
+# so that the next commands properly see them
+vgscan
+pvs $dev1
+pvs $dev2
vgs -o+vg_uuid >err
cat err
@@ -43,6 +50,7 @@ cat err
grep $UUID1 err
not grep $UUID2 err
aux enable_dev $dev2
+vgscan
aux disable_dev $dev1
vgs -o+vg_uuid >err
@@ -50,4 +58,5 @@ cat err
grep $UUID2 err
not grep $UUID1 err
aux enable_dev $dev1
+vgscan
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c9258e7f2eebd4fd…
Commit: c9258e7f2eebd4fd188d95bcfb9a280d857d186f
Parent: 8b3664dc8dcfb5bf86be03f20e62617e0c49f5ec
Author: Peter Rajnoha <prajnoha(a)redhat.com>
AuthorDate: Wed Aug 28 14:57:34 2013 +0200
Committer: Peter Rajnoha <prajnoha(a)redhat.com>
CommitterDate: Wed Aug 28 14:59:15 2013 +0200
man: lvmdump: add doc for -l and -u
---
man/lvmdump.8.in | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/man/lvmdump.8.in b/man/lvmdump.8.in
index 3d53420..306ae39 100644
--- a/man/lvmdump.8.in
+++ b/man/lvmdump.8.in
@@ -35,6 +35,10 @@ The content of the tarball is as follows:
- if enabled with \-a, debug output of vgscan, pvscan and list of all available volume groups, physical volumes and logical volumes will be included
.br
- if enabled with \-c, cluster status info
+.br
+- if enabled with \-l, lvmetad state if running
+.br
+- if enabled with \-u, udev info and context
.SH OPTIONS
.TP
.B \-a
@@ -54,11 +58,24 @@ produce the raw dump tree, rooted in \fIdirectory\fP.
.B \-h
Print help message
.TP
+.B \-l
+Include \fBlvmetad\fP(8) daemon dump if it is running. The dump contains
+cached information that is currently stored in lvmetad: VG metadata,
+PV metadata and various mappings in between these metadata for quick
+access.
+.TP
.B \-m
Gather LVM metadata from the PVs
This option generates a 1:1 dump of the metadata area from all PVs visible
to the system, which can cause the dump to increase in size considerably.
However, the metadata dump may represent a valuable diagnostic resource.
+.TP
+.B \-u
+Gather udev info and context: /etc/udev/udev.conf file, udev daemon version
+(output of 'udevadm info --version' command), udev rules currently used in the system
+(content of /lib/udev/rules.d and /etc/udev/rules.d directory),
+list of files in /lib/udev directory and dump of current udev
+database content (the output of 'udevadm info --export-db' command).
.SH ENVIRONMENT VARIABLES
.TP
\fBLVM_BINARY\fP