glusterd does not fully clean up the volume store if there are non-empty directories present, during 'volume delete'.
a. Volume delete fails on the node where volume store cleanup fails.
b. Subsequent attempts to restart glusterd fail.
Rename the volume directory path to a new location
<working-dir>/trash/<volume-id>.deleted, and then go on to clean up its contents. The volume is considered deleted once rename() succeeds, irrespective of whether the cleanup succeeds or not.
With this change, the problem is fixed IF moving the volume directory to "trash" is successful.