[Gluster-devel] Geo-rep: xattrs and acls syncing using tar over ssh!!

Kotresh Hiremath Ravishankar khiremat at redhat.com
Wed May 20 10:30:30 UTC 2015


Hi,

Recently geo-replication is enhanced to sync xattr and acls as well
from master gluster volume to slave. Geo-rep syncs data in two modes
namely using "rsync" and "tar over ssh". Syncing acls and xattrs via
rsync works fine. But using tar over ssh, there are couple of issues
syncing xattrs and acls.

Issue1: xattrs doesn't sync with tar over ssh.

    Reason: untar doesn't respect '--overwrite' option when used along
            with '--xattrs'. So it sends unlink to unlink if the file exists
            on destination and re-creates afresh. But all entry operations are banned in
            aux-gfid-mount as of now as it may lead to gfid-mismatch if am correct. Hence
            fails with EPERM. This happens only when some xattr is set on a file in master
            volume.

    
Issue2: acls on directories does not sync with tar over ssh.

    Reason: tar tries to opendir ".gfid/<gfid1>" and is not supported
            by gfid-access-translator as readirp can't be handled on virtual
            inodes and hence fails with ENOTSUP where as it syncs for files.
            
Please let me know your comments on above issues. Is there anything that can
be done in gfid-access translator without breaking things to fix these issues?


Thanks and Regards,
Kotresh H R



More information about the Gluster-devel mailing list