]> git.proxmox.com Git - qemu-server.git/blobdiff - qm
Check quorum when starting migration tunnel
[qemu-server.git] / qm
diff --git a/qm b/qm
index 7f572887e5f7aefbf8fb987edea397f5b0c221da..60b1add0708c41e935d4381a2bb1e760dd1852ae 100755 (executable)
--- 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();