[pve-devel] [PATCH cluster v5 11/17] cluster create: restart corosync & pmxfs in one go and say so

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Jan 26 14:25:21 CET 2018


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 460be56..0254284 100755
--- a/data/PVE/CLI/pvecm.pm
+++ b/data/PVE/CLI/pvecm.pm
@@ -144,9 +144,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 "Start corosync and restart cluster filesystem\n";
+	run_command(['systemctl', 'restart', 'corosync', 'pve-cluster']);
 
 	return undef;
 }});
-- 
2.14.2





More information about the pve-devel mailing list