<div dir="ltr">Hi, Pavel,<div>Thanks for you comment. I have another question about dump the image of a MySQL and restore it on a different host.</div><div><br></div><div>I used the command "criu dump mysql-pid -j" to dump a MySQL. And then I copy al the dumped images to another host. After I run "criu restore". It complains about "bad size of /var/log/mysql/error.log and /var/lib/mysql/".</div><div><br></div><div>After I copy these two directory from the original host to the restored host, the mysql process can be restored. My question is during dumping, can I also dump all the related file and directory? Thanks.</div><div><br></div><div>- Hui<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 19, 2015 at 11:00 AM, Pavel Emelyanov <span dir="ltr"><<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 03/19/2015 05:21 PM, Hui Kang wrote:<br>
> Hi, Deyan,<br>
> I am using CRIU 1.5. I switch to the mysql version (5.5) you used and finally it went through.<br>
<br>
</span>In criu-1.5 we implemented support for AIO rings that were used by MySQL.<br>
This can be the reason for successful C/R of MySQL with recent CRIU :)<br>
<span class=""><br>
> I think the problem may cased by something in mysql 5.6. Do you have any experience. Thanks.<br>
><br>
> - Hui<br>
><br>
</span><span class="">> On Thu, Mar 19, 2015 at 3:31 AM, Deyan Doychev <<a href="mailto:deyan@1h.com">deyan@1h.com</a> <mailto:<a href="mailto:deyan@1h.com">deyan@1h.com</a>>> wrote:<br>
><br>
> Hi,<br>
><br>
> Unfortunately, I have not encountered such a problem with Percona. After<br>
> the AIO config change I am able to dump Percona server without any hangs.<br>
><br>
</span>> Maybe you could try asking on the the CRIU mail list (<a href="mailto:criu@openvz.org">criu@openvz.org</a> <mailto:<a href="mailto:criu@openvz.org">criu@openvz.org</a>>)<br>
<div><div class="h5">> as I am currently using an outdated CRIU version and may misguide you.<br>
> People there are really nice and always happy to help.<br>
><br>
> Regards,<br>
> Deyan<br>
><br>
> On 03/18/2015 05:06 PM, Hui Kang wrote:<br>
> > Hi,<br>
> > I am using CRIU to dump a percona mysql process. First I add<br>
> > [mysqld]<br>
> > innodb_use_native_aio = false<br>
> > to resolve of the issue of non-regular mapping. However, the dump<br>
> > process hangs on<br>
> ><br>
> > (00.819732) Pagemap generated: 18 pages 0 holes<br>
> > (00.819741) Pagemap generated: 2 pages 0 holes<br>
> > (00.833712) ----------------------------------------<br>
> > (00.836236)<br>
> > (00.836274) Dumping core (pid: 11855)<br>
> > (00.836283) ----------------------------------------<br>
> > (00.836291) Obtaining personality ... (00.836430) 11855 has 0 sched policy<br>
> > (00.836448) dumping 0 nice for 11855<br>
> > (00.836461) cg: Dumping cgroups for 11855<br>
> > (00.836977) ----------------------------------------<br>
> > (00.836996)<br>
> > (00.837003) Dumping creds for 11855)<br>
> > (00.837010) ----------------------------------------<br>
> ><br>
> > PID 11855 is the mysqld process. Could anyone can help?<br>
> > Thanks.<br>
> ><br>
> > - Hui<br>
> ><br>
><br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> CRIU mailing list<br>
> <a href="mailto:CRIU@openvz.org">CRIU@openvz.org</a><br>
> <a href="https://lists.openvz.org/mailman/listinfo/criu" target="_blank">https://lists.openvz.org/mailman/listinfo/criu</a><br>
><br>
<br>
</blockquote></div><br></div></div></div>