Bug 764103 (GLUSTER-2371)

Summary: dht: Set owners of directories after performing self-heal as root
Product: [Community] GlusterFS Reporter: Pranith Kumar K <pkarampu>
Component: distributeAssignee: Pranith Kumar K <pkarampu>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: pre-2.0CC: gluster-bugs, lakshmipathi, sdutcher
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Pranith Kumar K 2011-02-04 02:55:02 UTC
pranith @ /mnt/client
15:10:20 :) $ ls -l
total 16
drwxr-xr-x 2 pranith admin 4096 2011-02-02 15:09 1
drwxr-xr-x 2 pranith admin 4096 2011-02-02 15:09 2
drwxr-xr-x 2 pranith admin 4096 2011-02-02 15:09 3
drwxr-xr-x 2 pranith admin 4096 2011-02-02 15:09 4

pranith @ ~
15:10:55 :( $ sudo gluster volume add-brick root-prob  `hostname`:/root-prob1
Add Brick successful

pranith @ ~
15:11:21 :) $ ls -lR /mnt/client
/mnt/client:
total 32
drwxr-xr-x 2 pranith admin 8192 2011-02-02 15:11 1
drwxr-xr-x 2 pranith admin 8192 2011-02-02 15:11 2
drwxr-xr-x 2 pranith admin 8192 2011-02-02 15:11 3
drwxr-xr-x 2 pranith admin 8192 2011-02-02 15:11 4

pranith @ ~
15:11:38 :) $ ls /root-prob1/ -l
total 16
drwxr-xr-x 2 root root 4096 2011-02-02 15:11 1
drwxr-xr-x 2 root root 4096 2011-02-02 15:11 2
drwxr-xr-x 2 root root 4096 2011-02-02 15:11 3
drwxr-xr-x 2 root root 4096 2011-02-02 15:11 4

Comment 1 Anand Avati 2011-02-07 16:33:06 UTC
PATCH: http://patches.gluster.com/patch/6120 in master (cluster/dht: restore attrs of dirs in self-heal)

Comment 2 Lakshmipathi G 2011-03-10 04:13:29 UTC
tested against commit-id "26cedae57d5b7cb8d50ed077ce29c92e30d6e260" 
newly added bricks has correct permissions-
[root@client3 ~]# ls -l /data/laks/dht1
total 40
drwxr-xr-x 2 lakshmipathi root 4096 Mar  9 23:12 1
drwxr-xr-x 2 lakshmipathi root 4096 Mar  9 23:12 2
drwxr-xr-x 2 lakshmipathi root 4096 Mar  9 23:12 3
drwxr-xr-x 2 lakshmipathi root 4096 Mar  9 23:12 4
drwxr-xr-x 2 lakshmipathi root 4096 Mar  9 23:12 5
[root@client3 ~]# ls -l /data/laks/dht2
total 40
drwxr-xr-x 2 lakshmipathi root 4096 Mar  9 23:12 1
drwxr-xr-x 2 lakshmipathi root 4096 Mar  9 23:12 2
drwxr-xr-x 2 lakshmipathi root 4096 Mar  9 23:12 3
drwxr-xr-x 2 lakshmipathi root 4096 Mar  9 23:12 4
drwxr-xr-x 2 lakshmipathi root 4096 Mar  9 23:12 5

Comment 3 shishir gowda 2011-03-29 06:53:53 UTC
*** Bug 2531 has been marked as a duplicate of this bug. ***