User Tools

Site Tools


informatica:linux:proxmox:cluster

Ponemos las ips de los dos servidores en el /etc/hosts

Creamos el cluster

root@proxmoxescp:~# pvecm create clescorxador
Restarting pve cluster filesystem: pve-cluster[dcdb] notice: wrote new cluster config '/etc/cluster/cluster.conf'
.
Starting cluster: 
   Checking if cluster has been disabled at boot... [  OK  ]
   Checking Network Manager... [  OK  ]
   Global setup... [  OK  ]
   Loading kernel modules... [  OK  ]
   Mounting configfs... [  OK  ]
   Starting cman... [  OK  ]
   Waiting for quorum... [  OK  ]
   Starting fenced... [  OK  ]
   Starting dlm_controld... [  OK  ]
   Tuning DLM kernel config... [  OK  ]
   Unfencing self... [  OK  ]

Desde el segundo nodo, lo añadimos al cluster. No tiene que tener máquinas virtuales.

root@proxmoxescd:~# pvecm add proxmoxescp
The authenticity of host 'proxmoxescp (192.168.1.100)' can't be established.
ECDSA key fingerprint is b9:65:fa:97:6b:92:48:fa:9b:18:cd:89:80:73:cc:cc.
Are you sure you want to continue connecting (yes/no)? yes
root@proxmoxescp's password: 
copy corosync auth key
stopping pve-cluster service
Stopping pve cluster filesystem: pve-cluster.
backup old database
Starting pve cluster filesystem : pve-cluster.
Starting cluster: 
   Checking if cluster has been disabled at boot... [  OK  ]
   Checking Network Manager... [  OK  ]
   Global setup... [  OK  ]
   Loading kernel modules... [  OK  ]
   Mounting configfs... [  OK  ]
   Starting cman... [  OK  ]
   Waiting for quorum... [  OK  ]
   Starting fenced... [  OK  ]
   Starting dlm_controld... [  OK  ]
   Tuning DLM kernel config... [  OK  ]
   Unfencing self... [  OK  ]
generating node certificates
merge known_hosts file
restart services
Restarting PVE Daemon: pvedaemon.
Restarting PVE API Proxy Server: pveproxychannel 2: open failed: connect failed: Connection refused
channel 2: open failed: connect failed: Connection refused
channel 2: open failed: connect failed: Connection refused
channel 2: open failed: connect failed: Connection refused
channel 2: open failed: connect failed: Connection refused
channel 2: open failed: connect failed: Connection refused
.
successfully added node 'proxmoxescd' to cluster.

Podemos ver el estado del cluster:

root@proxmoxescd:~# pvecm status
Version: 6.2.0
Config Version: 2
Cluster Name: clescorxador
Cluster Id: 28136
Cluster Member: Yes
Cluster Generation: 8
Membership state: Cluster-Member
Nodes: 2
Expected votes: 2
Total votes: 2
Node votes: 1
Quorum: 2  
Active subsystems: 5
Flags: 
Ports Bound: 0  
Node name: proxmoxescd
Node ID: 2
Multicast addresses: 239.192.109.86 
Node addresses: 192.168.1.200 
informatica/linux/proxmox/cluster.txt · Last modified: 2015/04/13 20:19 by 127.0.0.1