Re: [Gluster-users] set owner:group on root of volume

2017-07-24 Thread mabi
I can now also answer your question 3) so I just did a stop and start of the 
volume and yes the owner and group of the root directory of my volume gets set 
again correctly to UID/GID 1000. The problem is that it is now just a mater of 
time that it somehow gets reseted back to root:root...

>  Original Message 
> Subject: Re: [Gluster-users] set owner:group on root of volume
> Local Time: July 23, 2017 8:15 PM
> UTC Time: July 23, 2017 6:15 PM
> From: vbel...@redhat.com
> To: mabi <m...@protonmail.ch>, Gluster Users <gluster-users@gluster.org>
> On 07/20/2017 03:13 PM, mabi wrote:
>> Anyone has an idea? or shall I open a bug for that?
> This is an interesting problem. A few questions:
> 1. Is there any chance that one of your applications does a chown on the
> root?
> 2. Do you notice any logs related to metadata self-heal on "/" in the
> gluster logs?
> 3. Does the ownership of all bricks reset to custom uid/gid after every
> restart of the volume?
> Thanks,
> Vijay
>>
>>
>>>  Original Message 
>>> Subject: Re: set owner:group on root of volume
>>> Local Time: July 18, 2017 3:46 PM
>>> UTC Time: July 18, 2017 1:46 PM
>>> From: m...@protonmail.ch
>>> To: Gluster Users <gluster-users@gluster.org>
>>>
>>> Unfortunately the root directory of my volume still get its owner and
>>> group resetted to root. Can someone explain why or help with this
>>> issue? I need it to be set to UID/GID 1000 and stay like that.
>>>
>>> Thanks
>>>
>>>
>>>
>>>>  Original Message 
>>>> Subject: Re: set owner:group on root of volume
>>>> Local Time: July 11, 2017 9:33 PM
>>>> UTC Time: July 11, 2017 7:33 PM
>>>> From: m...@protonmail.ch
>>>> To: Gluster Users <gluster-users@gluster.org>
>>>>
>>>> Just found out I needed to set following two parameters:
>>>>
>>>> gluster volume set myvol storage.owner-uid 1000
>>>> gluster volume set myvol storage.owner-gid 1000
>>>>
>>>>
>>>>
>>>> In case that helps any one else :)
>>>>
>>>>>  Original Message 
>>>>> Subject: set owner:group on root of volume
>>>>> Local Time: July 11, 2017 8:15 PM
>>>>> UTC Time: July 11, 2017 6:15 PM
>>>>> From: m...@protonmail.ch
>>>>> To: Gluster Users <gluster-users@gluster.org>
>>>>>
>>>>> Hi,
>>>>>
>>>>> By default the owner and group of a GlusterFS seems to be root:root
>>>>> now I changed this by first mounting my volume using glusterfs/fuse
>>>>> on a client and did the following
>>>>>
>>>>> chmod 1000:1000 /mnt/myglustervolume
>>>>>
>>>>> This changed correctly the owner and group to UID/GID 1000 of my
>>>>> volume but like 1-2 hours later it was back to root:root. I tried
>>>>> again and this happens again.
>>>>>
>>>>> Am I doing something wrong here? I am using GlusterFS 3.8.11 on
>>>>> Debian 8.
>>>>>
>>>>> Regards,
>>>>> M.
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>>
>> ___
>> Gluster-users mailing list
>> Gluster-users@gluster.org
>> http://lists.gluster.org/mailman/listinfo/gluster-users
>>___
Gluster-users mailing list
Gluster-users@gluster.org
http://lists.gluster.org/mailman/listinfo/gluster-users

Re: [Gluster-users] set owner:group on root of volume

2017-07-23 Thread mabi
Hi Vijay,
Thanks for your reply. Below the answers to your 3 questions.
1) Rather unlikely as my application does not run as root. That's the point my 
application runs as UID/GID 1000:1000 and the root of my GlusterFS volume needs 
to be owned by 1000 so that my application can write there.
2) Nothing in glustershd.log and there was not even a glfsheal-myvolume.log 
file until I ran "gluster volume heal myvolume info".
3) IIRC yes it does but I will have to test that again tomorrow as I now ran 
again manually a chown on the root of my volume through a fuse client.
Regards,
M.

