Bug 764103 (GLUSTER-2371) - dht: Set owners of directories after performing self-heal as root
Summary: dht: Set owners of directories after performing self-heal as root
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-2371
Product: GlusterFS
Classification: Community
Component: distribute
Version: pre-2.0
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Pranith Kumar K
QA Contact:
URL:
Whiteboard:
: GLUSTER-2531 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-04 02:55 UTC by Pranith Kumar K
Modified: 2011-03-29 09:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

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. ***


Note You need to log in before you can comment on or make changes to this bug.