Add a new Gluster node to existing cluster
Tohu Wabohu
Posted on January 25, 2023
Ansible job for installing GlusterFS package on the new node (node4):
---
- name: Install dependencies for GlusterFS
apt:
name: software-properties-common
update_cache: yes
state: present
- name: Add GlusterFS repo
apt_repository:
repo: ppa:gluster/glusterfs-10
state: present
- name: Install GlusterFS package
apt:
name: glusterfs-server
update_cache: yes
state: present
Start glusterd service if not running:
sudo systemctl start glusterd.service
Discover and register a remote node as a peer in the cluster (run on any existing node in a cluster):
sudo gluster peer probe node4
Confirm peer status with:
sudo gluster peer status
Confirm existing volume status:
gluster volume info
Add a fourth brick to an existing volume my_gluste_vol:
sudo gluster volume add-brick my_gluste_vol replica 4 app01:/my-gluster_brick force
You can check replication status with:
sudo gluster volume heal _my_gluste_vol_ info
💖 💪 🙅 🚩
Tohu Wabohu
Posted on January 25, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
githubcopilot AI Innovations at Microsoft Ignite 2024 What You Need to Know (Part 2)
November 29, 2024