[pve-devel] [PATCH pve-cluster 2/2] reload corosync.conf after removing a node.
Wolfgang Link
w.link at proxmox.com
Wed Aug 31 13:05:43 CEST 2016
---
data/PVE/CLI/pvecm.pm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/data/PVE/CLI/pvecm.pm b/data/PVE/CLI/pvecm.pm
index 8a897e9..e97588d 100755
--- a/data/PVE/CLI/pvecm.pm
+++ b/data/PVE/CLI/pvecm.pm
@@ -410,12 +410,14 @@ __PACKAGE__->register_method ({
my $nodelist = corosync_nodelist($conf);
my $node;
+ my $nodeid;
foreach my $tmp_node (keys %$nodelist) {
if ($nodelist->{$tmp_node}->{ring0_addr} eq $param->{node}
|| $tmp_node eq $param->{node}) {
$node = $tmp_node;
+ $nodeid = $nodelist->{$tmp_node}->{nodeid};
last;
}
}
@@ -427,6 +429,10 @@ __PACKAGE__->register_method ({
corosync_update_nodelist($conf, $nodelist);
+ if(defined($nodeid)) {
+ PVE::Tools::run_command(['corosync-cfgtool','-k', $nodeid]);
+ }
+
return undef;
}});
--
2.1.4
More information about the pve-devel
mailing list