<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 "prlctl register /vz/private/<container_id>". Use the following flags:<br><br>rsync -az -H -X --one-file-system --numeric-ids /vz/private/123456/ -e ssh root@<server_hostname_or_ip>:/vz/private/123456/<br><br></div>The "-H" flag preserves hard-links and "-X" preserves extended attributes. The "z" on "-az" is optional, to compress the data during transfer.<br><br><br></div><b>Second:</b><br></div>Compress the container'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 "z" 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 <<a href="mailto:barmaley@barmaley.net">barmaley@barmaley.net</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">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 <<a href="mailto:paulocoghi@gmail.com" target="_blank">paulocoghi@gmail.com</a>> wrote:<br>
<br>
> Hi, Dmitry!<br>
> <br>
> I usually temporarily enable access to the root user on SSH to<br>
> proceed with the migrations.<br>
> <br>
> Are you using root?<br>
> <br>
> On Thu, Feb 13, 2020 at 12:37 PM Dmitry Konstantinov<br>
> <<a href="mailto:barmaley@barmaley.net" target="_blank">barmaley@barmaley.net</a>> wrote:<br>
> <br>
> ><br>
> > I am pretty sure it's not permissions however that's what reported<br>
> > by vzmigrate.<br>
> ><br>
> > offline migration fails with the messages:<br>
> ><br>
> > copy CT private /vz/private/24060<br>
> > rsync : rsync: rename "/vz/private/24060/root.hdd/.root.hds.dkD99G"<br>
> > -> "root.hdd/root.hds": Operation not permitted (1)<br>
> > rsync : rsync: rename<br>
> > "/vz/private/24060/root.hdd/.root.hds.{ed04b7fe-4084-42ec-864d-edc1ae4b03d5}.eVcsbD" <br>
> > -> "root.hdd/root.hds.{ed04b7fe-4084-42ec-864d-edc1ae4b03d5}": <br>
> > Operation not permitted (1)<br>
> > rsync : rsync error: some files/attrs were not transferred (see<br>
> > previous errors) (code 23) at main.c(1055)<br>
> > [sender=3.0.9]<br>
> ><br>
> > Subsequent runs show similar errors, removing private area on<br>
> > destination (we use --keep-dst) doesn't help, renaming it so the<br>
> > next attempt to migrate would use different location on the device<br>
> > doesn't help. However the migration to another server usually works.<br>
> ><br>
> > Any ideas what might be the problem?<br>
> ><br>
> > BTW is there any reason for vzmigrate to create a snapshot when<br>
> > migrating offline?<br>
> ><br>
> > Thanks,<br>
> > Dmitry.<br>
> ><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>
> > <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>