Description of problem: ======================= rename Directory (in both case, Destination exists and Destination does not exist), Take a snapshot when rename operation is not completed on all sub-volume. On snapshot restore, lookup heals both directory and ends up having same fid for both source and Directory. Version-Release number of selected component (if applicable): ============================================================= 3.5qa2-0.340.gitc193996.el6_5.x86_64 How reproducible: ================ always Steps to Reproduce: =================== Case 1:- Destination does not exist 1. create Distributed volume, start it and FUSE mount it. 2. create Directory from mount point 3. Rename Directory from mount point(destination does not exist) and make sure you take a snap of volume when Directory is renamed on one or more sub-volume and not on all (mv src dest) 4. stop volume and restore snap 5. mount volume again and send a lookup 6. verify gfid of source and destination Directory in backend Step 6:- [root@OVM5 ~]# getfattr -d -m . -e hex /brick3/*/dest getfattr: Removing leading '/' from absolute path names # file: brick3/1/dest trusted.gfid=0xba51b0e324fc46198cf909727081d4d5 trusted.glusterfs.dht=0x0000000100000000aaaaaaaaffffffff # file: brick3/2/dest trusted.gfid=0xba51b0e324fc46198cf909727081d4d5 trusted.glusterfs.dht=0x00000001000000000000000055555554 # file: brick3/3/dest trusted.gfid=0xba51b0e324fc46198cf909727081d4d5 trusted.glusterfs.dht=0x000000010000000055555555aaaaaaa9 [root@OVM5 ~]# getfattr -d -m . -e hex /brick3/*/src getfattr: Removing leading '/' from absolute path names # file: brick3/1/src trusted.gfid=0xba51b0e324fc46198cf909727081d4d5 trusted.glusterfs.dht=0x0000000100000000aaaaaaaaffffffff # file: brick3/2/src trusted.gfid=0xba51b0e324fc46198cf909727081d4d5 trusted.glusterfs.dht=0x00000001000000000000000055555554 # file: brick3/3/src trusted.gfid=0xba51b0e324fc46198cf909727081d4d5 trusted.glusterfs.dht=0x000000010000000055555555aaaaaaa9 Case 2:- Destination exist 1. create Distributed volume, start it and FUSE mount it. 2. create Directory from mount point 3. Rename Directory from mount point(destination should exist) and make sure you take a snap of volume when Directory is renamed on one or more sub-volume and not on all (mv src dest) 4. stop volume and restore snap 5. mount volume again and send a lookup 6. verify gfid of source and destination Directory in backend Step 6:- [root@OVM5 ~]# getfattr -d -m . -e hex /brick3/*/src getfattr: Removing leading '/' from absolute path names # file: brick3/1/src trusted.gfid=0x2ceac0f928c94437b7b7b985739dc74e trusted.glusterfs.dht=0x0000000100000000aaaaaaaaffffffff # file: brick3/2/src trusted.gfid=0x2ceac0f928c94437b7b7b985739dc74e trusted.glusterfs.dht=0x00000001000000000000000055555554 # file: brick3/3/src trusted.gfid=0x2ceac0f928c94437b7b7b985739dc74e trusted.glusterfs.dht=0x000000010000000055555555aaaaaaa9 [root@OVM5 ~]# getfattr -d -m . -e hex /brick3/*/dest/src getfattr: Removing leading '/' from absolute path names # file: brick3/1/dest/src trusted.gfid=0x2ceac0f928c94437b7b7b985739dc74e trusted.glusterfs.dht=0x0000000100000000aaaaaaaaffffffff # file: brick3/2/dest/src trusted.gfid=0x2ceac0f928c94437b7b7b985739dc74e trusted.glusterfs.dht=0x00000001000000000000000055555554 # file: brick3/3/dest/src trusted.gfid=0x2ceac0f928c94437b7b7b985739dc74e trusted.glusterfs.dht=0x000000010000000055555555aaaaaaa9 Actual results: =============== two directories have same gfid Expected results: ================= gfid should be unique for all Directories
Edited the doc text. Please confirm.
Reviewed doc-text. Its fine.
*** This bug has been marked as a duplicate of bug 1118780 ***