[CRIU] Dumping Error: Android Applications

Andrew Vagin avagin at virtuozzo.com
Tue Feb 23 11:04:08 PST 2016


On Tue, Feb 23, 2016 at 10:08:14AM +0800, Abdullah Yousafzai wrote:
> Well I have tried these options but I am on android and these commands are not
> available in android so what is the next suggestion. 

You need to find who created this mount namespace and what is an idea
behind it. I don't think that we need to dump it.

CRIU isn't for end users. You should expect such sort of technical
problems and be ready to solve them. I can recomend you to compile
unshare and nsenter tools, it should not be a big problem.

Thanks,
Andrew

> 
> 
> 
> Best Regard -- ALLAH Hafiz, May Almighty ALLAH bless you
> 
>  
> 
> [fed5b]   Abdullah Yousafzai
>           about.me/yousafzaiabdullah
>  
> *
> 
> 
> On Mon, Feb 22, 2016 at 11:55 PM, Andrew Vagin <avagin at virtuozzo.com> wrote:
> 
>     On Sat, Feb 20, 2016 at 10:12:09AM +0800, Abdullah Yousafzai wrote:
>     > Hello Guys,
>     >
>     > This is the output of the  /proc/$pid/mountinfo :
>     >
> 
>     Hi Abdullah,
> 
>     Who creates a mount namespace for a process? If you know how to create
>     it, you can try to execute criu from a target mount namespace. On retore
>     you will need to create a mount namespace and then execute criu restore
>     from it.
> 
>     You can try to use nsenter and unshare tools. nsenter allows to enter
>     into a name space and unshare allos to create a new name space.
> 
>     nsenter -m -t $pid criu dump ....
>     unshare --propagation slave criu rester ....
> 
>     Thanks,
>     Andrew
> 
>     > root at x86_64:/sdcard/Download # cat /proc/15429/mountinfo
>     > 488 483 0:13 / / ro,relatime master:1 - tmpfs tmpfs ro
>     > 489 488 7:1 / /system ro,relatime master:2 - ext4 /dev/loop1 ro,data=
>     ordered
>     > 490 488 0:14 / /data rw,relatime master:3 - tmpfs tmpfs rw
>     > 491 488 0:15 / /dev rw,nosuid,relatime master:4 - tmpfs tmpfs rw,mode=755
>     > 492 491 0:11 / /dev/pts rw,relatime master:5 - devpts devpts rw,mode=600
>     > 493 491 0:20 / /dev/cpuctl rw,relatime master:6 - cgroup none rw,cpu
>     > 494 488 0:4 / /proc rw,relatime master:7 - proc proc rw
>     > 495 488 0:12 / /sys rw,relatime master:8 - sysfs sysfs rw
>     > 496 495 0:6 / /sys/kernel/debug rw,relatime master:9 - debugfs debugfs rw
>     > 497 495 0:17 / /sys/fs/cgroup rw,relatime master:10 - tmpfs none rw,mode=
>     > 750,gid=1000
>     > 498 495 0:21 / /sys/fs/pstore rw,relatime master:11 - pstore pstore rw
>     > 499 488 0:16 / /acct rw,relatime master:12 - cgroup none rw,cpuacct
>     > 500 488 0:18 / /mnt/asec rw,relatime master:13 - tmpfs tmpfs rw,mode=
>     755,gid=
>     > 1000
>     > 501 488 0:19 / /mnt/obb rw,relatime master:14 - tmpfs tmpfs rw,mode=
>     755,gid=
>     > 1000
>     > 502 488 0:22 / /cache rw,nosuid,nodev,noatime master:15 - tmpfs none rw
>     > 503 488 0:23 / /mnt/shell/emulated rw,nosuid,nodev,noexec,relatime
>     master:16 -
>     > fuse /dev/fuse rw,user_id=1023,group_id=
>     1023,default_permissions,allow_other
>     > 504 488 0:25 / /storage/emulated rw,nosuid,nodev,relatime - tmpfs tmpfs
>     rw,mode
>     > =751,gid=1028
>     > 505 504 0:23 /0 /storage/emulated/0 rw,nosuid,nodev,noexec,relatime
>     master:16 -
>     > fuse /dev/fuse rw,user_id=1023,group_id=
>     1023,default_permissions,allow_other
>     > 506 504 0:23 /0 /storage/emulated/legacy rw,nosuid,nodev,noexec,relatime
>     > master:16 - fuse /dev/fuse rw,user_id=1023,group_id=
>     > 1023,default_permissions,allow_other
>     >
>     > Best Regard -- ALLAH Hafiz, May Almighty ALLAH bless you
>     >
>     >
>     >
>     > [fed5b]   Abdullah Yousafzai
>     >           about.me/yousafzaiabdullah
>     >
>     > *
>     >
>     >
>     > On Fri, Feb 19, 2016 at 7:25 PM, Pavel Emelyanov <xemul at virtuozzo.com>
>     wrote:
>     >
>     >     Here's the error:
>     >
>     >     >         (00.002194) Error (mount.c:959): mnt: Mount 554 ./storage/
>     >     emulated/legacy (master_id: 16 shared_id: 0) has unreachable sharing.
>     Try
>     >     --enable-external-masters.
>     >
>     >     Abdullah, would you show the output of /proc/$pid/mountinfo of the
>     >     container
>     >     you dump?
>     >
>     >     Cc-ing Tycho and Andrey.
>     >
>     >     -- Pavel
>     >
>     >
>     >
> 
> 


More information about the CRIU mailing list