[Gluster-users] strange owners issue? ownership reset by the other gluster node

Tomasz Chmielewski mangoo at wpkg.org
Tue Sep 14 20:29:52 UTC 2010


I have a /shared/www/example.com directory, being set up on a mirrored 
glusterfs filesystem (two servers).

I have a /shared/www/example.com/images/ directory there, owned by 
root:root.


Now, I want the webserver to be able to write to this directory: simple, 
just make the webserver the owner:

server1# chown www-data:www-data images

server1# ls -ld images
drwxr-xr-x 2 www-data www-data 4096 2010-09-14 22:19 images


Let's see what server2 thinks about it:

server2# ls -ld images
drwxr-xr-x 2 root root 4096 2010-09-14 22:19 images


Oops, it's back to root!


Now, what does server1 show?

server1# ls -ld images
drwxr-xr-x 2 root root 4096 2010-09-14 22:19 images

As we can see, it's root again - ownership was reset, although I didn't 
use "chown root:root". As a result, the webserver can't upload files 
(or, any other process which would need a similar operation), although I 
initially did "chown www-data:www-data images" on one of the servers.



I'm using glusterfs 3.0.5 on Ubuntu 10.04.


-- 
Tomasz Chmielewski
http://wpkg.org



More information about the Gluster-users mailing list