[pve-devel] [PATCH cluster v4 10/15] cluster create: restart corosync & pmxfs in one go and say so
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue Jan 9 15:52:58 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 6afb866..dd92dbc 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.11.0
More information about the pve-devel
mailing list