<div dir="ltr"><div dir="ltr"><div>Thanks Konstantin,</div><div><br></div><div>There is no problem for extended attribute &quot;trusted.foo1&quot; , the problem only happens when it is &quot;trusted.pfcache&quot;, so the file system on destination that supports extended attribute already, it is just don&#39;t know what&#39;s wrong with &quot;trusted.pfcache&quot; extended attribute.<br><br>Below commands show you that there is no such error when it is extended attribute &quot;trusted.foo1&quot;<br><br>[root@localhost ~]# getfattr -d -m trusted /mnt/usr/local/src/test.txt<br>getfattr: Removing leading &#39;/&#39; from absolute path names<br># file: mnt/usr/local/src/test.txt<br>trusted.foo1=&quot;bar&quot;<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 &#39;/&#39; from absolute path names<br># file: vz/backups/tmp/test.txt<br>trusted.foo1=&quot;bar&quot;<br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 14 Jan 2019 at 15:57, Konstantin Bukharov &lt;<a href="mailto:bkb@virtuozzo.com">bkb@virtuozzo.com</a>&gt; 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> &lt;<a href="mailto:users-bounces@openvz.org" target="_blank">users-bounces@openvz.org</a>&gt;
<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 &quot;trusted.pfcache&quot; 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">&gt;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 &quot;trusted.pfcache&quot; that will fail with &quot;Operation not supported&quot; error
<br>
<br>
&gt;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 &quot;8.8.8.8&quot;
<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 &quot;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>&quot;
<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(&quot;&quot;/root/.PEAR.php.dJOBjI&quot;&quot;,&quot;trusted.pfcache&quot;) 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>
&gt;Actual results: &quot;Operation not supported&quot; error <br>
<br>
&gt;Expected results: no error <br>
<br>
&gt;Host OS: Virtuozzo Linux release 7.5 (installed by openvz-iso-7.0.8-390.iso) <br>
<br>
&gt;Guest OS: CentOS Linux release 7.6.1810 (Core) <br>
<br>
&gt;Additional info (see <a href="https://openvz.org/Reporting_OpenVZ_problem):" target="_blank">https://openvz.org/Reporting_OpenVZ_problem):</a>
<br>
extended attribute &quot;trusted.pfcache&quot; 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 &#39;/&#39; 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=&quot;50ccc83706988014c492e89cb21310b7943f56c6&quot; <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>