Commit b8a3001c authored by Paul Seward's avatar Paul Seward

Docs: Fixed some markdown, and highlighted some broken stuff to be fixed later

parent 8f5c5ee9
......@@ -25,7 +25,10 @@ gluster peer detach <nodename>
## Removing a node from the cluster:
```
NODENAME=gluster-cluster-node-01
sudo gluster volume remove-brick gv0 replica $(sudo gluster peer status | awk -e '/Number of Peers/ { print $4 }') ${NODENAME}:/gluster/brick force
### Don't do this, it was based on a misunderstanding of replica counts
### You probably want to check the current replica count, and pick a "sensible" value for the replica parameter
### That "sensible" value is unlikely to be more than 2, unless you know what you're doing!
### sudo gluster volume remove-brick gv0 replica $(sudo gluster peer status | awk -e '/Number of Peers/ { print $4 }') ${NODENAME}:/gluster/brick force
sudo gluster peer detach ${NODENAME}
```
......@@ -35,7 +38,10 @@ sudo gluster peer detach ${NODENAME}
NODENAME=gluster-cluster-node-01
sudo gluster peer probe ${NODENAME}
sudo gluster volume add-brick gv0 replica $(sudo gluster peer status | awk -e '/Number of Peers/ { print $4+1 }') <nodename>:/gluster/brick
### Don't do this, it was based on a misunderstanding of replica counts
### You probably want to check the current replica count, and pick a "sensible" value for the replica parameter
### That "sensible" value is unlikely to be more than 2, unless you know what you're doing!
### sudo gluster volume add-brick gv0 replica $(sudo gluster peer status | awk -e '/Number of Peers/ { print $4+1 }') <nodename>:/gluster/brick
```
## Rejoining a node to the cluster:
......@@ -58,12 +64,12 @@ sudo gluster volume add-brick gv0 replica $(sudo gluster peer status | awk -e '/
### Split-Brain
* File split-brain can be resolved with one of the following:
** `gluster volume heal <VOLNAME> split-brain bigger-file <FILE>`
** `gluster volume heal <VOLNAME> split-brain latest-mtime <FILE>`
** `gluster volume heal <VOLNAME> split-brain source-brick <HOSTNAME:BRICKNAME> <FILE>`
* `gluster volume heal <VOLNAME> split-brain bigger-file <FILE>`
* `gluster volume heal <VOLNAME> split-brain latest-mtime <FILE>`
* `gluster volume heal <VOLNAME> split-brain source-brick <HOSTNAME:BRICKNAME> <FILE>`
* You can select one replica as the source for all files (eg for if two nodes die at once)
** `gluster volume heal <VOLNAME> split-brain source-brick <HOSTNAME:BRICKNAME>`
* `gluster volume heal <VOLNAME> split-brain source-brick <HOSTNAME:BRICKNAME>`
* `/var/log/gluster/mnt-gluster.log` contains info about which files are involved in a directory split-brain
* `sudo cat /var/log/glusterfs/mnt-gluster.log | grep 108008 | awk '{print $12}' | sort | uniq`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment