2016-04-06 18:36:10 +03:00
*pvecm* `<COMMAND> [ARGS] [OPTIONS]`
*pvecm add* `<hostname>` `[OPTIONS]`
Adds the current node to an existing cluster.
2016-11-05 18:49:43 +03:00
`<hostname>`: `<string>` ::
2016-04-06 18:36:10 +03:00
2016-04-07 09:20:32 +03:00
Hostname (or IP) of an existing cluster member.
2016-04-06 18:36:10 +03:00
2018-03-22 15:17:37 +03:00
`--fingerprint` `([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}` ::
Certificate SHA 256 fingerprint.
2017-10-19 10:30:23 +03:00
`--force` `<boolean>` ::
2016-04-06 18:36:10 +03:00
2016-04-07 09:20:32 +03:00
Do not throw error if node already exists.
2016-04-06 18:36:10 +03:00
2019-06-25 13:45:44 +03:00
`--link[n]` `[address=]<IP> [,priority=<integer>]` ::
2016-04-06 18:36:10 +03:00
2020-05-06 15:31:37 +03:00
Address and priority information of a single corosync link. (up to 8 links supported; link0..link7)
2016-04-06 18:36:10 +03:00
2019-06-25 13:45:44 +03:00
`--nodeid` `<integer> (1 - N)` ::
2016-04-06 18:36:10 +03:00
2019-06-25 13:45:44 +03:00
Node id for this node.
2018-03-22 15:17:37 +03:00
`--use_ssh` `<boolean>` ::
Always use SSH to join, even if peer may do it over API.
2016-04-06 18:36:10 +03:00
2017-10-19 10:30:23 +03:00
`--votes` `<integer> (0 - N)` ::
2016-04-06 18:36:10 +03:00
2016-04-07 09:20:32 +03:00
Number of votes for this node
2016-04-06 18:36:10 +03:00
*pvecm addnode* `<node>` `[OPTIONS]`
2018-11-29 15:12:20 +03:00
Adds a node to the cluster configuration. This call is for internal use.
2016-04-06 18:36:10 +03:00
2016-11-05 18:49:43 +03:00
`<node>`: `<string>` ::
2016-04-06 18:36:10 +03:00
2016-04-07 09:20:32 +03:00
The cluster node name.
2016-04-06 18:36:10 +03:00
2020-05-06 15:31:37 +03:00
`--apiversion` `<integer>` ::
The JOIN_API_VERSION of the new node.
2017-10-19 10:30:23 +03:00
`--force` `<boolean>` ::
2016-04-06 18:36:10 +03:00
2016-04-07 09:20:32 +03:00
Do not throw error if node already exists.
2016-04-06 18:36:10 +03:00
2019-06-25 13:45:44 +03:00
`--link[n]` `[address=]<IP> [,priority=<integer>]` ::
2016-04-06 18:36:10 +03:00
2020-05-06 15:31:37 +03:00
Address and priority information of a single corosync link. (up to 8 links supported; link0..link7)
`--new_node_ip` `<string>` ::
IP Address of node to add. Used as fallback if no links are given.
2016-04-06 18:36:10 +03:00
2019-06-25 13:45:44 +03:00
`--nodeid` `<integer> (1 - N)` ::
2016-04-06 18:36:10 +03:00
2019-06-25 13:45:44 +03:00
Node id for this node.
2016-04-06 18:36:10 +03:00
2017-10-19 10:30:23 +03:00
`--votes` `<integer> (0 - N)` ::
2016-04-06 18:36:10 +03:00
2016-04-07 09:20:32 +03:00
Number of votes for this node
2016-04-06 18:36:10 +03:00
2020-05-06 15:31:37 +03:00
*pvecm apiver*
Return the version of the cluster join API available on this node.
2016-04-06 18:36:10 +03:00
*pvecm create* `<clustername>` `[OPTIONS]`
2020-05-06 15:31:37 +03:00
Generate new cluster configuration. If no links given, default to local IP
address as link0.
2016-04-06 18:36:10 +03:00
2016-11-05 18:49:43 +03:00
`<clustername>`: `<string>` ::
2016-04-06 18:36:10 +03:00
2016-04-07 09:20:32 +03:00
The name of the cluster.
2016-04-06 18:36:10 +03:00
2019-06-25 13:45:44 +03:00
`--link[n]` `[address=]<IP> [,priority=<integer>]` ::
2016-04-06 18:36:10 +03:00
2020-05-06 15:31:37 +03:00
Address and priority information of a single corosync link. (up to 8 links supported; link0..link7)
2016-04-06 18:36:10 +03:00
2017-10-19 10:30:23 +03:00
`--nodeid` `<integer> (1 - N)` ::
2016-04-06 18:36:10 +03:00
2016-04-07 09:20:32 +03:00
Node id for this node.
2016-04-06 18:36:10 +03:00
2017-10-19 10:30:23 +03:00
`--votes` `<integer> (1 - N)` ::
2016-04-06 18:36:10 +03:00
2016-04-07 09:20:32 +03:00
Number of votes for this node.
2016-04-06 18:36:10 +03:00
*pvecm delnode* `<node>`
2018-03-22 15:17:37 +03:00
Removes a node from the cluster configuration.
2016-04-06 18:36:10 +03:00
2016-11-05 18:49:43 +03:00
`<node>`: `<string>` ::
2016-04-06 18:36:10 +03:00
2018-03-22 15:17:37 +03:00
The cluster node name.
2016-04-06 18:36:10 +03:00
*pvecm expected* `<expected>`
Tells corosync a new value of expected votes.
2016-11-05 18:49:43 +03:00
`<expected>`: `<integer> (1 - N)` ::
2016-04-06 18:36:10 +03:00
2016-04-07 09:20:32 +03:00
Expected votes
2016-04-06 18:36:10 +03:00
2018-02-12 11:50:48 +03:00
*pvecm help* `[OPTIONS]`
2016-04-06 18:36:10 +03:00
Get help about specified command.
2018-02-12 11:50:48 +03:00
`--extra-args` `<array>` ::
2016-04-06 18:36:10 +03:00
2018-02-12 11:50:48 +03:00
Shows help for a specific command
2016-04-06 18:36:10 +03:00
2017-10-19 10:30:23 +03:00
`--verbose` `<boolean>` ::
2016-04-06 18:36:10 +03:00
2016-04-07 09:20:32 +03:00
Verbose output format.
2016-04-06 18:36:10 +03:00
*pvecm keygen* `<filename>`
Generate new cryptographic key for corosync.
2016-11-05 18:49:43 +03:00
`<filename>`: `<string>` ::
2016-04-06 18:36:10 +03:00
2016-04-07 09:20:32 +03:00
Output file name
2016-04-06 18:36:10 +03:00
2019-07-04 17:17:53 +03:00
*pvecm mtunnel* `[<extra-args>]` `[OPTIONS]`
Used by VM/CT migration - do not use manually.
`<extra-args>`: `<array>` ::
Extra arguments as array
`--get_migration_ip` `<boolean>` ('default =' `0`)::
return the migration IP, if configured
`--migration_network` `<string>` ::
the migration network used to detect the local migration IP
`--run-command` `<boolean>` ::
Run a command with a tcp socket as standard input. The IP address and port are printed via this command's stdandard output first, each on a separate line.
2016-04-06 18:36:10 +03:00
*pvecm nodes*
Displays the local view of the cluster nodes.
2019-04-04 18:17:19 +03:00
*pvecm qdevice remove*
Remove a configured QDevice
*pvecm qdevice setup* `<address>` `[OPTIONS]`
Setup the use of a QDevice
`<address>`: `<string>` ::
Specifies the network address of an external corosync QDevice
`--force` `<boolean>` ::
Do not throw error on possible dangerous operations.
`--network` `<string>` ::
The network which should be used to connect to the external qdevice
2016-04-06 18:36:10 +03:00
*pvecm status*
Displays the local view of the cluster status.
*pvecm updatecerts* `[OPTIONS]`
Update node certificates (and generate all needed files/directories).
2017-10-19 10:30:23 +03:00
`--force` `<boolean>` ::
2016-04-06 18:36:10 +03:00
2021-04-26 18:48:36 +03:00
Force generation of new SSL certificate.
2016-04-06 18:36:10 +03:00
2017-10-19 10:30:23 +03:00
`--silent` `<boolean>` ::
2016-04-06 18:36:10 +03:00
2016-04-07 09:20:32 +03:00
Ignore errors (i.e. when cluster has no quorum).
2016-04-06 18:36:10 +03:00
2024-04-22 14:15:46 +03:00
`--unmerge-known-hosts` `<boolean>` ('default =' `0`)::
Unmerge legacy SSH known hosts.
2016-04-06 18:36:10 +03:00