[Gluster-users] Unable to remove/replace dead brick

Nilesh Govindrajan
Sat, 12 Jul 2014 01:50:13 -0000

On Fri, 2014-07-11 at 19:00 +0530, Nilesh Govindrajan
wrote:
> sto1 ~ # gluster volume remove-brick www-common replica 1
> sto2:/data/gluster/www-common
> Removing brick(s) can result in data loss. Do you want to Continue? (y/n) y
> volume remove-brick commit force: failed: Incorrect brick
> sto2:/data/gluster/www-common for volume www-common
>
> sto1 ~ # gluster volume replace-brick www-common
> sto2:/data/gluster/www-common sto2:/data/gluster/www-common commit
> force
> volume replace-brick: failed: brick: sto2:/data/gluster/www-common
> does not exist in volume: www-common
>
>
> The real objective was to change hostname, but this messed up somehow.

Never mind, I managed to fix it by editing files manually
in /var/lib/glusterd.