Bug 765272 (GLUSTER-3540)

Summary: brick name duplication in /etc/glusterd store
Product: [Community] GlusterFS Reporter: Rajesh <rajesh>
Component: glusterdAssignee: Rajesh <rajesh>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: mainlineCC: amarts, gluster-bugs, vagarwal, vbellur
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-11 07:08:44 EDT Type: ---
Regression: --- Mount Type: All
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Rajesh 2011-09-13 03:14:10 EDT
Created a volume "V"
gluster volume info V:

Volume Name: V
Type: Distribute
Status: Started
Number of Bricks: 3
Transport-type: tcp
Brick2: raj-pc:/home/raj/bricks/a-b-c
Brick3: raj-pc:/home/raj/bricks/a/b/c

the last two bricks make entries in /etc/glusterd/vols/V/bricks/ clash (both will have the filename "raj-pc:-home-raj-bricks-a-b-c") and only one remains after overwriting the other (slashes are replaced by hyphens for filenames). Volume mounts fine, but fails almost all Posix compliance tests (so one cannot do any operations on it).

Need another way to store files in /etc/glusterd. Replacing slashes with hyphens( 's/\//-/g' ) does not work in this case.