corosync-qdevice-tool.8 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. .\"/*
  2. .\" * Copyright (C) 2016-2020 Red Hat, Inc.
  3. .\" *
  4. .\" * All rights reserved.
  5. .\" *
  6. .\" * Author: Jan Friesse <jfriesse@redhat.com>
  7. .\" *
  8. .\" * This software licensed under BSD license, the text of which follows:
  9. .\" *
  10. .\" * Redistribution and use in source and binary forms, with or without
  11. .\" * modification, are permitted provided that the following conditions are met:
  12. .\" *
  13. .\" * - Redistributions of source code must retain the above copyright notice,
  14. .\" * this list of conditions and the following disclaimer.
  15. .\" * - Redistributions in binary form must reproduce the above copyright notice,
  16. .\" * this list of conditions and the following disclaimer in the documentation
  17. .\" * and/or other materials provided with the distribution.
  18. .\" * - Neither the name of Red Hat, Inc. nor the names of its
  19. .\" * contributors may be used to endorse or promote products derived from this
  20. .\" * software without specific prior written permission.
  21. .\" *
  22. .\" * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  23. .\" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  24. .\" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  25. .\" * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  26. .\" * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  27. .\" * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  28. .\" * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  29. .\" * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  30. .\" * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  31. .\" * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  32. .\" * THE POSSIBILITY OF SUCH DAMAGE.
  33. .\" */
  34. .TH COROSYNC-QDEVICE-TOOL 8 2020-10-27
  35. .SH NAME
  36. corosync-qdevice-tool \- corosync-qdevice control interface.
  37. .SH SYNOPSIS
  38. .B "corosync-qdevice-tool [-Hhsv] [-p qdevice_ipc_socket_path]"
  39. .SH DESCRIPTION
  40. .B corosync-qdevice-tool
  41. is a frontend to the internal corosync-qdevice IPC. Its main purpose is to show important
  42. information about the current internal state of
  43. .B corosync-qdevice.
  44. .SH OPTIONS
  45. .TP
  46. .B -H
  47. Properly shutdown the
  48. .B corosync-qdevice
  49. process
  50. .TP
  51. .B -h
  52. Display a short usage text
  53. .TP
  54. .B -s
  55. Display the status of the
  56. .B corosync-qdevice
  57. process. The output is described in its own section below.
  58. .TP
  59. .B -v
  60. Display more verbose output for the
  61. .B -s
  62. option.
  63. .TP
  64. .B -p
  65. Path to the
  66. .B corosync-qdevice
  67. communication socket.
  68. .SH STATUS COMMAND OUTPUT
  69. .nf
  70. Qdevice information
  71. -------------------
  72. Model: Net
  73. Node ID: 1
  74. HB interval: 10000ms
  75. Sync HB interval: 30000ms
  76. Configured node list:
  77. 0 Node ID = 1
  78. Heuristics: Enabled
  79. Ring ID: 1.a00000000021b48
  80. Membership node list: 1
  81. Quorate: Yes
  82. Quorum node list:
  83. 0 Node ID = 1, State = member
  84. Expected votes: 2
  85. Last poll call: 2016-06-24T17:05:20 (cast vote)
  86. Qdevice-net information
  87. ----------------------
  88. Cluster name: Cluster
  89. QNetd host: localhost:5403
  90. Connect timeout: 8000ms
  91. HB interval: 8000ms
  92. VQ vote timer interval: 5000ms
  93. TLS: Supported
  94. Algorithm: Fifty-Fifty split
  95. Tie-breaker: Node with lowest node ID
  96. KAP Tie-breaker: Enabled
  97. Poll timer running: Yes (cast vote)
  98. State: Connected
  99. Heuristics result: Pass (regular: Pass, membership: Fail, connect: Fail)
  100. TLS active: Yes (client certificate sent)
  101. Connected since: 2016-06-24T17:02:35
  102. Echo reply received: 2016-06-24T17:05:15
  103. .fi
  104. The output is split into a generic qdevice section and a model specific section.
  105. Most of the items are just taken from corosync.conf file. It's helpful to note that the
  106. .I Membership node list
  107. is the membership list of the current node and should match the quorum node list.
  108. .I Last poll call
  109. is the timestamp (in iso format) of the last call to the votequorum_qdevice_poll
  110. function.
  111. For model net, it's good to check the
  112. .I Poll timer running
  113. state. Internally, model net supports 3 states. Not voting (when
  114. .I Poll timer running
  115. is No, which means
  116. .B corosync-qdevice
  117. is waiting for
  118. .B corosync-qnetd
  119. to reply), voting (without cast vote, it means that the
  120. .B corosync-qnetd
  121. algorithm decides that the current node shouldn't get a vote) and voting (with cast vote).
  122. .SH SEE ALSO
  123. .BR corosync-qnetd (8)
  124. .BR corosync-qdevice (8)
  125. .SH AUTHOR
  126. Jan Friesse
  127. .PP