<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">hi all, </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><span style="font-family:arial,sans-serif;font-size:13px">now that </span><span class="" style="font-family:arial,sans-serif;font-size:13px">criu</span><span style="font-family:arial,sans-serif;font-size:13px"> supports plugin[1], has any one tried revisiting this? we should be able to address most of the issues encountered in this thread,</span><div style="font-family:arial,sans-serif;font-size:13px">
<div class="gmail_extra"><br></div><div class="gmail_extra">[1] <a href="http://criu.org/Plugins" target="_blank">http://<span class="">criu</span>.org/Plugins</a><div class=""><div id=":24p" class="" tabindex="0"><img class="" src="https://mail.google.com/mail/u/0/images/cleardot.gif" style=""></div>
</div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 27, 2013 at 3:51 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"><div class="HOEnZb"><div class="h5">On 11/27/2013 01:58 PM, Daniel Lezcano wrote:<br>
> On 11/27/2013 09:54 AM, Pavel Emelyanov wrote:<br>
>> On 11/27/2013 06:19 AM, Qiang Huang wrote:<br>
>>> On 2013/11/27 0:19, Marian Marinov wrote:<br>
>>>> On my test setup it works for processes like apache, dovecot and mysql.<br>
>>>><br>
>>>> However it does not work with containers:<br>
>>>><br>
>>>> root@s321:~# criu dump -D deb1 -t 19332 --file-locks<br>
>>>> (00.004962) Error (namespaces.c:155): Can't dump nested pid namespace for 28352<br>
>>>> (00.004985) Error (namespaces.c:321): Can't make pidns id<br>
>>>> (00.005327) Error (cr-dump.c:1811): Dumping FAILED.<br>
>>>> root@s321:~#<br>
>>>> When I try to dump the init process(which I believe I should not do), here is what I see:<br>
>>>> <a href="http://pastebin.com/DFC0ADpp" target="_blank">http://pastebin.com/DFC0ADpp</a><br>
>>>><br>
>>>> (00.291294) Error (tty.c:222): tty: Unexpected format on path /dev/tty1<br>
>>>> (00.291315) Error (cr-dump.c:1491): Dump files (pid: 29702) failed with -1<br>
>>>> (00.291892) Error (cr-dump.c:1811): Dumping FAILED.<br>
>>>><br>
>>>> This is my setup:<br>
>>>> 19332 ? Ss 0:00 lxc-start -n deb1 -d<br>
>>>> 28352 ? Ss 0:00 \_ init [3]<br>
>>>> 28393 ? Ss 0:00 \_ /usr/sbin/apache2 -k start<br>
>>>> 28419 ? S 0:00 | \_ /usr/sbin/apache2 -k start<br>
>>>> 28422 ? Sl 0:00 | \_ /usr/sbin/apache2 -k start<br>
>>>> 28423 ? Sl 0:00 | \_ /usr/sbin/apache2 -k start<br>
>>>> 28489 ? S 0:00 \_ /bin/sh /usr/bin/mysqld_safe<br>
>>>> 28620 ? Sl 0:00 | \_ /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql<br>
>>>> --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --port<br>
>>>> 28621 ? S 0:00 | \_ logger -t mysqld -p daemon.error<br>
>>>> 28598 ? Ss 0:00 \_ /usr/sbin/sshd<br>
>>>> 29702 pts/0 Ss+ 0:00 \_ /sbin/getty 38400 tty1 linux<br>
>>>><br>
>>>> I rebooted the container without getty on tty1 and then I got this:<br>
>>>><br>
>>>> (00.260757) Error (mount.c:255): 86:/dev/tty4 doesn't have a proper root mount<br>
>> This is the reason. That's container's console which is a bind mounted tty from<br>
>> the host. And since this is an external connection, CRIU doesn't dump one.<br>
>><br>
>> There are two ways to resolve this. The first is disable container's console. It's<br>
>> fast, but ugly. The second way is supporting one, but it would require criu hacking.<br>
>> We should detect, that this is an external tty, decide, that we're OK to disconnect<br>
>> it after dump and on restore -- connect it back.<br>
><br>
> The third one would be to implement lxc-checkpoint and lxc-restart<br>
> (which are empty) to invoke CRUI. Then from there you can dump the<br>
> container's configuration and restart with.<br>
<br>
</div></div>Yes, it's also possible and probably easier. But as far as the console is concerned,<br>
some patching on the criu code will still be needed.<br>
<div class="HOEnZb"><div class="h5"><br>
Thanks,<br>
Pavel<br>
<br>
------------------------------------------------------------------------------<br>
Rapidly troubleshoot problems before they affect your business. Most IT<br>
organizations don't have a clear picture of how application performance<br>
affects their revenue. With AppDynamics, you get 100% visibility into your<br>
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!<br>
<a href="http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk" target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk</a><br>
_______________________________________________<br>
Lxc-devel mailing list<br>
<a href="mailto:Lxc-devel@lists.sourceforge.net">Lxc-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/lxc-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/lxc-devel</a><br>
</div></div></blockquote></div><br></div>