Konfigurasi Data Nusantara

Proxmox

Cluster Proxmox

Salah satu fitur unggulan Proxmox adalah fasilitas Cluster, dimana dengan clustering bisa menggunakan fitur lainnya, yaitu HA dan Ceph.

Ok, kita langsung lanjut lab nya

Untuk membuat cluster, di butuhkan minimal 2 node. Kali ini kita akan mencoba dengan 3 node.

Pertama, tambahkan hostname node lain di /etc/hosts, lakukan hal ini untuk semua node.

Node-1

Create PVE cluster di node1 dengan command

# pvecm create <nama_cluster>

root@node1:~# pvecm create lab2-cluster

Corosync Cluster Engine Authentication key generator.

Gathering 1024 bits for key from /dev/urandom.

Writing corosync key to /etc/corosync/authkey.

Writing corosync config to /etc/pve/corosync.conf

Restart corosync and cluster filesystem

root@node1:~#

 

Node-2

Tambahkan cluster yang sudah dibuat di node1 dengan command

# pvecm add (nama node 1 atau ip node 1)

root@node2:~# pvecm add node1

Please enter superuser (root) password for ‘node1’:

Password for root@node1: ********

Etablishing API connection with host ‘node1’

The authenticity of host ‘node1’ can’t be established.

X509 SHA256 key fingerprint is DC:FF:7A:0D:4D:5C:5A:6C:8F:88:E9:4C:55:76:F6:35:59:CC:14:5E:BD:40:C1:6A:37:38:50:FA:C9:91:E9:36.

Are you sure you want to continue connecting (yes/no)? yes

Login succeeded.

Request addition of this node

Join request OK, finishing setup locally

stopping pve-cluster service

backup old database to ‘/var/lib/pve-cluster/backup/config-1537512847.sql.gz’

waiting for quorum…OK

(re)generate node files

generate new node certificate

merge authorized SSH keys and known hosts

generated new node certificate, restart pveproxy and pvedaemon services

successfully added node ‘node2’ to cluster.

root@node2:~#

Node-3

Lakukan langkah seperti yang dilakukan pada node2

root@node3:~# pvecm add node1

Please enter superuser (root) password for ‘node1’:

Password for root@node1: ********

Etablishing API connection with host ‘node1’

The authenticity of host ‘node1’ can’t be established.

X509 SHA256 key fingerprint is DC:FF:7A:0D:4D:5C:5A:6C:8F:88:E9:4C:55:76:F6:35:59:CC:14:5E:BD:40:C1:6A:37:38:50:FA:C9:91:E9:36.

Are you sure you want to continue connecting (yes/no)? yes

Login succeeded.

Request addition of this node

Join request OK, finishing setup locally

stopping pve-cluster service

backup old database to ‘/var/lib/pve-cluster/backup/config-1537512933.sql.gz’

waiting for quorum…OK

(re)generate node files

generate new node certificate

merge authorized SSH keys and known hosts

generated new node certificate, restart pveproxy and pvedaemon services

successfully added node ‘node3’ to cluster.

root@node3:~#

Setelah itu, cek di dashboard. Ketiga node sudah menjadi satu cluster

Have any Question or Comment?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.