Re: [Gluster-users] File out of sync

2015-08-04 Thread Thibault Godouet
Hi there,

Is it a matter of a simple :
chmod 700 /data
Or have I missed something?

Obviously root could still access /data, but unprivileged users would no
longer have access to there.

Thibault.
On 4 Aug 2015 6:31 pm, "shacky"  wrote:

> 2015-08-04 19:25 GMT+02:00 Atin Mukherjee :
>
> > Creating data from back end is definitely not recommended as features
> like
> > replication heavily depends on the external attributes set on the file
> and
> > having data created directly from back end wouldn't have the xattrs set.
>
> I don't need (and don't want) data to be created from backend, and
> this is because I asked how I can avoid this.
> ___
> Gluster-users mailing list
> Gluster-users@gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-users
>
___
Gluster-users mailing list
Gluster-users@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-users

Re: [Gluster-users] File out of sync

2015-08-04 Thread shacky
2015-08-04 19:25 GMT+02:00 Atin Mukherjee :

> Creating data from back end is definitely not recommended as features like
> replication heavily depends on the external attributes set on the file and
> having data created directly from back end wouldn't have the xattrs set.

I don't need (and don't want) data to be created from backend, and
this is because I asked how I can avoid this.
___
Gluster-users mailing list
Gluster-users@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-users


Re: [Gluster-users] File out of sync

2015-08-04 Thread Atin Mukherjee
-Atin
Sent from one plus one
On Aug 4, 2015 10:27 PM, "shacky"  wrote:
>
> Thank you Mathieu for your answer!
>
> 2015-08-03 20:24 GMT+02:00 Mathieu Chateau :
> > date is not the same but is content different ?
>
> Yes, the content is different.
> The file on the node1 is the updated one, the other two nodes had the
> old version.
>
> > You may have disable the mtime attribue to get better perf ?
>
> No, I just have a "default" configuration for that volume, I had not
> disable the mtime attribute.
>
> > What are these 2 GFID ?
> > You can use this script to find who they are:
> > https://gist.github.com/semiosis/4392640
>
> Thank you so much.
>
> I tried to delete that file on the node1, and I verified that it was
> deleted on node2 and node3 too.
> So I copied the correct file on node1 and it correctly replicated on
> node2 and node3.
>
> So now the problem seems to be solved, but. How I could monitor
> this? I realized that just by chance!
>
> Another question: That volume is mounted in /mnt/data and the real
> data are located in /data.
> So every nodes are mounting the data on localhost:data.
> If I write some files in /mnt/data they are correctly replicated, but
> if I write them in /data not of course
> Is there a way to avoid this? I want /data to be accessible to Gluster
> only, not to real users!
Creating data from back end is definitely not recommended as features like
replication heavily depends on the external attributes set on the file and
having data created directly from back end wouldn't have the xattrs set.
>
> Thank you very much for your help!
> ___
> Gluster-users mailing list
> Gluster-users@gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-users
___
Gluster-users mailing list
Gluster-users@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-users

Re: [Gluster-users] File out of sync

2015-08-04 Thread shacky
Thank you Mathieu for your answer!

2015-08-03 20:24 GMT+02:00 Mathieu Chateau :
> date is not the same but is content different ?

Yes, the content is different.
The file on the node1 is the updated one, the other two nodes had the
old version.

> You may have disable the mtime attribue to get better perf ?

No, I just have a "default" configuration for that volume, I had not
disable the mtime attribute.

> What are these 2 GFID ?
> You can use this script to find who they are:
> https://gist.github.com/semiosis/4392640

Thank you so much.

I tried to delete that file on the node1, and I verified that it was
deleted on node2 and node3 too.
So I copied the correct file on node1 and it correctly replicated on
node2 and node3.

So now the problem seems to be solved, but. How I could monitor
this? I realized that just by chance!

Another question: That volume is mounted in /mnt/data and the real
data are located in /data.
So every nodes are mounting the data on localhost:data.
If I write some files in /mnt/data they are correctly replicated, but
if I write them in /data not of course.
Is there a way to avoid this? I want /data to be accessible to Gluster
only, not to real users!

Thank you very much for your help!
___
Gluster-users mailing list
Gluster-users@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-users


Re: [Gluster-users] File out of sync

