[CRIU] Re, Issues dumping MySQL process

Hui Kang hkang.sunysb at gmail.com
Thu Mar 19 08:25:04 PDT 2015


Hi, Pavel,
Thanks for you comment. I have another question about dump the image of a
MySQL and restore it on a different host.

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/".

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.

- Hui

On Thu, Mar 19, 2015 at 11:00 AM, Pavel Emelyanov <xemul at parallels.com>
wrote:

> On 03/19/2015 05:21 PM, Hui Kang wrote:
> > Hi, Deyan,
> > I am using CRIU 1.5. I switch to the mysql version (5.5) you used and
> finally it went through.
>
> In criu-1.5 we implemented support for AIO rings that were used by MySQL.
> This can be the reason for successful C/R of MySQL with recent CRIU :)
>
> > I think the problem may cased by something in mysql 5.6. Do you have any
> experience. Thanks.
> >
> > - Hui
> >
> > On Thu, Mar 19, 2015 at 3:31 AM, Deyan Doychev <deyan at 1h.com <mailto:
> deyan at 1h.com>> wrote:
> >
> >     Hi,
> >
> >     Unfortunately, I have not encountered such a problem with Percona.
> After
> >     the AIO config change I am able to dump Percona server without any
> hangs.
> >
> >     Maybe you could try asking on the the CRIU mail list (
> criu at openvz.org <mailto:criu at openvz.org>)
> >     as I am currently using an outdated CRIU version and may misguide
> you.
> >     People there are really nice and always happy to help.
> >
> >     Regards,
> >     Deyan
> >
> >     On 03/18/2015 05:06 PM, Hui Kang wrote:
> >     > Hi,
> >     > I am using CRIU to dump a percona mysql process. First I add
> >     > [mysqld]
> >     > innodb_use_native_aio = false
> >     > to resolve of the issue of non-regular mapping. However, the dump
> >     > process hangs on
> >     >
> >     > (00.819732) Pagemap generated: 18 pages 0 holes
> >     > (00.819741) Pagemap generated: 2 pages 0 holes
> >     > (00.833712) ----------------------------------------
> >     > (00.836236)
> >     > (00.836274) Dumping core (pid: 11855)
> >     > (00.836283) ----------------------------------------
> >     > (00.836291) Obtaining personality ... (00.836430) 11855 has 0
> sched policy
> >     > (00.836448)     dumping 0 nice for 11855
> >     > (00.836461) cg: Dumping cgroups for 11855
> >     > (00.836977) ----------------------------------------
> >     > (00.836996)
> >     > (00.837003) Dumping creds for 11855)
> >     > (00.837010) ----------------------------------------
> >     >
> >     > PID 11855 is the mysqld process. Could anyone can help?
> >     > Thanks.
> >     >
> >     > - Hui
> >     >
> >
> >
> >
> >
> > _______________________________________________
> > CRIU mailing list
> > CRIU at openvz.org
> > https://lists.openvz.org/mailman/listinfo/criu
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20150319/bffab527/attachment.html>


More information about the CRIU mailing list