pvecm: fix command output formatting

- Remove host name from commands, where it provided no value
- Display new command output for pvecm status
- Shorten command output where unneccessary
- Change migration network example to use CIDR address rather than
  address + netmask

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
This commit is contained in:
Dylan Whyte 2021-09-15 15:36:15 +02:00 committed by Thomas Lamprecht
parent 65a0aa490b
commit 8673c878ce

View File

@ -210,7 +210,7 @@ Join Node to Cluster via Command Line
Log in to the node you want to join into an existing cluster via `ssh`. Log in to the node you want to join into an existing cluster via `ssh`.
---- ----
hp2# pvecm add IP-ADDRESS-CLUSTER # pvecm add IP-ADDRESS-CLUSTER
---- ----
For `IP-ADDRESS-CLUSTER`, use the IP or hostname of an existing cluster node. For `IP-ADDRESS-CLUSTER`, use the IP or hostname of an existing cluster node.
@ -225,14 +225,21 @@ To check the state of the cluster use:
.Cluster status after adding 4 nodes .Cluster status after adding 4 nodes
---- ----
hp2# pvecm status # pvecm status
Cluster information
~~~~~~~~~~~~~~~~~~~
Name: prod-central
Config Version: 3
Transport: knet
Secure auth: on
Quorum information Quorum information
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
Date: Mon Apr 20 12:30:13 2015 Date: Tue Sep 14 11:06:47 2021
Quorum provider: corosync_votequorum Quorum provider: corosync_votequorum
Nodes: 4 Nodes: 4
Node ID: 0x00000001 Node ID: 0x00000001
Ring ID: 1/8 Ring ID: 1.1a8
Quorate: Yes Quorate: Yes
Votequorum information Votequorum information
@ -260,7 +267,7 @@ If you only want a list of all nodes, use:
.List nodes in a cluster .List nodes in a cluster
---- ----
hp2# pvecm nodes # pvecm nodes
Membership information Membership information
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
@ -303,7 +310,7 @@ Log in to a *different* cluster node (not hp4), and issue a `pvecm nodes`
command to identify the node ID to remove: command to identify the node ID to remove:
---- ----
hp1# pvecm nodes hp1# pvecm nodes
Membership information Membership information
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
@ -337,14 +344,7 @@ look something like:
---- ----
hp1# pvecm status hp1# pvecm status
Quorum information ...
~~~~~~~~~~~~~~~~~~
Date: Mon Apr 20 12:44:28 2015
Quorum provider: corosync_votequorum
Nodes: 3
Node ID: 0x00000001
Ring ID: 1/8
Quorate: Yes
Votequorum information Votequorum information
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
@ -1308,8 +1308,7 @@ iface eno1 inet manual
# public network # public network
auto vmbr0 auto vmbr0
iface vmbr0 inet static iface vmbr0 inet static
address 192.X.Y.57 address 192.X.Y.57/24
netmask 255.255.250.0
gateway 192.X.Y.1 gateway 192.X.Y.1
bridge-ports eno1 bridge-ports eno1
bridge-stp off bridge-stp off
@ -1318,14 +1317,12 @@ iface vmbr0 inet static
# cluster network # cluster network
auto eno2 auto eno2
iface eno2 inet static iface eno2 inet static
address 10.1.1.1 address 10.1.1.1/24
netmask 255.255.255.0
# fast network # fast network
auto eno3 auto eno3
iface eno3 inet static iface eno3 inet static
address 10.1.2.1 address 10.1.2.1/24
netmask 255.255.255.0
---- ----
Here, we will use the network 10.1.2.0/24 as a migration network. For Here, we will use the network 10.1.2.0/24 as a migration network. For