Issue


Sometimes, rsync cannot finish an operation in time, because rsync cannot set the se attribute to a symbolic link. The logs may show the following message:

Running: rsync -aHAX --exclude '/dev' --exclude '/proc' --exclude '/sys' --exclude '/selinux' --exclude '/tmp' --delete /mnt/onapp-backup-fpj2mne7y5d3xz/ /onapp/backups/u/q/uqwge7qrlvnyns/

rsync: rsync_xal_set: lsetxattr("usr/local/psa/admin/bin/.send-error-report.HZohSL","security.selinux") failed: Operation not supported (95)

rsync: rsync_xal_set: lsetxattr("usr/local/psa/bin/.yum_install.j805YS","security.selinux") failed: Operation not supported (95)

rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6]

Fatal: Execution of rsync -aHAX --exclude '/dev' --exclude '/proc' --exclude '/sys' --exclude '/selinux' --exclude '/tmp' --delete /mnt/onapp-backup-fpj2mne7y5d3xz/ /onapp/backups/u/q/uqwge7qrlvnyns/ failed

Executing Rollback...
CODE


Resolution


If SELinux is not used, use the following workaround:

  1. Remove the se attribute for the attr -S -r <Attribute> path_to_file file:
    Example

    # attr -l ./file
    Attribute "selinux.security" has a 1 byte value for ./file
    Attribute "secondtt" has a 2 byte value for ./file
    
    #attr -S -r secondtt ./file
    CODE
  2. Check the mount options for both disks. Make sure that the acl and user_xattr attributes are enabled:

    /dev/sda on /onapp type ext4 (rw,acl,user_xattr)
    CODE