RB PI for third node

mir

Famous Member
Apr 14, 2012
3,568
127
133
Copenhagen, Denmark
I have applied a RPI 3 as a third node for quorum-only to my cluster and it has been running stable for 3 weeks. I therefore consider it ready to release install instruction into the wild;)

Step guide:
Code:
0) Login as root on your Pi
1) Install Debian Jessie (Standard system utilities and SSH server)
2) echo "deb http://ftp.debian.org/debian jessie-backports main contrib" > /etc/apt/sources.list.d/jessie-backports.list
3) gpg --keyserver pgpkeys.mit.edu --recv-key 7638D0442B90D010 && gpg -a --export 7638D0442B90D010 | apt-key add -
4) gpg --keyserver pgpkeys.mit.edu --recv-key 8B48AD6246925553 && gpg -a --export 8B48AD6246925553 | apt-key add -
5) apt-get update
6) apt-get -t jessie-backports install corosync
7) sed -i 's/without-password/yes/' /etc/ssh/sshd_config && systemctl restart ssh
8) scp <ip of pve node>:/etc/corosync/* /etc/corosync
9) add new node under nodelist in /etc/corosync.conf (copy one of the current and adjust)
10) for NODE in <ip of pve node 1> <ip of pve node 2>; do
      scp /etc/corosync/corosync.conf $NODE:/etc/corosync
   done
11) ssh <ip of pve node 1> systemctl restart corosync
12) ssh <ip of pve node 2> systemctl restart corosync
13) systemctl start corosync
14) run corosync-quorumtool to check all three nodes er registret as online and that there is quorum: Quorate:          Yes
pve-manager is missing so don't add to /etc/pve/corosync.conf.

PS. if new node is added pve-manager will overwrite /etc/corosync/corosync.conf
PPS. I give no guaranty so everything above is at your own risk.
 
Nice how-to !

I have it working as well for few days (RPI1B) but I've finally chosen the "real PVE 3rd node" based on VM solution (using phpvirtualbox hosted on a NAS) which provides me more options to validate PM updates, test packages, secured by snapshots.
 
I installed corosync 2.3.5 under Ubuntu 16.04 32bit on old laptop and configured like in the howto. On all nodes i see

Quorum information
------------------
Date: Sat Apr 1 23:41:16 2017
Quorum provider: corosync_votequorum
Nodes: 3
Node ID: 3
Ring ID: 112
Quorate: Yes

Votequorum information
----------------------
Expected votes: 3
Highest expected: 3
Total votes: 3
Quorum: 2
Flags: Quorate

Membership information
----------------------
Nodeid Votes Name
1 1 192.168.35.10
2 1 192.168.35.20
3 1 192.168.35.30 (local)

When I login to the PVE4.4 WebUI the 3rd node is shown as offline. Can I get this status to online somehow ?
 
Hello,

No, with corosync configured, you just have a running cluster member used for quorum. But for pve the node is not online as no pve process are actually started.

If you want to have a 'running' lightweight node, you need to go down the virtual pve path and install a full pve instance on a vm.
And this has to be done outside of your two physical nodes of course for obvious reason.

Cheers
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!