Proxmox VE: сборка кластера. Это действительно просто.
Сборка кластера в Proxmox задача достаточно простая и при наличии оборудования можно собрать его за считанные минуты.Вся работа по настройке выполнятеся через утилиту pvecm. Инициализация кластера выполняется на любом из узлов.
root@pm-node1:~# pvecm create kowalski
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 ]
Состояние статуса
root@pm-node1:~# pvecm status
Version: 6.2.0
Config Version: 1
Cluster Name: kowalski
Cluster Id: 27803
Cluster Member: Yes
Cluster Generation: 4
Membership state: Cluster-Member
Nodes: 1
Expected votes: 1
Total votes: 1
Node votes: 1
Quorum: 1
Active subsystems: 5
Flags:
Ports Bound: 0
Node name: pm-node1
Node ID: 1
Multicast addresses: 239.192.108.8
Node addresses: 10.101.20.1
Добавляем оставшиеся ноды в кластер.
root@pm-node2:~# pvecm add 10.101.20.1
The authenticity of host '10.101.20.1 (10.101.20.1)' can't be established.
RSA key fingerprint is f0:37:ae:da:83:ec:cc:cd:b8:d3:51:ca:ff:bf:77:a5.
Are you sure you want to continue connecting (yes/no)? yes
root@10.101.20.1's password:
copy corosync auth key
stopping pve-cluster service
Stopping pve cluster filesystem: pve-cluster.
backup old database
Starting pve cluster filesystem : pve-clustercan't create shared ssh key database '/etc/pve/priv/authorized_keys'.
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 web server: apache2 ... waiting .
successfully added node 'pm-node2' to cluster.
Количество узлов в кластере
root@pm-node2:~# pvecm nodes
Node Sts Inc Joined Name
1 M 8 2013-01-09 20:55:32 pm-node1
2 M 4 2013-01-09 20:55:32 pm-node2
3 M 12 2013-01-09 20:55:53 pm-node3
На этом все. Можно переходить к подключению хранилищ и созданию виртуальных машин или конейнеров.
На главную "Virtualizing Linux"
Комментариев нет:
Отправить комментарий