<div dir="ltr"><div dir="ltr"><div>Bug already reported to : <a href="https://bugs.openvz.org/browse/OVZ-7075">https://bugs.openvz.org/browse/OVZ-7075</a></div><div><br></div><div><br></div><div>
>Description of problem: I want to snapshot and
then rsync to backup the container files, but I found that rsync -X a
file inside container with extended attribute "trusted.pfcache" that
will fail with "Operation not supported" error
<br>
<br>
>Steps to Reproduce:
<br>
[<a href="mailto:root@localhost">root@localhost</a> ~]# vzpkg update cache centos-7-x86_64
<br>
[<a href="mailto:root@localhost">root@localhost</a> ~]# prlctl create 101 --vmtype ct
<br>
[<a href="mailto:root@localhost">root@localhost</a> ~]# prlctl set 101 --ipadd 192.168.0.99
<br>
[<a href="mailto:root@localhost">root@localhost</a> ~]# prlctl set 101 --hostname <a href="http://attr.test.com">attr.test.com</a>
<br>
[<a href="mailto:root@localhost">root@localhost</a> ~]# prlctl set 101 --nameserver "8.8.8.8"
<br>
[<a href="mailto:root@localhost">root@localhost</a> ~]# prlctl set 101 --memsize 4G --swappages 4M
<br>
[<a href="mailto:root@localhost">root@localhost</a> ~]# prlctl start 101
<br>
[<a href="mailto:root@localhost">root@localhost</a> ~]# prlctl exec 101 "yum -y install <a href="http://autoinstall.plesk.com/PHP_7.3.0/dist-rpm-CentOS-7-x86_64/packages/plesk-php73-7.3.0-centos7.18121116.x86_64.rpm">http://autoinstall.plesk.com/PHP_7.3.0/dist-rpm-CentOS-7-x86_64/packages/plesk-php73-7.3.0-centos7.18121116.x86_64.rpm</a>"
<br>
[<a href="mailto:root@localhost">root@localhost</a> ~]# vzctl snapshot 101 --id 674bac28-6c49-41a3-aff6-2cf080236d55 --skip-suspend
<br>
[<a href="mailto:root@localhost">root@localhost</a> ~]# vzctl snapshot-mount 101 --id 674bac28-6c49-41a3-aff6-2cf080236d55 --target /mnt
<br>
[<a href="mailto:root@localhost">root@localhost</a> ~]# rsync -X /mnt/opt/plesk/php/7.3/etc/php.ini /root
<br>
rsync: rsync_xal_set: lsetxattr(""/root/.PEAR.php.dJOBjI"","trusted.pfcache") failed: Operation not supported (95)
<br>
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1055) [sender=3.0.9]
<br>
<br>
<br>
<br>
>Actual results: "Operation not supported" error
<br>
<br>
>Expected results: no error
<br>
<br>
>Host OS: Virtuozzo Linux release 7.5 (installed by openvz-iso-7.0.8-390.iso)
<br>
<br>
>Guest OS: CentOS Linux release 7.6.1810 (Core)
<br>
<br>
>Additional info (see <a href="https://openvz.org/Reporting_OpenVZ_problem):">https://openvz.org/Reporting_OpenVZ_problem):</a>
<br>
extended attribute "trusted.pfcache" could be shown as below:
<br>
<br>
[<a href="mailto:root@localhost">root@localhost</a> ~]# getfattr -d -m trusted /mnt/opt/plesk/php/7.3/share/pear/PEAR.php
<br>
getfattr: Removing leading '/' from absolute path names
<br>
# file: vz/root/2aafc2d3-8b1c-4b2b-be49-09e8f9d47671/opt/plesk/php/7.3/share/pear/PEAR.php
<br>
trusted.pfcache="50ccc83706988014c492e89cb21310b7943f56c6"
</div></div></div>