corosync-qdevice-tool.8 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. .\"/*
  2. .\" * Copyright (C) 2016 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 2016-06-24
  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. Ring ID: 1.a00000000021b48
  79. Membership node list: 1
  80. Quorate: Yes
  81. Quorum node list:
  82. 0 Node ID = 1, State = member
  83. Expected votes: 2
  84. Last poll call: 2016-06-24T17:05:20 (cast vote)
  85. Qdevice-net information
  86. ----------------------
  87. Cluster name: Cluster
  88. QNetd host: localhost:5403
  89. Connect timeout: 8000ms
  90. HB interval: 8000ms
  91. VQ vote timer interval: 5000ms
  92. TLS: Supported
  93. Algorithm: Fifty-Fifty split
  94. Tie-breaker: Node with lowest node ID
  95. Poll timer running: Yes (cast vote)
  96. State: Connected
  97. TLS active: Yes (client certificate sent)
  98. Connected since: 2016-06-24T17:02:35
  99. Echo reply received: 2016-06-24T17:05:15
  100. .fi
  101. The output is split into a generic qdevice section and a model specific section.
  102. Most of the items are just taken from corosync.conf file. It's helpful to note that the
  103. .I Membership node list
  104. is the membership list of the current node and should match the quorum node list.
  105. .I Last poll call
  106. is the timestamp (in iso format) of the last call to the votequorum_qdevice_poll
  107. function.
  108. For model net, it's good to check the
  109. .I Poll timer running
  110. state. Internally, model net supports 3 states. Not voting (when
  111. .I Poll timer running
  112. is No it means that the
  113. .B corosync-qnetd
  114. algorithm decides that the current node shouldn't get a vote),
  115. voting (without cast vote) and voting (with cast vote).
  116. .SH SEE ALSO
  117. .BR corosync-qnetd (8)
  118. .BR corosync-qdevice (8)
  119. .SH AUTHOR
  120. Jan Friesse
  121. .PP