>  Original Message ----
> Subject: Re: [Gluster-users] set owner:group on root of volume
> Local Time: July 23, 2017 8:15 PM
> UTC Time: July 23, 2017 6:15 PM
> From: vbel...@redhat.com
> To: mabi <m...@protonmail.ch>, Gluster Users <gluster-users@gluster.org>
> On 07/20/2017 03:13 PM, mabi wrote:
>> Anyone has an idea? or shall I open a bug for that?
> This is an interesting problem. A few questions:
> 1. Is there any chance that one of your applications does a chown on the
> root?
> 2. Do you notice any logs related to metadata self-heal on "/" in the
> gluster logs?
> 3. Does the ownership of all bricks reset to custom uid/gid after every
> restart of the volume?
> Thanks,
> Vijay
>>
>>
>>>  Original Message 
>>> Subject: Re: set owner:group on root of volume
>>> Local Time: July 18, 2017 3:46 PM
>>> UTC Time: July 18, 2017 1:46 PM
>>> From: m...@protonmail.ch
>>> To: Gluster Users <gluster-users@gluster.org>
>>>
>>> Unfortunately the root directory of my volume still get its owner and
>>> group resetted to root. Can someone explain why or help with this
>>> issue? I need it to be set to UID/GID 1000 and stay like that.
>>>
>>> Thanks
>>>
>>>
>>>
>>>>  Original Message 
>>>> Subject: Re: set owner:group on root of volume
>>>> Local Time: July 11, 2017 9:33 PM
>>>> UTC Time: July 11, 2017 7:33 PM
>>>> From: m...@protonmail.ch
>>>> To: Gluster Users <gluster-users@gluster.org>
>>>>
>>>> Just found out I needed to set following two parameters:
>>>>
>>>> gluster volume set myvol storage.owner-uid 1000
>>>> gluster volume set myvol storage.owner-gid 1000
>>>>
>>>>
>>>>
>>>> In case that helps any one else :)
>>>>
>>>>>  Original Message 
>>>>> Subject: set owner:group on root of volume
>>>>> Local Time: July 11, 2017 8:15 PM
>>>>> UTC Time: July 11, 2017 6:15 PM
>>>>> From: m...@protonmail.ch
>>>>> To: Gluster Users <gluster-users@gluster.org>
>>>>>
>>>>> Hi,
>>>>>
>>>>> By default the owner and group of a GlusterFS seems to be root:root
>>>>> now I changed this by first mounting my volume using glusterfs/fuse
>>>>> on a client and did the following
>>>>>
>>>>> chmod 1000:1000 /mnt/myglustervolume
>>>>>
>>>>> This changed correctly the owner and group to UID/GID 1000 of my
>>>>> volume but like 1-2 hours later it was back to root:root. I tried
>>>>> again and this happens again.
>>>>>
>>>>> Am I doing something wrong here? I am using GlusterFS 3.8.11 on
>>>>> Debian 8.
>>>>>
>>>>> Regards,
>>>>> M.
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>>
>> ___
>> Gluster-users mailing list
>> Gluster-users@gluster.org
>> http://lists.gluster.org/mailman/listinfo/gluster-users
>>___
Gluster-users mailing list
Gluster-users@gluster.org
http://lists.gluster.org/mailman/listinfo/gluster-users

Re: [Gluster-users] set owner:group on root of volume

2017-07-23 Thread Vijay Bellur

On 07/20/2017 03:13 PM, mabi wrote:

Anyone has an idea? or shall I open a bug for that?


This is an interesting problem. A few questions:

1. Is there any chance that one of your applications does a chown on the 
root?


2. Do you notice any logs related to metadata self-heal on '/' in the 
gluster logs?


3. Does the ownership of all bricks reset to custom uid/gid after every 
restart of the volume?


Thanks,
Vijay





 Original Message 
Subject: Re: set owner:group on root of volume
Local Time: July 18, 2017 3:46 PM
UTC Time: July 18, 2017 1:46 PM
From: m...@protonmail.ch
To: Gluster Users 

Unfortunately the root directory of my volume still get its owner and
group resetted to root. Can someone explain why or help with this
issue? I need it to be set to UID/GID 1000 and stay like that.

Thanks




 Original Message 
Subject: Re: set owner:group on root of volume
Local Time: July 11, 2017 9:33 PM
UTC Time: July 11, 2017 7:33 PM
From: m...@protonmail.ch
To: Gluster Users 

Just found out I needed to set following two parameters:

gluster volume set myvol storage.owner-uid 1000
gluster volume set myvol storage.owner-gid 1000



In case that helps any one else :)


 Original Message 
Subject: set owner:group on root of volume
Local Time: July 11, 2017 8:15 PM
UTC Time: July 11, 2017 6:15 PM
From: m...@protonmail.ch
To: Gluster Users 

Hi,

By default the owner and group of a GlusterFS seems to be root:root
now I changed this by first mounting my volume using glusterfs/fuse
on a client and did the following

chmod 1000:1000 /mnt/myglustervolume

This changed correctly the owner and group to UID/GID 1000 of my
volume but like 1-2 hours later it was back to root:root. I tried
again and this happens again.

Am I doing something wrong here? I am using GlusterFS 3.8.11 on
Debian 8.

Regards,
M.










___
Gluster-users mailing list
Gluster-users@gluster.org
http://lists.gluster.org/mailman/listinfo/gluster-users



