Remove node from volume
The following script will assume the following:
- Gluster volume name:
gfsvolume - Current replication: 4
- New replication: 3
- Node to remove: node-03
- Current node mounted at
/mnt/usbdata/data1
Script can be run on any machine in the peer list.
## To get volume name and mount location
sudo gluster volume status
## To remove volume from specific node
sudo gluster volume remove-brick gfsvolume replica 3 node-03:/mnt/usbdata/data1 force
## Run the volume status to check if the mount is still onkube
sudo gluster volume status
Remove node from peer
## Detaching node from peer list
sudo gluster peer detach node-03