<div dir="ltr"><div><div><div><div><div><div><div>It could be that those containers contains specific file types that are presenting problems when vzmigrate is operating the rsync command.<br><br></div>I see two possible workarounds/solutions.<br><br></div><b>First:</b><br>Execute the rsync yourself manually (without vzmigrate), and register the container on the new host after migration, with &quot;prlctl register /vz/private/&lt;container_id&gt;&quot;. Use the following flags:<br><br>rsync -az -H -X --one-file-system --numeric-ids  /vz/private/123456/ -e ssh root@&lt;server_hostname_or_ip&gt;:/vz/private/123456/<br><br></div>The &quot;-H&quot; flag preserves hard-links and &quot;-X&quot; preserves extended attributes. The &quot;z&quot; on &quot;-az&quot; is optional, to compress the data during transfer.<br><br><br></div><b>Second:</b><br></div>Compress the container&#39;s private directory to generate a .tar(.gz) file, and transfer it. Use the -p flag to preserve owners when creating the .tar(.gz) and --same-owner when extracting it on the new host:<br><br>tar -zcpf 12345.tar.gz /vz/private/12345<br><br></div><div>The &quot;z&quot; is to generate a /tar.gz instead of a .tar. Generating a .tar is much faster, but occupying more space. Generating a .tar.gz is slower, but it occupies less space and is faster to transfer.<br></div><div><br><br></div>Please do a test and provide a feedback!<br><br><br></div>Paulo Coghi<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 14, 2020 at 5:59 PM Dmitry Konstantinov &lt;<a href="mailto:barmaley@barmaley.net">barmaley@barmaley.net</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">yes I do.<br>
<br>
It happens often when we do mass migrations to free<br>
a server for maintenance. One or maybe two containers<br>
refuse to migrate no matter what.<br>
<br>
On Fri, 14 Feb 2020 16:49:22 -0300<br>
Paulo Coghi - Coghi IT &lt;<a href="mailto:paulocoghi@gmail.com" target="_blank">paulocoghi@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi, Dmitry!<br>
&gt; <br>
&gt; I usually temporarily enable access to the root user on SSH to<br>
&gt; proceed with the migrations.<br>
&gt; <br>
&gt; Are you using root?<br>
&gt; <br>
&gt; On Thu, Feb 13, 2020 at 12:37 PM Dmitry Konstantinov<br>
&gt; &lt;<a href="mailto:barmaley@barmaley.net" target="_blank">barmaley@barmaley.net</a>&gt; wrote:<br>
&gt; <br>
&gt; &gt;<br>
&gt; &gt; I am pretty sure it&#39;s not permissions however that&#39;s what reported<br>
&gt; &gt; by vzmigrate.<br>
&gt; &gt;<br>
&gt; &gt; offline migration fails with the messages:<br>
&gt; &gt;<br>
&gt; &gt; copy CT private /vz/private/24060<br>
&gt; &gt; rsync : rsync: rename &quot;/vz/private/24060/root.hdd/.root.hds.dkD99G&quot;<br>
&gt; &gt; -&gt; &quot;root.hdd/root.hds&quot;: Operation not permitted (1)<br>
&gt; &gt; rsync : rsync: rename<br>
&gt; &gt; &quot;/vz/private/24060/root.hdd/.root.hds.{ed04b7fe-4084-42ec-864d-edc1ae4b03d5}.eVcsbD&quot;  <br>
&gt; &gt; -&gt; &quot;root.hdd/root.hds.{ed04b7fe-4084-42ec-864d-edc1ae4b03d5}&quot;:  <br>
&gt; &gt; Operation not permitted (1)<br>
&gt; &gt; rsync : rsync error: some files/attrs were not transferred (see<br>
&gt; &gt; previous errors) (code 23) at main.c(1055)<br>
&gt; &gt; [sender=3.0.9]<br>
&gt; &gt;<br>
&gt; &gt; Subsequent runs show similar errors, removing private area on<br>
&gt; &gt; destination (we use --keep-dst) doesn&#39;t help, renaming it so the<br>
&gt; &gt; next attempt to migrate would use different location on the device<br>
&gt; &gt; doesn&#39;t help. However the migration to another server usually works.<br>
&gt; &gt;<br>
&gt; &gt; Any ideas what might be the problem?<br>
&gt; &gt;<br>
&gt; &gt; BTW is there any reason for vzmigrate to create a snapshot when<br>
&gt; &gt; migrating offline?<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt; Dmitry.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Users mailing list<br>
&gt; &gt; <a href="mailto:Users@openvz.org" target="_blank">Users@openvz.org</a><br>
&gt; &gt; <a href="https://lists.openvz.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
&gt; &gt;  <br>
<br>
_______________________________________________<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>