Tomasz Chmielewski
2010-Sep-14 20:29 UTC
[Gluster-users] strange owners issue? ownership reset by the other gluster node
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
Douglas Stanley
2010-Sep-14 20:43 UTC
[Gluster-users] strange owners issue? ownership reset by the other gluster node
Did you do the chown operation to the mounted gluster filesystem, or to the exported by gluster filesystem on one of your storage bricks? What I mean is, is /shared/www what is exported in your glusterfsd.vol, or did you do mount -t glusterfs volfile /shared/www ? Doug On Tue, Sep 14, 2010 at 4:29 PM, Tomasz Chmielewski <mangoo at wpkg.org> wrote:> 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 > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://gluster.org/cgi-bin/mailman/listinfo/gluster-users >-- Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html