___
Gluster-users mailing list
Gluster-users@gluster.org
http://lists.gluster.org/mailman/listinfo/gluster-users


Re: [Gluster-users] set owner:group on root of volume

2017-07-20 Thread mabi
Anyone has an idea? or shall I open a bug for that?

>  Original Message 
> Subject: Re: set owner:group on root of volume
> Local Time: July 18, 2017 3:46 PM
> UTC Time: July 18, 2017 1:46 PM
> From: m...@protonmail.ch
> To: Gluster Users 
> Unfortunately the root directory of my volume still get its owner and group 
> resetted to root. Can someone explain why or help with this issue? I need it 
> to be set to UID/GID 1000 and stay like that.
> Thanks
>
>>  Original Message 
>> Subject: Re: set owner:group on root of volume
>> Local Time: July 11, 2017 9:33 PM
>> UTC Time: July 11, 2017 7:33 PM
>> From: m...@protonmail.ch
>> To: Gluster Users 
>> Just found out I needed to set following two parameters:
>> gluster volume set myvol storage.owner-uid 1000
>> gluster volume set myvol storage.owner-gid 1000
>> In case that helps any one else :)
>>
>>>  Original Message 
>>> Subject: set owner:group on root of volume
>>> Local Time: July 11, 2017 8:15 PM
>>> UTC Time: July 11, 2017 6:15 PM
>>> From: m...@protonmail.ch
>>> To: Gluster Users 
>>> Hi,
>>> By default the owner and group of a GlusterFS seems to be root:root now I 
>>> changed this by first mounting my volume using glusterfs/fuse on a client 
>>> and did the following
>>> chmod 1000:1000 /mnt/myglustervolume
>>> This changed correctly the owner and group to UID/GID 1000 of my volume but 
>>> like 1-2 hours later it was back to root:root. I tried again and this 
>>> happens again.
>>> Am I doing something wrong here? I am using GlusterFS 3.8.11 on Debian 8.
>>> Regards,
>>> M.___
Gluster-users mailing list
Gluster-users@gluster.org
http://lists.gluster.org/mailman/listinfo/gluster-users

Re: [Gluster-users] set owner:group on root of volume

2017-07-18 Thread mabi
Unfortunately the root directory of my volume still get its owner and group 
resetted to root. Can someone explain why or help with this issue? I need it to 
be set to UID/GID 1000 and stay like that.
Thanks

>  Original Message 
> Subject: Re: set owner:group on root of volume
> Local Time: July 11, 2017 9:33 PM
> UTC Time: July 11, 2017 7:33 PM
> From: m...@protonmail.ch
> To: Gluster Users 
> Just found out I needed to set following two parameters:
> gluster volume set myvol storage.owner-uid 1000
> gluster volume set myvol storage.owner-gid 1000
> In case that helps any one else :)
>
>>  Original Message 
>> Subject: set owner:group on root of volume
>> Local Time: July 11, 2017 8:15 PM
>> UTC Time: July 11, 2017 6:15 PM
>> From: m...@protonmail.ch
>> To: Gluster Users 
>> Hi,
>> By default the owner and group of a GlusterFS seems to be root:root now I 
>> changed this by first mounting my volume using glusterfs/fuse on a client 
>> and did the following
>> chmod 1000:1000 /mnt/myglustervolume
>> This changed correctly the owner and group to UID/GID 1000 of my volume but 
>> like 1-2 hours later it was back to root:root. I tried again and this 
>> happens again.
>> Am I doing something wrong here? I am using GlusterFS 3.8.11 on Debian 8.
>> Regards,
>> M.___
Gluster-users mailing list
Gluster-users@gluster.org
http://lists.gluster.org/mailman/listinfo/gluster-users

Re: [Gluster-users] set owner:group on root of volume

2017-07-11 Thread mabi
Just found out I needed to set following two parameters:
gluster volume set myvol storage.owner-uid 1000
gluster volume set myvol storage.owner-gid 1000
In case that helps any one else :)

>  Original Message 
> Subject: set owner:group on root of volume
> Local Time: July 11, 2017 8:15 PM
> UTC Time: July 11, 2017 6:15 PM
> From: m...@protonmail.ch
> To: Gluster Users 
> Hi,
> By default the owner and group of a GlusterFS seems to be root:root now I 
> changed this by first mounting my volume using glusterfs/fuse on a client and 
> did the following
> chmod 1000:1000 /mnt/myglustervolume
> This changed correctly the owner and group to UID/GID 1000 of my volume but 
> like 1-2 hours later it was back to root:root. I tried again and this happens 
> again.
> Am I doing something wrong here? I am using GlusterFS 3.8.11 on Debian 8.
> Regards,
> M.___
Gluster-users mailing list
Gluster-users@gluster.org
http://lists.gluster.org/mailman/listinfo/gluster-users