Hey Strahil,

thanks for your answer.

On 01/02/2020 08:18, Strahil Nikolov wrote:
There is an active thread in gluster-users , so it will be nice to mention this 
there.

About the sync, you can find the paths via:
1. Mount
  mount -t glusterfs -o aux-gfid-mount vm1:test /mnt/testvol
2. Find the path of files:
getfattr -n trusted.glusterfs.pathinfo -e text/mnt/testvol/.gfid/<GFID>

I bet it's the same file that causes me problems. Just verify the contents  and you will see 
that one of them is newer ->  just rsync it to the bricks  node01 & node03  and run 
'gluster volume heal <volume> full.'


I did a cross-post to gluster-users just now.
You are right, the brick-files have a slightly different timestamp:

[root@node01:~] # stat /gluster_bricks/ssd_storage/ssd_storage/.glusterfs/a1/21/a121e4fb-0984-4e41-94d7-8f0c4f87f4b6 File: ‘/gluster_bricks/ssd_storage/ssd_storage/.glusterfs/a1/21/a121e4fb-0984-4e41-94d7-8f0c4f87f4b6’
  Size: 67108864      Blocks: 54576      IO Block: 4096   regular file
Device: fd09h/64777d    Inode: 16152829909  Links: 2
Access: (0660/-rw-rw----)  Uid: (    0/    root)   Gid: (    0/    root)
Context: system_u:object_r:glusterd_brick_t:s0
Access: 2020-01-31 22:16:57.812620635 +0100
Modify: 2020-02-01 07:19:24.183045141 +0100
Change: 2020-02-01 07:19:24.186045203 +0100
 Birth: -

[root@node03:~] # stat /gluster_bricks/ssd_storage/ssd_storage/.glusterfs/a1/21/a121e4fb-0984-4e41-94d7-8f0c4f87f4b6 File: ‘/gluster_bricks/ssd_storage/ssd_storage/.glusterfs/a1/21/a121e4fb-0984-4e41-94d7-8f0c4f87f4b6’
  Size: 67108864      Blocks: 54576      IO Block: 4096   regular file
Device: fd09h/64777d    Inode: 16154259424  Links: 2
Access: (0660/-rw-rw----)  Uid: (    0/    root)   Gid: (    0/    root)
Context: system_u:object_r:glusterd_brick_t:s0
Access: 2020-01-31 22:16:57.811800217 +0100
Modify: 2020-02-01 07:19:24.180939487 +0100
Change: 2020-02-01 07:19:24.184939586 +0100
 Birth: -

Contents (getfattr, md5) are still identical.

I am unsure about your suggested rsync, tho:

 - node1 has file,
 - node2 does not,
 - node3 has file.

So I can rsync node1 to node2 and node3 or node3 to node1 and node2.
Sync to node1 and node3 cant be done as node2 does not have the file.

Can I do the rsync on a live, running Gluster?

--
with kind regards,
mit freundlichen Gruessen,

Christian Reiss
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/NJ72ACAIML2ANSDTVUSPS7JWHWJ4BDFS/

Reply via email to