[Gluster-devel] ownership of link file changed to root:root after reboot brick service

huangql huangql at ihep.ac.cn
Wed Jan 16 06:53:40 UTC 2013



Dear all,

       I have encountered a strange problem that the ownership of linkto file was changed to root:root after we reboot server. And I reproduced the problem many times.

For example: ff_2

First, the new created file: ff_2

[root at test02 ~]# ll /testfs/mydir
total 50941
-rw-rw-r-- 1 test  test  5242880 Jan 12 11:31 f_3
-rw-rw-r-- 1 test  test 5242880 Jan 12 11:31 f_4
-rw-rw-r-- 1 test  test    0 Jan 12 11:38 ff_1
-rw-rw-r-- 1 test test 5242880 Jan 13 00:43 ff_2

>From server side, we have 2 bricks and we can see the ff_2 status:


brick1:

-rw-rw-r-- 1 test test  0 Jan 12 11:38 ff_1
---------T 1 test test   0 Jan 13 00:43 ff_2

brick2:


-rw-rw-r-- 1 test test 5242880 Jan 12 11:31 f_3
-rw-rw-r-- 1 test test 5242880 Jan 12 11:31 f_4
-rw-rw-r-- 1 test test 5242880 Jan 13 00:43 ff_2

After we restart gluterd service, we can see the ownership of ff_2 was changed to root:root.

brick1:

-rw-rw-r-- 1 test test  0 Jan 12 11:38 ff_1
---------T 1 test test   0 Jan 13 00:43 ff_2

brick2:


-rw-rw-r-- 1 test test 5242880 Jan 12 11:31 f_3
-rw-rw-r-- 1 test test 5242880 Jan 12 11:31 f_4
-rw-rw-r-- 1 root root 5242880 Jan 13 00:43 ff_2


Then, we can get the file list on client side:

[root at test02 ~]# ll /testfs/mydir
total 50941
-rw-rw-r-- 1 test  test  5242880 Jan 12 11:31 f_3
-rw-rw-r-- 1 test  test 5242880 Jan 12 11:31 f_4
-rw-rw-r-- 1 test  test    0 Jan 12 11:38 ff_1
-rw-rw-r-- 1 root  root 5242880 Jan 13 00:43 ff_2

 this problem has stucked me for days. Could someone  give us tips, thank you very much.


Cheers,
Qiulan


2013-01-15 



huangql 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20130116/57fb1b0a/attachment-0001.html>


More information about the Gluster-devel mailing list