4
0

corosync-vqsim.8 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. .\"/*
  2. .\" * Copyright (C) 2019 Red Hat, Inc.
  3. .\" *
  4. .\" * All rights reserved.
  5. .\" *
  6. .\" * Author: Christine Caulfield <ccaulfie@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 the MontaVista Software, 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-VQSIM 8 2019-05-10
  35. .SH NAME
  36. corosync-vqsim \- The votequorum simulator
  37. .SH SYNOPSIS
  38. .B "corosync-vqsim [\-c config_file] [\-o output file] [\-n] [\-h]"
  39. .SH DESCRIPTION
  40. .B corosync-vqsim
  41. simulates the quorum functions of corosync in a single program. it can simulate
  42. multiple nodes, network splits and a basic quorum device.
  43. By default vqsim will build a virtual cluster of all the nodes in the corosync.conf file,
  44. each 'node' running in a forked subprocess (and thus asynchronously). It then provides a
  45. command-line interface to add (up) or remove (down) nodes, and cause network splits and
  46. rejoins. After each event it shows the new quorum status for all nodes.
  47. Nodes in vqsim are always referred to by their nodeid (the IP address is meaningless) and
  48. optionally by a 'partition' which precedes the nodeid with a colon. By default all nodes
  49. are in partition 0. Nodes can be moved between partitions using the split and join commands.
  50. Multiple nodes can be split and joined at the same time.
  51. To script vqsim you must send input to it via a pipe rather than just redirecting STDIN. This
  52. is because it runs asynchronously to enable the virtual 'nodes' to report status when needed.
  53. (eg if you kill a subprocess using the 'kill(1)' command it gets removed from the cluster).
  54. By default vqsim will wait for all nodes in all partitions to reach the same
  55. ring sequence number before returning a prompt,
  56. there is a timeout associated with this in case of a 'node' failure and exceeding this timeout
  57. can (optionally) quit the program signalling an error.
  58. You can disable waiting using the 'sync off' command or the -n command-line option. This can easily
  59. cause unexpected behaviour so use it with care.
  60. The number of votes per node is read from corosync.conf. New nodes added using the 'up' command
  61. will copy their number of votes from the first node in corosync.conf. This may not be what you
  62. expect and I might fix it in future. As most clusters have only 1 vote per node (and this is
  63. strongly recommended) then this should rarely be a problem.
  64. Once you have the 'vqsim> ' prompt you can type 'help' and get a list of sub-commands.
  65. .SH OPTIONS
  66. .TP
  67. .B -c
  68. This specifies the fully qualified path to the corosync configuration file.
  69. The default is /etc/corosync/corosync.conf.
  70. .TP
  71. .B -o
  72. Specifies the output destination. STDOUT by default.
  73. .TP
  74. .B -n
  75. Don't pause after each command, come straight back to a prompt. Use with care!
  76. .TP
  77. .B -h
  78. Display a brief help message
  79. .SH SEE ALSO
  80. .BR corosync (9),
  81. .BR corosync.conf (5),
  82. .SH AUTHOR
  83. Christine Caulfield
  84. .PP