Difference between revisions of "ProxMox: Membuat Cluster"

From OnnoWiki
Jump to navigation Jump to search
Line 36: Line 36:
  
 
===Tambahkan node ke master===
 
===Tambahkan node ke master===
Login melalui ssh ke Proxmox VE server kedua. Please note, the node should not have any VM´s. (If yes you will get conflicts with identical VMID´s - to workaround, use vzdump to backup and to restore to a different VMID after the cluster configuration).  
+
Login melalui ssh ke Proxmox VE server kedua. Perlu di catat, pada proses ini node harus tidak ada VM yang jalan. Jika ada VM yang jalan maka kemungkinan kita akan mendapatkan conflict VMID yang sama, untuk mengatasi hal ini gunakan vzdump untuk membackup dan untuk merestore berbagai VMID sesudah konfigurasi cluster.
  
'''Join a node to the master:'''
+
'''Mengintegrasikan node ke master:'''
 
<pre>pveca -a -h IP-ADDRESS-MASTER</pre>
 
<pre>pveca -a -h IP-ADDRESS-MASTER</pre>
To check the state of cluster:
+
Untuk mencek status cluster:
 
<pre>pveca -l</pre>
 
<pre>pveca -l</pre>
  
'''Display the state of cluster:'''
+
'''Tampilkan status dari cluster:'''
 
<pre>pveca -l
 
<pre>pveca -l
 
CID----IPADDRESS----ROLE-STATE--------UPTIME---LOAD----MEM---ROOT---DATA
 
CID----IPADDRESS----ROLE-STATE--------UPTIME---LOAD----MEM---ROOT---DATA
Line 50: Line 50:
 
  3 : 192.168.7.105  N    A          00:13  1.41    22%    3%    15%
 
  3 : 192.168.7.105  N    A          00:13  1.41    22%    3%    15%
 
  4 : 192.168.7.106  N    A          00:05  0.54    17%    3%    3%</pre>
 
  4 : 192.168.7.106  N    A          00:05  0.54    17%    3%    3%</pre>
==Working with Proxmox VE Cluster==
+
 
Now, you can start creating Virtual Machines on Cluster nodes by using the [[Central Web-based Management]] on the master.
+
==Bekerja dengan Proxmox VE Cluster==
 +
Sekarang kita dapat mulai membuat Virtual Machine di node cluster dengan menggunakan [[Central Web-based Management]] di master.
  
 
==Troubleshooting==
 
==Troubleshooting==
You can manually check the cluster configuration files on each node. Before you edit these files, stop the cluster sync and tunnel service via web interface.
+
Kita dapat secara manual men-cek file konfigurasi cluster di setiap node. Sebelum mengedit file ini, sebaiknya di hentikan layanan cluster sync & tunnel melalu interface web.
 
<pre>nano /etc/pve/cluster.cfg</pre>
 
<pre>nano /etc/pve/cluster.cfg</pre>
  

Revision as of 16:26, 1 July 2011

Proxmox VE Cluster memungkinkan untuk melakukan manajemen terpusat dari banyak server fisik. Sebuah Proxmox VE Cluster terdiri dari minimal satu master dan beberapa node (minimal satu master dan satu node).

Fitur Utama

Fitur utama ProxMox VE Cluster adalah

  • Manajemen terpusat melalui web.
  • satu login dan password untuk mengakses semua node dan guest
  • Console dapat melihat semua Virtual Machines
  • Melakukan migrasi dari virtual machine antara berbagai mesin yang secara fisik berbeda.
  • Sinkronisasi Virtual Appliance template store

Membuat Proxmox VE Cluster

Pertama-tama, instal dua Proxmox VE servers seperti biasa. Pastikan masing-masing Proxmox VE server mempunyai hostname yang unik, karena default-nya semua server akan mempunyai hostname yang sama.

Saat ini, pembuatan cluster hanya dapat dilakukan melalui consol, anda dapat login ke Proxmox VE server melalui ssh.

Semua konfigurasi dapat dilakukan melalui "pveca", PVE Cluster Administration Toolkit

USAGE: pveca -l             # memperlihatkan status cluster
       pveca -c             # membuat cluster baru dengan localhost sebagai master
       pveca -s [-h IP]     # sync konfigurasi cluster dari master (atau IP)
       pveca -d ID          # delete node
       pveca -a [-h IP]     # tambahkan sebuah node baru ke cluster
       pveca -m             # memaksa local node untuk menjadi master

Mendefinisikan Master

Login melalui ssh ke Proxmox VE server pertama.

Membuat master:

pveca -c

Check status cluster:

pveca -l

Tambahkan node ke master

Login melalui ssh ke Proxmox VE server kedua. Perlu di catat, pada proses ini node harus tidak ada VM yang jalan. Jika ada VM yang jalan maka kemungkinan kita akan mendapatkan conflict VMID yang sama, untuk mengatasi hal ini gunakan vzdump untuk membackup dan untuk merestore berbagai VMID sesudah konfigurasi cluster.

Mengintegrasikan node ke master:

pveca -a -h IP-ADDRESS-MASTER

Untuk mencek status cluster:

pveca -l

Tampilkan status dari cluster:

pveca -l
CID----IPADDRESS----ROLE-STATE--------UPTIME---LOAD----MEM---ROOT---DATA
 1 : 192.168.7.104   M     A    5 days 01:43   0.54    20%     1%     4%
 2 : 192.168.7.103   N     A    2 days 05:02   0.04    26%     5%    29%
 3 : 192.168.7.105   N     A           00:13   1.41    22%     3%    15%
 4 : 192.168.7.106   N     A           00:05   0.54    17%     3%     3%

Bekerja dengan Proxmox VE Cluster

Sekarang kita dapat mulai membuat Virtual Machine di node cluster dengan menggunakan Central Web-based Management di master.

Troubleshooting

Kita dapat secara manual men-cek file konfigurasi cluster di setiap node. Sebelum mengedit file ini, sebaiknya di hentikan layanan cluster sync & tunnel melalu interface web.

nano /etc/pve/cluster.cfg

Also check if the following file are still up to date, if not because your keys got updated just remove/adapt it.

/root/.ssh/known_hosts

Delete and recreate a cluster configuration

Sometimes it's quicker to delete and recreate your cluster configuration than it is to try and figure out what went wrong. The process includes stoping the cluster sync and tunnel service, deleting the existing cluster config and creating/joining the new cluster. The steps can be found below:

  • Note: If your ssh host keys have changed you may need to delete them on each host before you begin:
rm /root/.ssh/known_hosts
  • Jot down the IP of the new master node.
  • Run on new master node:
/etc/init.d/pvemirror stop
/etc/init.d/pvetunnel stop
rm /etc/pve/cluster.cfg
pveca -c
  • Verify that the cluster has been created:
pveca -l
  • Run on nodes you wish to add to the new cluster.
    • Note: Change IP-ADDRESS-MASTER to the IP of the new master node.
/etc/init.d/pvemirror stop
/etc/init.d/pvetunnel stop
rm /etc/pve/cluster.cfg
pveca -a -h IP-ADDRESS-MASTER
  • Verify that the node has been added to the new cluster:
pveca -l

Video Tutorials

Tutorials


Referensi

Pranala Menarik