PROXMOX & GlusterFS - HA Cluster with shared redundant storage

TOPOLOGY:

PREPARATION

After installing proxmox on our 3 nodes we need to edit /hosts file on each node and add other nodes names and IP:

in /etc/hosts

10.0.0.1 proxmox01.our.domain.com proxmox01
10.0.0.2 proxmox02.our.domain.com proxmox02
10.0.0.3 proxmox03.our.domain.com proxmox03


Update:
apt-get update

Install NTP Server:
apt-get install ntp

CREATE OUR CLUSTER


on PROXMOX01
 pvecm create YOUR-CLUSTER-NAME

Test it: 
pvecm status

Add other nodes: 

on PROXMOX02 
pvecm add IP-ADDRESS-OF-THE-CLUSTER (10.0.0.1)

on PROXMOX03 
pvecm add IP-ADDRESS-OF-THE-CLUSTER (10.0.0.1)

Test it: 
pvecm status

CONFIGURE GLUSTERFS

Now we need to install glusterfs so on each node we do:
apt-get install glusterfs-server
service glusterfs-server start

from PROXMOX01:
gluster peer probe proxmox02 

from PROXMOX02:
gluster peer probe proxmox01 

from PROXMOX01:
gluster peer probe proxmox03

On each node:
mkdir -p /gluster/brick1

In proxmox web gui:
Datacenter->Storage->Add->Directory 
ID: name it
Directory: /gluster/volume
Content:Disk image

Important: (Tick Shared)

in PROXMOX01:
gluster volume create gluster-vol1 replica 3 proxmox01:/gluster/brick1 proxmox02:/gluster/brick1 proxmox03:/gluster/brick1

gluster volume gluster-vol1 start

in PROXMOX01:
mount -t glusterfs proxmox01:gluster-vol1 /gluster/volume/

in PROXMOX02:
mount -t glusterfs proxmox02:gluster-vol1 /gluster/volume/

in PROXMOX03:
mount -t glusterfs proxmox03:gluster-vol1 /gluster/volume/

FINAL CONFIGURATION

Now in web gui we need to create  HA->Group and add all hosts to it and than create HA->Resources (vm's we want to be migrated during HA process)

Thats all :)



Komentarze

Popularne posty z tego bloga

Site 2 Site tunnel with multiple identical subnets on remote sites - without virtual hosts ( Route Based VPN )

iSCSI Target in Ubuntu 16.04LTS with multipath as datastore for VMware