Skip to contentSkip to conversation

master - lvconvert: disable reshaping of RAID LVs in the cluster

PATCH Heinz Mauelshagen 1 participant 1 message Jun 19, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=76a327f084705fafa9374e6256ad7143668adc80
Commit:        76a327f084705fafa9374e6256ad7143668adc80
Parent:        1c212b8a43750ea48b9e96da75c1349682c81454
Author:        Heinz Mauelshagen <[email protected]>
AuthorDate:    Mon Jun 19 20:01:01 2017 +0200
Committer:     Heinz Mauelshagen <[email protected]>
CommitterDate: Mon Jun 19 20:01:01 2017 +0200

lvconvert: disable reshaping of RAID LVs in the cluster

Disable until we have a proper fix for reshape space allocation, switching it to begin/end of rimages and activation in the cluster.

Related: rhbz1461526

---
 lib/metadata/raid_manip.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
lib/metadata/raid_manip.c +6 -0
index 5c3f9ef..6abf482 100644
@@ -6319,6 +6319,12 @@ int lv_raid_convert(struct logical_volume *lv,
 	case 0:
 		break;
 	case 1:
+		/* Conversion of reshapable raids is the cluster is not supported yet. */
+		if (locking_is_clustered()) {
+			log_error("Conversion of %s not supported in the cluster.", display_lvname(lv));
+			return 0;
+		}
+
 		if (!_raid_reshape(lv, new_segtype, yes, force,
 				   data_copies, region_size,
 				   stripes, stripe_size, allocate_pvs)) {