[pve-devel] [RFC cluster v2 08/10] cluster create: restart corosync & pmxfs in one go and say so

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Dec 4 12:11:15 CET 2017


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 data/PVE/CLI/pvecm.pm | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/data/PVE/CLI/pvecm.pm b/data/PVE/CLI/pvecm.pm
index 553dbee..4b4eaa5 100755
--- a/data/PVE/CLI/pvecm.pm
+++ b/data/PVE/CLI/pvecm.pm
@@ -146,9 +146,8 @@ __PACKAGE__->register_method ({
 
 	PVE::Cluster::ssh_merge_known_hosts($nodename, $local_ip_address, 1);
 
-	run_command('systemctl restart pve-cluster'); # restart
-
-	run_command('systemctl restart corosync'); # restart
+	print "Restart corosync and cluster filesystem\n";
+	run_command('systemctl restart corosync pve-cluster'); # restart
 
 	return undef;
 }});
-- 
2.11.0





More information about the pve-devel mailing list