[CRIU] external mountpoint issue for docker

Bing X xiebingbing at gmail.com
Fri Jun 6 12:51:01 PDT 2014


Really sorry..

Now the script works, but still failed on criu dump.

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?

thanks a lot.
Bing


On Fri, Jun 6, 2014 at 3:23 AM, Pavel Emelyanov <xemul at parallels.com> wrote:

> On 06/06/2014 01:45 AM, Bing X wrote:
> > ok, I make $odir as a new mountpoint with the command:
> >
> > mount -t tmpfs none "./$odir"
> >
> > then run privot_root command:
> >
> > pivot_root
> "/var/lib/docker/containers/a4aec40cc802b258990c538852387b14ec7f7404ca397c66f2ee6ff9862f4a16/root/"
> "./$odir
>
> Did you read man pivot_root? It says that the 1st argument is where to put
> the root
> and the 2nd is where to move old tree. In your case you ask to put new
> root into
> /var/lib/docker/... which is _not_ a mountpoint, and ask to move old tree
> into $odir.
>
> Bing, please, we cannot resolve every single non working command you meet.
>
> > still get the same error: Invalid argument.
> >
> > am I wrong on making $odir a new mountpoint? if so, what's the correct
> command?
> >
> > thanks,
> > Bing
> >
> >
> > On Thu, Jun 5, 2014 at 4:53 AM, Pavel Emelyanov <xemul at parallels.com
> <mailto:xemul at parallels.com>> wrote:
> >
> >     On 06/05/2014 01:02 AM, Bing X wrote:
> >     > Then am I wrong on the root dir of my container? Or, if I'm right,
> how can I pivot_root it to $odir?
> >
> >     Make $odir being a mount point.
> >
> >     > thanks,
> >     > Bing
> >     >
> >     >
> >     > On Wed, Jun 4, 2014 at 4:32 PM, Pavel Emelyanov <
> xemul at parallels.com <mailto:xemul at parallels.com> <mailto:
> xemul at parallels.com <mailto:xemul at parallels.com>>> wrote:
> >     >
> >     >     On 06/04/2014 10:27 PM, Bing X wrote:
> >     >     > OK, I find the error occurs at the line pivot_root
> >     >     >
> >     >     > I modified this line to to move my container root to
> "./$odir"
> >     >     >
> >     >     > my command is:
> >     >     >
> >     >     > pivot_root
> "/var/lib/docker/containers/a4aec40cc802b258990c538852387b14ec7f7404ca397c66f2ee6ff9862f4a16/root/"
> "./$odir"
> >     >     >
> >     >     > the error is: pivot_root: Invalid argument
> >     >     >
> >     >     > any suggestion what's happening here?
> >     >
> >     >     The pivot_root() only works if the target directory is a mount
> point.
> >     >
> >     >     > thanks,
> >     >     > Bing
> >     >
> >     >
> >     >
> >     >
> >     > --
> >     > Thanks
> >     > Bing
> >
> >
> >
> >
> >
> > --
> > Thanks
> > Bing
>
>
>


-- 
Thanks
Bing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20140606/c44c6ee3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dump.log
Type: text/x-log
Size: 4633 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20140606/c44c6ee3/attachment.bin>


More information about the CRIU mailing list