Objectif#
Mettre en cluster des nœuds Proxmox en isolant le trafic Corosync sur un VLAN dédié (ex. VLAN 3000) transporté sur un bond LACP. Dans un premier temps il faut mettre à jour les pve grâce au script post install :
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/post-pve-install.sh)"- dépôt entreprise :
n - dépôt no-subscription :
y - dépôt test :
n - dépôt ceph entrprise :
n - activer la HA :
y
1) Réseau : bond LACP + VLAN Corosync#
À faire sur chaque nœud (adapter les noms d’interfaces et les IP).
- Créer le bond (LACP / 802.3ad)
- Créer l’interface VLAN pour Corosync (ex.
bond1.3000) - Assigner une IP Corosync statique
Exemple /etc/network/interfaces :
auto bond1
iface bond1 inet manual
bond-slaves nic2 nic3
bond-miimon 100
bond-mode 802.3ad
bond-xmit-hash-policy layer2+3
# BOND POUR COROSYNC
auto bond1.3000
iface bond1.3000 inet static
address ip_corosync/24
# BOND TAG POUR COROSYNCCôté switch#
- Configurer le trunk LACP vers le(s) serveur(s)
- Tagguer le VLAN 3000 sur ce trunk
2) Résolution de noms : /etc/hosts#
Adapter toutes les IP (management + corosync) et les FQDN si besoin.
127.0.0.1 localhost.localdomain localhost
IP_MGMTPVE1 pve01.domain pve01
IP_MGMTPVE2 pve02.domain pve02
IP_MGMTPVE3 pve03.domain pve03
IP_COROSYNCPVE1 pve01.domain pve01
IP_COROSYNCPVE2 pve02.domain pve02
IP_COROSYNCPVE3 pve03.domain pve03
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts3) Création / jointure du cluster (GUI Proxmox)#
Sur PVE01 (création)#
DatacenterClusterCreateChoisir l’IP CorosyncJoin InformationCopy Information
Sur PVE02 / PVE03 (jointure)#
DatacenterClusterJoin ClusterColler les informationsChoisir l’IP Corosync
