Red Hat Bugzilla – Bug 829675
GlusterFS: Can't remove and re-add the same brick
Last modified: 2015-11-03 18:04:37 EST
Created attachment 590141 [details]
* Create a brick on host:/dir
* Remove the brick
* Try to create the same brick
* 2nd create fails because the brick already exists, even though the brick was removed and doesn't appear in "gluster volume info".
Created attachment 590142 [details]
There are some procedures explained in https://access.redhat.com/knowledge/solutions/135343 that can help.
The (depending on view point) bug here, is that there are still some extended attributes set on the directory of the brick. After removing these, you should be able to re-use the existing brick.
Bug 765572 mentions that a script can be used to remove the xattrs.
A description of it's usage can be found here:
Bug 812214#c10 contains a description about this problem as well. Closing this as a duplicate.
*** This bug has been marked as a duplicate of bug 812214 ***