projects
/
lvm2.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52efa6f
)
lv_manip: show a warning during classic snapshot creation on a RaidLV.
author
Heinz Mauelshagen <heinzm@redhat.com>
Mon, 27 Oct 2025 16:37:09 +0000
(17:37 +0100)
committer
Marian Csontos <mcsontos@redhat.com>
Mon, 10 Nov 2025 09:46:44 +0000
(10:46 +0100)
The RaidLV will fail to activate in case of the loss of any of its snapshots.
Once created, commit
2760e804630a36bab2c3938ce9ac0b08c5e75395
will
catch any loss of such snapshots and provide remedy information.
(cherry picked from commit
ae81b41811ede78b77f6badf0c65c88fa56cc951
)
lib/metadata/lv_manip.c
patch
|
blob
|
history
diff --git
a/lib/metadata/lv_manip.c
b/lib/metadata/lv_manip.c
index 577ffd0b37d62c15a9790998e2b9e073e210ae52..e7405f1dc74043ce477cb53214375a3cff55ac72 100644
(file)
--- a/
lib/metadata/lv_manip.c
+++ b/
lib/metadata/lv_manip.c
@@
-9654,6
+9654,11
@@
static struct logical_volume *_lv_create_an_lv(struct volume_group *vg,
goto revert_new_lv;
}
+ if (lp->snapshot && origin_lv && lv_is_raid(origin_lv)) {
+ log_warn("WARNING: Loss of snapshot %s will cause the activation of the %s LV %s to fail!",
+ lp->lv_name, lvseg_name(first_seg(origin_lv)), display_lvname(origin_lv));
+ }
+
/* Do not scan this LV until properly zeroed/wiped. */
if (_should_wipe_lv(lp, lv, 0))
lv->status |= LV_NOSCAN;
This page took
0.097672 seconds
and
5
git commands to generate.