<div dir="ltr">Really sorry..<div><br></div><div>Now the script works, but still failed on criu dump.</div><div><br></div><div>Please find the dump.log from the attachment. seems the same error, improper root. Did I wrongly the container root? Or it's something within criu?</div>
<div><br></div><div>thanks a lot.</div><div>Bing</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 6, 2014 at 3:23 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="">On 06/06/2014 01:45 AM, Bing X wrote:<br>
> ok, I make $odir as a new mountpoint with the command:<br>
><br>
> mount -t tmpfs none "./$odir"<br>
><br>
> then run privot_root command:<br>
><br>
> pivot_root "/var/lib/docker/containers/a4aec40cc802b258990c538852387b14ec7f7404ca397c66f2ee6ff9862f4a16/root/" "./$odir<br>
<br>
</div>Did you read man pivot_root? It says that the 1st argument is where to put the root<br>
and the 2nd is where to move old tree. In your case you ask to put new root into<br>
/var/lib/docker/... which is _not_ a mountpoint, and ask to move old tree into $odir.<br>
<br>
Bing, please, we cannot resolve every single non working command you meet.<br>
<div class="im HOEnZb"><br>
> still get the same error: Invalid argument.<br>
><br>
> am I wrong on making $odir a new mountpoint? if so, what's the correct command?<br>
><br>
> thanks,<br>
> Bing<br>
><br>
><br>
</div><div class="im HOEnZb">> On Thu, Jun 5, 2014 at 4:53 AM, Pavel Emelyanov <<a href="mailto:xemul@parallels.com">xemul@parallels.com</a> <mailto:<a href="mailto:xemul@parallels.com">xemul@parallels.com</a>>> wrote:<br>
><br>
> On 06/05/2014 01:02 AM, Bing X wrote:<br>
> > Then am I wrong on the root dir of my container? Or, if I'm right, how can I pivot_root it to $odir?<br>
><br>
> Make $odir being a mount point.<br>
><br>
> > thanks,<br>
> > Bing<br>
> ><br>
> ><br>
</div><div class="HOEnZb"><div class="h5">> > On Wed, Jun 4, 2014 at 4:32 PM, Pavel Emelyanov <<a href="mailto:xemul@parallels.com">xemul@parallels.com</a> <mailto:<a href="mailto:xemul@parallels.com">xemul@parallels.com</a>> <mailto:<a href="mailto:xemul@parallels.com">xemul@parallels.com</a> <mailto:<a href="mailto:xemul@parallels.com">xemul@parallels.com</a>>>> wrote:<br>
> ><br>
> > On 06/04/2014 10:27 PM, Bing X wrote:<br>
> > > OK, I find the error occurs at the line pivot_root<br>
> > ><br>
> > > I modified this line to to move my container root to "./$odir"<br>
> > ><br>
> > > my command is:<br>
> > ><br>
> > > pivot_root "/var/lib/docker/containers/a4aec40cc802b258990c538852387b14ec7f7404ca397c66f2ee6ff9862f4a16/root/" "./$odir"<br>
> > ><br>
> > > the error is: pivot_root: Invalid argument<br>
> > ><br>
> > > any suggestion what's happening here?<br>
> ><br>
> > The pivot_root() only works if the target directory is a mount point.<br>
> ><br>
> > > thanks,<br>
> > > Bing<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > Thanks<br>
> > Bing<br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> Thanks<br>
> Bing<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Thanks</div><div>Bing</div>
</div>