<div dir="ltr">Hi, Pavel,<br><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 19, 2015 at 11:52 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 06:25 PM, Hui Kang wrote:<br>
> Hi, Pavel,<br>
> Thanks for you comment. I have another question about dump the image of a MySQL and restore it on a different host.<br>
><br>
> I used the command "criu dump mysql-pid -j"<br>
<br>
</span>Well, -j is not needed if MySQL is started as daemon.<br>
<span class=""><br>
> to dump a MySQL. And then I copy al the dumped images to another host. After I run "criu restore". It complains<br>
> about "bad size of /var/log/mysql/error.log and /var/lib/mysql/".<br>
<br>
</span>Yup, that's the attempt to protect restoring on bad files.<br>
<span class=""><br>
> After I copy these two directory from the original host to the restored host, the mysql process can be restored.<br>
> My question is during dumping, can I also dump all the related file and directory?<br>
<br>
</span>With CRIU -- no. We deliberately avoid messing with the filesystem as handling it<br>
heavily depends on the use case. E.g. for seamless kernel update nothing should<br>
be done with the FS.<br>
<br>
For live migration -- non shared filesystems should be copied, but this can and<br>
should be done in a more effective manner than plain scp :) In order to address<br>
that and make live migration easier we started the P.Haul project that uses criu<br>
to dump and restore tasks and handles images copying, iterations, memory post-<br>
and pre-copy as well as FS synchronization. The project is not as active as CRIU<br></blockquote><div><br></div><div>Does p.hauler support FS synchronization? For example, if I want to migrate process P from host A to host B. P is writing to a file, say /tmp/dump.log.<br><br></div><div>Will p.hauler automatically copy /tmp/dump.log to host B? Thanks.<br><br></div><div>- Hui<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
and quite raw at the moment, but I plan to resurrect the activity by April :) So<br>
you're also welcome to join!<br>
<br>
P.Haul lives at <a href="http://criu.org/P.Haul" target="_blank">http://criu.org/P.Haul</a><br>
<br>
> Thanks.<br>
><br>
> - Hui<br>
<br>
Thanks,<br>
Pavel<br>
<br>
<br>
</blockquote></div><br></div></div>