<div dir="ltr"><div dir="ltr"><div>Thanks Konstantin,</div><div><br></div><div>There is no problem for extended attribute "trusted.foo1" , the problem only happens when it is "trusted.pfcache", so the file system on destination that supports extended attribute already, it is just don't know what's wrong with "trusted.pfcache" extended attribute.<br><br>Below commands show you that there is no such error when it is extended attribute "trusted.foo1"<br><br>[root@localhost ~]# getfattr -d -m trusted /mnt/usr/local/src/test.txt<br>getfattr: Removing leading '/' from absolute path names<br># file: mnt/usr/local/src/test.txt<br>trusted.foo1="bar"<br><br><br>[root@localhost ~]# rsync -Xv /mnt/usr/local/src/test.txt /vz/backups/tmp/<br><br>sent 63 bytes received 12 bytes 150.00 bytes/sec<br>total size is 5 speedup is 0.07<br><br>[root@localhost ~]# getfattr -d -m trusted /vz/backups/tmp/test.txt<br>getfattr: Removing leading '/' from absolute path names<br># file: vz/backups/tmp/test.txt<br>trusted.foo1="bar"<br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 14 Jan 2019 at 15:57, Konstantin Bukharov <<a href="mailto:bkb@virtuozzo.com">bkb@virtuozzo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US">
<div class="gmail-m_-5684926398533696791WordSection1">
<p class="MsoNormal">Hello,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">It depends on what exactly do you want.<u></u><u></u></p>
<p class="MsoNormal">If you need backup with extended attributes – please ensure that file system on your destination supports it.<u></u><u></u></p>
<p class="MsoNormal">If you don’t like this attribute on the file – please contact Plesk – you get this RPM there.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Best regards,<u></u><u></u></p>
<p class="MsoNormal">Konstantin<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><b>From:</b> <a href="mailto:users-bounces@openvz.org" target="_blank">users-bounces@openvz.org</a> <<a href="mailto:users-bounces@openvz.org" target="_blank">users-bounces@openvz.org</a>>
<b>On Behalf Of </b>Nethub Online - Ming<br>
<b>Sent:</b> Monday, January 14, 2019 7:52<br>
<b>To:</b> <a href="mailto:users@openvz.org" target="_blank">users@openvz.org</a><br>
<b>Subject:</b> [Users] snapshot then rsync Container file with extended attribute "trusted.pfcache" fails on OpenVZ 7<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">Bug already reported to : <a href="https://bugs.openvz.org/browse/OVZ-7075" target="_blank">
https://bugs.openvz.org/browse/OVZ-7075</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">>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" target="_blank">root@localhost</a> ~]# vzpkg update cache centos-7-x86_64
<br>
[<a href="mailto:root@localhost" target="_blank">root@localhost</a> ~]# prlctl create 101 --vmtype ct
<br>
[<a href="mailto:root@localhost" target="_blank">root@localhost</a> ~]# prlctl set 101 --ipadd 192.168.0.99
<br>
[<a href="mailto:root@localhost" target="_blank">root@localhost</a> ~]# prlctl set 101 --hostname
<a href="http://attr.test.com" target="_blank">attr.test.com</a> <br>
[<a href="mailto:root@localhost" target="_blank">root@localhost</a> ~]# prlctl set 101 --nameserver "8.8.8.8"
<br>
[<a href="mailto:root@localhost" target="_blank">root@localhost</a> ~]# prlctl set 101 --memsize 4G --swappages 4M
<br>
[<a href="mailto:root@localhost" target="_blank">root@localhost</a> ~]# prlctl start 101 <br>
[<a href="mailto:root@localhost" target="_blank">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" target="_blank">
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" target="_blank">root@localhost</a> ~]# vzctl snapshot 101 --id 674bac28-6c49-41a3-aff6-2cf080236d55 --skip-suspend
<br>
[<a href="mailto:root@localhost" target="_blank">root@localhost</a> ~]# vzctl snapshot-mount 101 --id 674bac28-6c49-41a3-aff6-2cf080236d55 --target /mnt
<br>
[<a href="mailto:root@localhost" target="_blank">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):" target="_blank">https://openvz.org/Reporting_OpenVZ_problem):</a>
<br>
extended attribute "trusted.pfcache" could be shown as below: <br>
<br>
[<a href="mailto:root@localhost" target="_blank">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" <u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
</blockquote></div>