Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=0d5b9deff21991f0…
Commit: 0d5b9deff21991f0b26240ae4395ee12e76096c5
Parent: 7daba90fa3c2cec085170b1c18f63d7877e483da
Author: Zdenek Kabelac <zkabelac(a)redhat.com>
AuthorDate: Mon Mar 14 23:16:45 2016 +0100
Committer: Zdenek Kabelac <zkabelac(a)redhat.com>
CommitterDate: Mon Mar 14 23:45:45 2016 +0100
tests: use own PID path for lvmetad checking
Do not try to check PID of running lvmetad and use own path.
---
test/lib/inittest.sh | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/test/lib/inittest.sh b/test/lib/inittest.sh
index a2dcf01..a453ee6 100644
--- a/test/lib/inittest.sh
+++ b/test/lib/inittest.sh
@@ -114,6 +114,7 @@ if test -n "$LVM_TEST_LVMETAD" ; then
aux prepare_lvmetad
else
# lvmetad prepares its own lvmconf
+ export LVM_LVMETAD_PIDFILE="$TESTDIR/non-existing-file"
aux lvmconf
aux prepare_clvmd
fi
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=eddd448869573ca0…
Commit: eddd448869573ca03e49c009e80cd4440fb0193f
Parent: 0000000000000000000000000000000000000000
Author: Alasdair G Kergon <agk(a)redhat.com>
AuthorDate: 2016-03-11 00:19 +0000
Committer: Alasdair G Kergon <agk(a)redhat.com>
CommitterDate: 2016-03-11 00:19 +0000
annotated tag: v2_02_146 has been created
at eddd448869573ca03e49c009e80cd4440fb0193f (tag)
tagging 2159a1429d65adb824e67a1577625663d910516e (commit)
replaces v2_02_145
Release 2.02.146.
Another development checkpoint - all recent API changes are still not frozen.
67 files changed, 985 insertions(+), 365 deletions(-)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
iEYEABECAAYFAlbiDyAACgkQIoGRwVZ+LBcntwCg804fiwvLyCirQp1bAu/L6zNj
9OoAn25XIxRQzSELiLobHEHRrG68QCBC
=LtBU
-----END PGP SIGNATURE-----
Alasdair G Kergon (3):
post-release
report: Tidy some field names, widths and headings.
pre-release
David Teigland (6):
dbus: add notification from commands
vgscan: add --notifydbus to send a notification
toollib: always process in use pvs
remove unused define
pvchange, pvresize: move exported VG check
man: vgcreate shared
Heinz Mauelshagen (1):
raid_manip: allow for raid leg to be replaced when not both data and metadata image are on pvs
Marian Csontos (7):
test: Update kernels to skip thin-flags with
test: Move udev-lvmlockd-test to check_system
test: Comment out incorrect lockd setup
spec: Add missing dependency for dbusd
test: Add prepare_lvmdbusd
spec: Fix gobject dependency
test: Remove work-in-progress code from dbustest
Ondrej Kozina (2):
test: fix inverted condition
test: skip unrelated tests while testing lvmpolld
Peter Rajnoha (2):
coverity: fix possible resource leak in _print_historical_lv function
metadata: do not issue warning message about PV dev size being 0 when the device has gone just after VG read
Tony Asleson (2):
lvmdbus: Fix exception during exception handling
lvmdbus: Fix deprecated warnings for GObject use
Zdenek Kabelac (14):
libdm: parse more info from cache status
lvconvert: uncache handles missing PV
cache: check for cache fail during flush
lvconvert: improve vg parameter parsing
makefiles: avoid using vpath for rules files
man: updates
man: drop extra braces
topology: handle reported sizes smaller then sector
gcc: cast time_t to 64bit
cleanup: add backtrace
cleanup: reoder lines
cleanup: display_lvname
tests: uncache with missing PV
lvconvert: update --help
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=6807eb88634fd0db…
Commit: 6807eb88634fd0db95cdccbbc65570b2d96c989a
Parent: 0f10823ec910c0a6015b20580f5aa26f209cea04
Author: David Teigland <teigland(a)redhat.com>
AuthorDate: Thu Mar 10 15:40:37 2016 -0600
Committer: David Teigland <teigland(a)redhat.com>
CommitterDate: Thu Mar 10 15:40:37 2016 -0600
man: vgcreate shared
---
man/vgcreate.8.in | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/man/vgcreate.8.in b/man/vgcreate.8.in
index 92ef06c..22feedf 100644
--- a/man/vgcreate.8.in
+++ b/man/vgcreate.8.in
@@ -132,7 +132,8 @@ The 2.4 kernel has a limitation of 2TiB per block device.
.B \-\-shared
Create a shared VG using lvmlockd. lvmlockd will select lock type sanlock
or dlm depending on which lock manager is running. This allows multiple
-hosts to share a VG on shared devices. See
+hosts to share a VG on shared devices. lvmlockd and a lock manager must
+be configured and running. See
.BR lvmlockd (8).
.TP
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=0f10823ec910c0a6…
Commit: 0f10823ec910c0a6015b20580f5aa26f209cea04
Parent: 9f4451193b8db4bd9c894248f50da9319704293e
Author: David Teigland <teigland(a)redhat.com>
AuthorDate: Thu Mar 10 13:28:47 2016 -0600
Committer: David Teigland <teigland(a)redhat.com>
CommitterDate: Thu Mar 10 13:37:42 2016 -0600
pvchange, pvresize: move exported VG check
Allow pvchange and pvresize to process exported VGs,
and have them check for the exported state in their
single function.
Previously, the exported VG state would trigger a
failure in vg_read()/ignore_vg() because the VGs are
being read with READ_FOR_UPDATE. Because these commands
read all VGs to search for the intended PVs, any
exported VG would trigger a failure, even if it was
not related to the intended PV.
---
tools/pvchange.c | 7 ++++++-
tools/pvresize.c | 8 ++++++--
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/tools/pvchange.c b/tools/pvchange.c
index 5f99016..e103ebe 100644
--- a/tools/pvchange.c
+++ b/tools/pvchange.c
@@ -35,6 +35,11 @@ static int _pvchange_single(struct cmd_context *cmd, struct volume_group *vg,
params->total++;
+ if (vg && vg_is_exported(vg)) {
+ log_error("Volume group %s is exported", vg->name);
+ goto bad;
+ }
+
/* If in a VG, must change using volume group. */
if (!is_orphan(pv)) {
if (tagargs && !(vg->fid->fmt->features & FMT_TAGS)) {
@@ -230,7 +235,7 @@ int pvchange(struct cmd_context *cmd, int argc, char **argv)
set_pv_notify(cmd);
- ret = process_each_pv(cmd, argc, argv, NULL, 0, READ_FOR_UPDATE, handle, _pvchange_single);
+ ret = process_each_pv(cmd, argc, argv, NULL, 0, READ_FOR_UPDATE | READ_ALLOW_EXPORTED, handle, _pvchange_single);
if (!argc)
unlock_vg(cmd, VG_GLOBAL);
diff --git a/tools/pvresize.c b/tools/pvresize.c
index 1312290..9931cc6 100644
--- a/tools/pvresize.c
+++ b/tools/pvresize.c
@@ -36,6 +36,11 @@ static int _pvresize_single(struct cmd_context *cmd,
}
params->total++;
+ if (vg && vg_is_exported(vg)) {
+ log_error("Volume group %s is exported", vg->name);
+ return ECMD_FAILED;
+ }
+
/*
* Needed to change a property on an orphan PV.
* i.e. the global lock is only needed for orphans.
@@ -89,8 +94,7 @@ int pvresize(struct cmd_context *cmd, int argc, char **argv)
handle->custom_handle = ¶ms;
- ret = process_each_pv(cmd, argc, argv, NULL, 0, READ_FOR_UPDATE, handle,
- _pvresize_single);
+ ret = process_each_pv(cmd, argc, argv, NULL, 0, READ_FOR_UPDATE | READ_ALLOW_EXPORTED, handle, _pvresize_single);
log_print_unless_silent("%d physical volume(s) resized / %d physical volume(s) "
"not resized", params.done, params.total - params.done);