<div dir="ltr">thank you very much , this patch is very helpful <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 2, 2015 at 9:28 PM, Saied Kazemi <span dir="ltr"><<a href="mailto:saied@google.com" target="_blank">saied@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Mona,<br>
<br>
Pertaining to my previous reply, I just sent a patch for docker_cr.sh<br>
helper script to dynamically determine the right dockerinit file. It<br>
may be easier for you to apply this patch and use it going forward.<br>
<span class="HOEnZb"><font color="#888888"><br>
--Saied<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On Fri, Jan 2, 2015 at 9:43 AM, Saied Kazemi <<a href="mailto:saied@google.com">saied@google.com</a>> wrote:<br>
> Hi Mona,<br>
><br>
> As Pavel pointed out, the error is due to not being able to bind mount<br>
> an external file. But this is not because a the --ext-mount-map<br>
> command line option is missing. It's because docker_cr.sh does not<br>
> know the dockerinit file name in /var/lib/docker/init (by default, it<br>
> assume Docker 1.0.0).<br>
><br>
> Since you are running Docker 1.4, you need to change the following<br>
> BIND_MOUNT line in docker_cr.sh to reflect what you have in<br>
> /var/lib/docker/init:<br>
><br>
> # since older versions of docker bind mount /.dockerinit but<br>
> # the path cannot be queried by docker inspect, we have to<br>
> # hard code it here<br>
> BIND_MOUNT[/.dockerinit]="${DOCKER_HOME}/init/dockerinit-1.0.0"<br>
><br>
> Hope this helps.<br>
><br>
> --Saied<br>
><br>
><br>
> On Wed, Dec 31, 2014 at 2:28 AM, Pavel Emelyanov <<a href="mailto:xemul@parallels.com">xemul@parallels.com</a>> wrote:<br>
>> On 12/31/2014 04:36 AM, mona kashkoush wrote:<br>
>>><br>
>>> i tried to do a live migration for docker container using CRIU 1.4 but dumping failed and this error appeared<br>
>>><br>
>>> $ criu dump --tree <pid> --images-dir <path-to-existing-directory> --leave-stopped<br>
>>><br>
>>> Error (mount.c:624): 125:./etc/hosts doesn't have a proper root mount<br>
>>> Error (files-reg.c:764): Unaccessible path opened 52:21244, need 5:1029<br>
>>> Error (cr-dump.c:1601): Dump files (pid: 3906) failed with -1<br>
>>> Error (cr-dump.c:1964): Dumping FAILED.<br>
>>><br>
>>> and when i used the automated script "docker_cr.sh " for docker container migration , this succeeded for<br>
>>> dumping but failed for restoring and this error appeared<br>
>>><br>
>>> $ /src/criu-1.4/contrib/docker_cr.sh -r -v <container_id><br>
>>><br>
>>> restore failed<br>
>>> (00.072030) 1: Error (mount.c:1543): Can't mount at ./.dockerinit: No such file or directory<br>
>><br>
>> Hm... This looks like some missed --ext-mount-map thing. Can you find out the<br>
>> exact command line docker_cr.sh calls CRIU with?<br>
>><br>
>> Hopefully Saied (in Cc) can also advise something.<br>
>><br>
>>> (00.072076) Error (cr-restore.c:1838): Restoring FAILED.<br>
>>><br>
>>> * this is information about docker which i used<br>
>>><br>
>>> Storage Driver: aufs<br>
>>> Root Dir: /var/lib/docker/aufs<br>
>>> Dirs: 67<br>
>>> Execution Driver: native-0.2<br>
>>> Kernel Version: 3.13.0-43-generic<br>
>>><br>
>>> thanks for your time<br>
>>><br>
>>> --<br>
>>> Mona Salah<br>
>>> Research Assistant<br>
>>> IRI institute<br>
>>> The City of Scientific Research and Technology Applications,Alex , Egypt<br>
>>><br>
>>><br>
>>> _______________________________________________<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font size="4" face="georgia, serif">Mona Salah<br>Research Assistant <br></font><div><font size="4" color="#000000" face="georgia, serif">IRI institute </font></div></div></div><div><div dir="ltr"><div><font size="4" color="#000000" face="georgia, serif">The City of Scientific Research and Technology Applications,Alex , Egypt </font></div></div></div></div></div>
</div>