We moved this page to our Documentation Portal. You can find the latest updates here. |
Issue
Sometimes Rsync can't finish the operation in time, because Rsync can't set SEattribut to symbol link. The logs may show the error like the following:
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...
Resolution
At the moment, if SElinux is not used, you can use the following workaround:
1. Remove se attribute for the following file:
attr -S -r <Attribute> path_to_file
For 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
2. Check mount options for both disks. Make sure that acl and user_xattr attributes are enabled:
/dev/sda on /onapp type ext4 (rw,acl,user_xattr)