Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=627f0e2bd84753a7bfbda…
Commit: 627f0e2bd84753a7bfbda517f22c54a929e3a458
Parent: dd5716ddf258c4a44819fa90d3356833ccf767b4
Author: Heinz Mauelshagen <heinzm(a)redhat.com>
AuthorDate: Tue Dec 11 16:54:17 2018 +0100
Committer: Heinz Mauelshagen <heinzm(a)redhat.com>
CommitterDate: Tue Dec 11 16:54:17 2018 +0100
man: document 's' RAID attribute bit
---
man/lvs.8_end | 2 ++
man/lvs.8_pregen | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/man/lvs.8_end b/man/lvs.8_end
index f24ffe9..4f83516 100644
--- a/man/lvs.8_end
+++ b/man/lvs.8_end
@@ -56,6 +56,8 @@ Inconsistencies are detected by initiating a "check" on a RAID logical volume.
(The scrubbing operations, "check" and "repair", can be performed on a RAID
logical volume via the 'lvchange' command.) (w)ritemostly signifies the
devices in a RAID 1 logical volume that have been marked write-mostly.
+Re(s)haping signifies a RAID Logical Volume is either undergoing a stripe
+addition/removal, a stripe size or RAID algorithm change.
(R)emove after reshape signifies freed striped raid images to be removed.
.IP
Related to Thin pool Logical Volumes: (F)ailed, out of (D)ata space,
diff --git a/man/lvs.8_pregen b/man/lvs.8_pregen
index cbc0ed8..377afc2 100644
--- a/man/lvs.8_pregen
+++ b/man/lvs.8_pregen
@@ -569,6 +569,8 @@ Inconsistencies are detected by initiating a "check" on a RAID logical volume.
(The scrubbing operations, "check" and "repair", can be performed on a RAID
logical volume via the 'lvchange' command.) (w)ritemostly signifies the
devices in a RAID 1 logical volume that have been marked write-mostly.
+Re(s)haping shows a Raid Logical Volume is undergoing a reshape (ie. striped
+ addition/removal, stripe size or RAID algorithm change).
(R)emove after reshape signifies freed striped raid images to be removed.
.IP
Related to Thin pool Logical Volumes: (F)ailed, out of (D)ata space,
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=edb72cb70cb8abd0acb92…
Commit: edb72cb70cb8abd0acb92f07937715be2816d04a
Parent: a4b8377488f82c496b14ee6d644fc681968acaca
Author: Heinz Mauelshagen <heinzm(a)redhat.com>
AuthorDate: Fri Dec 7 19:56:49 2018 +0100
Committer: Heinz Mauelshagen <heinzm(a)redhat.com>
CommitterDate: Sat Dec 8 02:52:50 2018 +0100
lvcreate/lvconvert: prohibit creation of/conversion to mirrored mirror logs
In RHEL7 we marked mirrored mirror logs as deprecated and
added a related message. This patch prohibits creating new
'mirror' LVs with that log type or converting existing LVs
to have one.
Existing LVs with mirrored mirror log can be activated
and converted to disk/core logs.
Avoid double deprecation message when running lvconvert.
Resolves: rhbz1643562
---
lib/metadata/mirror.c | 3 ++-
tools/lvconvert.c | 5 -----
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/lib/metadata/mirror.c b/lib/metadata/mirror.c
index ba3f33d..8b20979 100644
--- a/lib/metadata/mirror.c
+++ b/lib/metadata/mirror.c
@@ -1908,7 +1908,8 @@ int add_mirror_log(struct cmd_context *cmd, struct logical_volume *lv,
}
if (log_count > 1) {
- log_warn("WARNING: Log type \"mirrored\" is DEPRECATED and will be removed in the future. Use RAID1 LV or disk log instead.");
+ log_err("Log type \"mirrored\" is DEPRECATED. Use RAID1 LV or disk log instead.");
+ return 0;
}
if (!(parallel_areas = build_parallel_areas_from_lv(lv, 0, 0)))
diff --git a/tools/lvconvert.c b/tools/lvconvert.c
index 65a4ed3..dbc9fea 100644
--- a/tools/lvconvert.c
+++ b/tools/lvconvert.c
@@ -1262,11 +1262,6 @@ static int _lvconvert_mirrors(struct cmd_context *cmd,
(old_log_count == new_log_count))
return 1;
- if ((old_log_count != new_log_count) &&
- (new_log_count == MIRROR_LOG_MIRRORED)) {
- log_warn("WARNING: Log type \"mirrored\" is DEPRECATED and will be removed in the future. Use RAID1 LV or disk log instead.");
- }
-
if (!_lvconvert_mirrors_aux(cmd, lv, lp, NULL,
new_mimage_count, new_log_count, lp->pvh))
return_0;
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=a4b8377488f82c496b14e…
Commit: a4b8377488f82c496b14ee6d644fc681968acaca
Parent: 21784e94d6f4308931fa497679f1a4e5e1966578
Author: David Teigland <teigland(a)redhat.com>
AuthorDate: Fri Dec 7 13:11:31 2018 -0600
Committer: David Teigland <teigland(a)redhat.com>
CommitterDate: Fri Dec 7 13:11:31 2018 -0600
lvmlockd: fix missing LV lock for lvconvert repair
Add missing lvmlockd LV lock for lvconvert repair
on mirror and thin/cache pools.
---
tools/lvconvert.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/tools/lvconvert.c b/tools/lvconvert.c
index a29a66b..65a4ed3 100644
--- a/tools/lvconvert.c
+++ b/tools/lvconvert.c
@@ -3534,6 +3534,18 @@ static int _lvconvert_repair_pvs_mirror(struct cmd_context *cmd, struct logical_
int ret;
/*
+ * We want to allow cmirror active on multiple nodes to be repaired,
+ * but normal mirror to only be repaired if active exclusively here.
+ * If the LV is active it already has the necessary lock, but if not
+ * active, then require ex since we cannot know the active state on
+ * other hosts.
+ */
+ if (!lv_is_active(lv)) {
+ if (!lockd_lv(cmd, lv, "ex", 0))
+ return_0;
+ }
+
+ /*
* FIXME: temporary use of lp because _lvconvert_mirrors_repair()
* and _aux() still use lp fields everywhere.
* Migrate them away from using lp (for the most part just use
@@ -3663,6 +3675,10 @@ static int _lvconvert_repair_cachepool_thinpool(struct cmd_context *cmd, struct
int poolmetadataspare = arg_int_value(cmd, poolmetadataspare_ARG, DEFAULT_POOL_METADATA_SPARE);
struct dm_list *use_pvh;
+ /* ensure it's not active elsewhere. */
+ if (!lockd_lv(cmd, lv, "ex", 0))
+ return_0;
+
if (cmd->position_argc > 1) {
/* First pos arg is required LV, remaining are optional PVs. */
if (!(use_pvh = create_pv_list(cmd->mem, lv->vg, cmd->position_argc - 1, cmd->position_argv + 1, 0)))
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=f21d9eb8527258479805f…
Commit: f21d9eb8527258479805f5a8132dd9e6e3e572d8
Parent: 0000000000000000000000000000000000000000
Author: Marian Csontos <mcsontos(a)redhat.com>
AuthorDate: 2018-12-07 14:13 +0000
Committer: Marian Csontos <mcsontos(a)redhat.com>
CommitterDate: 2018-12-07 14:13 +0000
annotated tag: v2_02_183 has been created
at f21d9eb8527258479805f5a8132dd9e6e3e572d8 (tag)
tagging f5ea02ffee3269a77e295d2b186ca81481f592d7 (commit)
replaces v2_02_182
Release 2.02.183
Bug fix release.
Use sync IO when AIO fails due to system reaching the aio request limit. Add
global/use_aio configuration option to disable aio.
MD RAID verion 0.90 devices are filtered out preventing them to be seen as
duplicate PVs.
Fix regression in dmstats resulting in no output.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iQIcBAABAgAGBQJcCoAQAAoJELkRJDHlCQOf6FUP+gNHcULrPp8Tv47Hk6LOOY6x
G6YEkwEmks070B3FPPLGJ49YuGbuiiGhbBdBKajaOiubTStuEc2cFO597kCV8SlX
TwNF9NEGCUy3XyhqAXStZb3nOEZo0pO7ZZsnwlkfEOWb/R+2fcGA+c6SwLUoOwbx
NZYBRCCdaTcVdJhD0qNjz1SrZ5GREQjXDwfSN+uqAw+QwWWWsqZd+hrlM86mEIer
cls2EfhNkEV7UBqi6CS7d9uzQNpLuul//jOmggH1q39rVw7ZxCLv6wPQOVR9Z+xm
T7Do3w2kmy0wsmcdxRcOJ8POeh7nSJApU3owa2BjBEetRwyxfDhdNcsjG52XHCIx
l9PyG6VNvg92FeDVkkOxGLQP9bd76+u4JiRzyzMjYczuCEbbV4Yhwud3MoHA1/fU
E0kD7FWImPIRudS5GR0XRTfZB/hT4LaL0k2RDtMYr2IIfEsixgWEPwMD0P9RrYnS
vTKnAm62oO2TLvkIFq+D5vguEjg9JLz5xV3NV3yZGCe6YiShaz0C0LScmAOCIpq7
YQ2xPBGBKKuYDsA1TEgUXzaPX6qtZQhQ2CC25OR4PL/z2d7eotVlcjNSChZgKOLt
g8j7CKKqgp8R5F5SKPHbGHVtNqkWUYmUQbRSgtFwl0wCTIoFILt0NnbDO9XEVjD3
f7uAulpVklECGeS76zKr
=4F0E
-----END PGP SIGNATURE-----
Bryn M. Reeves (2):
libdm-stats: move no regions warning after dm_stats_list()
dmsetup: fix stats report command output
David Teigland (9):
devices: reuse bcache fd when getting block size
update WHATS_NEW
io: use sync io if aio fails
bcache: sync io fixes
WHATS_NEW: sync io
pvscan lvmetad: use full md filter when md 1.0 devices are present
lvmetad: only disable if repair will do something
lvmetad: fix disabling in previous commit
pvscan lvmetad: use udev info to improve md component detection
Marian Csontos (3):
post-release
build: make generate
pre-release
Peter Rajnoha (1):
scan: md metadata version 0.90 is at the end of disk
Zdenek Kabelac (1):
libdm: do not add params for resume and remove