On one of the servers with GlusterFS, I use USB-Disks in a replicated GlusterFS volume. Although once in a while a disk just "dies" and using "replace brick" command is not an option.
So I figured out the following steps:
- Stop the GlusterFS Daemon
- Remove the faulty brick
- Configure the new brick to mount on the same mountpoint as the old one
- Start GlusterFS Daemon
- Trigger a self-heal on the GlusterFS Volume
- Get coffee/..
- The new brick will contain the data
Please note, this only works for replicated volumes!