mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvchange: allow a transiently failed RaidLV to be refreshed
Enhance commit 0b8bf73a63
to refresh the top-level LV correctly
in case of a clustered, remotely activated RaidLV.
Related: rhbz1399844
This commit is contained in:
parent
75ec7c8dee
commit
87117c2b25
@ -1417,6 +1417,11 @@ int lv_refresh_suspend_resume(const struct logical_volume *lv)
|
||||
* with transient failures of SubLVs.
|
||||
*/
|
||||
if (lv_is_raid(lv)) {
|
||||
if (vg_is_clustered(lv->vg) &&
|
||||
lv_is_active_remotely(lv)) {
|
||||
if (!_lv_refresh_suspend_resume(lv))
|
||||
return 0;
|
||||
} else {
|
||||
uint32_t s;
|
||||
struct lv_segment *seg = first_seg(lv);
|
||||
|
||||
@ -1430,6 +1435,7 @@ int lv_refresh_suspend_resume(const struct logical_volume *lv)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return _lv_refresh_suspend_resume(lv);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user