2015-08-03 Thread Mathieu Chateau
date is not the same but is content different ?
You may have disable the mtime attribue to get better perf ?
What are these 2 GFID ?
You can use this script to find who they are:
https://gist.github.com/semiosis/4392640


Cordialement,
Mathieu CHATEAU
http://www.lotp.fr

2015-08-03 12:30 GMT+02:00 shacky :

> 2015-08-03 12:16 GMT+02:00 Mathieu Chateau :
>
> > You should start a heal
> > gluster volume xxx heal
> > or even a full one if not enough
> > gluster volume xxx heal full
>
> Thanks, I tried both but this not solved the problem:
>
> root@web1:~# ls -l /mnt/data/web/system/web/config.inc.php
> -rw-r--r-- 1 1010 1010 4041 Jul 31 17:42
> /mnt/data/web/system/web/config.inc.php
>
> root@web2:~# ls -l /mnt/data/web/system/web/config.inc.php
> -rw-r--r-- 1 1010 1010 4041 Jul 24 09:20
> /mnt/data/web/system/web/config.inc.php
>
> root@web3:~# ls -l /mnt/data/web/system/web/config.inc.php
> -rw-r--r-- 1 1010 1010 4041 Jul 24 09:20
> /mnt/data/web/system/web/config.inc.php
>
> This is the heal info:
>
> root@web1:~# gluster volume heal data info
> Brick web1:/data/
> 
> 
> Number of entries: 2
>
> Brick web2:/data/
> Number of entries: 0
>
> Brick web3:/data/
> Number of entries: 0
>
> > I guess clients wrote some files while node was down or rebooting?
>
> I don't think this happened, because when I updated that file all
> nodes was running.
>
___
Gluster-users mailing list
Gluster-users@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-users

Re: [Gluster-users] File out of sync

2015-08-03 Thread shacky
2015-08-03 12:16 GMT+02:00 Mathieu Chateau :

> You should start a heal
> gluster volume xxx heal
> or even a full one if not enough
> gluster volume xxx heal full

Thanks, I tried both but this not solved the problem:

root@web1:~# ls -l /mnt/data/web/system/web/config.inc.php
-rw-r--r-- 1 1010 1010 4041 Jul 31 17:42 /mnt/data/web/system/web/config.inc.php

root@web2:~# ls -l /mnt/data/web/system/web/config.inc.php
-rw-r--r-- 1 1010 1010 4041 Jul 24 09:20 /mnt/data/web/system/web/config.inc.php

root@web3:~# ls -l /mnt/data/web/system/web/config.inc.php
-rw-r--r-- 1 1010 1010 4041 Jul 24 09:20 /mnt/data/web/system/web/config.inc.php

This is the heal info:

root@web1:~# gluster volume heal data info
Brick web1:/data/


Number of entries: 2

Brick web2:/data/
Number of entries: 0

Brick web3:/data/
Number of entries: 0

> I guess clients wrote some files while node was down or rebooting?

I don't think this happened, because when I updated that file all
nodes was running.
___
Gluster-users mailing list
Gluster-users@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-users


Re: [Gluster-users] File out of sync

2015-08-03 Thread Mathieu Chateau
Hello,

You should start a heal
gluster volume xxx heal

or even a full one if not enough
gluster volume xxx heal full

I guess clients wrote some files while node was down or rebooting?

Cordialement,
Mathieu CHATEAU
http://www.lotp.fr

2015-08-03 12:14 GMT+02:00 shacky :

> Hi.
> I have a Gluster cluster with 3 nodes and one volume.
>
> All nodes are connected (gluster peer status) and the volume is
> started on all nodes (gluster volume info), but I realized that one
> file is different between nodes (it is updated only on node1 but it's
> old on node2 and node3).
>
> Could you help me, please?
>
> Thank you very much!
> Bye
> ___
> Gluster-users mailing list
> Gluster-users@gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-users
>
___
Gluster-users mailing list
Gluster-users@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-users

[Gluster-users] File out of sync

2015-08-03 Thread shacky
Hi.
I have a Gluster cluster with 3 nodes and one volume.

All nodes are connected (gluster peer status) and the volume is
started on all nodes (gluster volume info), but I realized that one
file is different between nodes (it is updated only on node1 but it's
old on node2 and node3).

Could you help me, please?

Thank you very much!
Bye
___
Gluster-users mailing list
Gluster-users@gluster.org
http://www.gluster.org/mailman/listinfo/gluster-users