[CRIU] criu 1.6 lxc checkpoint and restart

Tycho Andersen tycho.andersen at canonical.com
Mon Jun 8 07:04:57 PDT 2015


On Sun, Jun 07, 2015 at 12:31:04PM +0100, Thouraya TH wrote:
> Hello all :)
> 
> I have used criu 1.6. I have done the dumping process of lxc container
> 
> *lxc-checkpoint -D /home/dire -n worker1*
> 
> dump.log
> Warn  (fsnotify.c:188): fsnotify:       Handle 800003:6c233 cannot be opened
> Warn  (fsnotify.c:188): fsnotify:       Handle 800003:8d3a9 cannot be opened
> Warn  (arch/x86/crtools.c:132): Will restore 8685 with interrupted system
> call
> Warn  (arch/x86/crtools.c:132): Will restore 8930 with interrupted system
> call
> Warn  (arch/x86/crtools.c:132): Will restore 8931 with interrupted system
> call
> Warn  (arch/x86/crtools.c:132): Will restore 8936 with interrupted system
> call
> Warn  (arch/x86/crtools.c:132): Will restore 8937 with interrupted system
> call
> Warn  (arch/x86/crtools.c:132): Will restore 8938 with interrupted system
> call
> 
> 
> *lxc-stop*

You should probably use the -s flag to checkpoint. My guess is that
once you run lxc-stop, the application cleans up stuff in /tmp,
causing your problem.

Tycho

> and
> 
> * lxc-checkpoint -r -D ** /home/dire -n worker1*
> 
> i have in restore.log:
> Warn  (cr-restore.c:1029): Set CLONE_PARENT | CLONE_NEWPID but it might
> cause restore problem,because not all kernels support such clone flags
> combinations!
> RTNETLINK answers: File exists
> RTNETLINK answers: File exists
> RTNETLINK answers: File exists
>    674: Error (files-reg.c:1097): Can't open file
> tmp/liblz4-java7316482086218160244.so on restore: No such file or directory
>    674: Error (files-reg.c:1040): Can't open file
> tmp/liblz4-java7316482086218160244.so: No such file or directory
>    674: Error (cr-restore.c:253): Can't fixup VMA's fd
> 
> 
> *lxc-ls -f:*
> 
> lxc-ls -f
> ^CTraceback (most recent call last):
>   File "/usr/bin/lxc-ls", line 432, in <module>
>     containers = get_containers(root=True)
>   File "/usr/bin/lxc-ls", line 261, in get_containers
>     if container.controllable:
> KeyboardInterrupt
> 
> 
> Have you an idea please ?
> Thanks a lot.
> Best Regards.

> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu



More information about the CRIU mailing list