From 32f9da6804fe5bbd8f88b8e1cc0ee38dced47068 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 9 Sep 2011 10:39:24 +0200 Subject: [PATCH] Check quorum when starting migration tunnel --- qm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qm b/qm index 7f572887..60b1add0 100755 --- a/qm +++ b/qm @@ -195,7 +195,7 @@ __PACKAGE__->register_method ({ name => 'mtunnel', path => 'mtunnel', method => 'POST', - description => "Used by vzmigrate - do not use manually.", + description => "Used by qmigrate - do not use manually.", parameters => { additionalProperties => 0, properties => {}, @@ -204,6 +204,11 @@ __PACKAGE__->register_method ({ code => sub { my ($param) = @_; + if (!PVE::Cluster::check_cfs_quorum(1)) { + print "no quorum\n"; + return undef; + } + print "tunnel online\n"; *STDOUT->flush();