[SOLVED] Need some advice for setting up multinode HA cluster

cmonty14

Renowned Member
Mar 4, 2014
344
5
83
Hi,
I want to setup a multinode HA cluster.
I've completed OS and PVE installation and configured separate networks; this results in the following /etc/hosts:
root@ld3955:~# more /etc/hosts
127.0.0.1 localhost.localdomain localhost
10.97.206.91 ld3955.example.com ld3955

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

# corosync network hosts ring1
172.16.0.1 ld3955-corosync1
172.16.0.2 ld3976-corosync1
172.16.0.3 ld5505-corosync1
172.16.0.4 ld5506-corosync1
172.16.0.5 ld5507-corosync1
172.16.0.6 ld5508-corosync1
172.16.0.7 ld4257-corosync1
172.16.0.8 ld4464-corosync1
172.16.0.9 ld4465-corosync1

# corosync network hosts ring2
172.16.1.1 ld3955-corosync2
172.16.1.2 ld3976-corosync2
172.16.1.3 ld5505-corosync2
172.16.1.4 ld5506-corosync2
172.16.1.5 ld5507-corosync2
172.16.1.6 ld5508-corosync2
172.16.1.7 ld4257-corosync2
172.16.1.8 ld4464-corosync2
172.16.1.9 ld4465-corosync2

# ceph cluster network hosts
192.168.1.1 ld3955-ceph
192.168.1.2 ld3976-ceph
192.168.1.3 ld5505-ceph
192.168.1.4 ld5506-ceph
192.168.1.5 ld5507-ceph
192.168.1.6 ld5508-ceph
192.168.1.7 ld4257-ceph
192.168.1.8 ld4464-ceph
192.168.1.9 ld4465-ceph


What is the appropriate command to setup PVE cluster on (first) node ld3955?
How must I add all other nodes to this cluster?
Please advise.

In my understanding this command is wrong: pvecm create pveclstr01 --ring0_addr 172.16.0.1 --ring1_addr 172.16.1.1

THX
 
Right.
I managed to add all nodes to the cluster successfully using this command:
pvecm add ld3955-corosync1 --ring0_addr 172.16.0.x --ring1_addr 172.16.1.x

root@ld3955:~# pvecm status
Quorum information
------------------
Date: Wed May 22 14:53:39 2019
Quorum provider: corosync_votequorum
Nodes: 6
Node ID: 0x00000001
Ring ID: 1/24
Quorate: Yes

Votequorum information
----------------------
Expected votes: 6
Highest expected: 6
Total votes: 6
Quorum: 4
Flags: Quorate

Membership information
----------------------
Nodeid Votes Name
0x00000001 1 172.16.0.1 (local)
0x00000002 1 172.16.0.2
0x00000003 1 172.16.0.3
0x00000004 1 172.16.0.4
0x00000005 1 172.16.0.5
0x00000006 1 172.16.0.6