Replace a failing brick in a replicated GlusterFS Volume | Just my blog

/dev/random

Replace a failing brick in a replicated GlusterFS Volume

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:



  1. Stop the GlusterFS Daemon

  2. Remove the faulty brick

  3. Configure the new brick to mount on the same mountpoint as the old one

  4. Start GlusterFS Daemon

  5. Trigger a self-heal on the GlusterFS Volume

  6. Get coffee/..

  7. The new brick will contain the data :-)


Please note, this only works for replicated volumes!

 


  • Social

  • By continuing to use the site, you agree to the use of cookies. more information

    The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible and enable advertising to provide you free content. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

    Close