[CRIU] Checkpointing failed

Andrey Vagin avagin at parallels.com
Tue Oct 7 08:41:29 PDT 2014


On Tue, Oct 07, 2014 at 04:32:34PM +0100, Thouraya TH wrote:
> what i have done exactly:
> 
> root at thouraya-Lenovo-3000-N500:~# vim  /usr/share/lxc/config/ubuntu.common.conf
> 
> # This derives from the global common config
> lxc.include = /usr/share/lxc/config/common.conf
> 
> # Default mount entries
> lxc.mount.entry = proc proc proc nodev,noexec,nosuid 0 0
> lxc.mount.entry = sysfs sys sysfs defaults 0 0
> lxc.mount.entry = /sys/fs/fuse/connections sys/fs/fuse/connections none
> bind,optional 0 0
> lxc.mount.entry = /sys/kernel/debug sys/kernel/debug none bind,optional 0 0
> lxc.mount.entry = /sys/kernel/security sys/kernel/security none bind,optional 0
> 0
> #lxc.mount.entry = /sys/fs/pstore sys/fs/pstore none bind,optional 0 0
> lxc.mount.entry = tmpfs /sys/fs/pstore none bind,optional 0 0

Could you comment out all lines here except proc and sysfs?

> 
> ...
> 
> root at thouraya-Lenovo-3000-N500:~# lxc-checkpoint -s -D /home/thouraya/lxcCR -n
> u1
> Checkpointing u1 failed.
> 
> dump.log:
> Warn  (fsnotify.c:183): fsnotify:     Handle 800001:60a0d cannot be opened
> Warn  (fsnotify.c:183): fsnotify:     Handle 800001:6511a cannot be opened
> Error (parasite-syscall.c:387): si_code=4 si_pid=2886 si_status=5
> Error (parasite-syscall.c:387): si_code=4 si_pid=2887 si_status=5
> Error (parasite-syscall.c:387): si_code=4 si_pid=2888 si_status=5
> Error (mount.c:448): 75:./sys/fs/pstore doesn't have a proper root mount
> Error (cr-dump.c:1953): Dumping FAILED.
> 
> 
>  i have to mount pstore ?
> > As you know i have already done this:
> >
> > root at u1:/# sudo umount /sys/fs/pstore
> > root at u1:/# vim /etc/fstab
> > root at u1:/# vim /etc/fstab
> >
> > i have only this line in the file:
> > -- > # UNCONFIGURED FSTAB FOR BASE SYSTEM
> >
> > root at u1:/# rmdir /sys/fs/pstore
> > rmdir: échec de suppression de «/sys/fs/pstore»: Permission non accordée
> > root at u1:/# sudo rmdir /sys/fs/pstore
> > rmdir: échec de suppression de «/sys/fs/pstore»: Permission non accordée
> > root at u1:/# sudo su
> > root at u1:/#  rmdir /sys/fs/pstore
> > rmdir: échec de suppression de «/sys/fs/pstore»: Permission non accordée
> > root at u1:/#
> 
> Bests.
> 
> 
> 2014-10-07 16:17 GMT+01:00 Thouraya TH <thouraya87 at gmail.com>:
> 
>     i'm sorry, i will try not in the container :(
> 
>     2014-10-07 16:15 GMT+01:00 Thouraya TH <thouraya87 at gmail.com>:
> 
>         Inside the container:
>         root at u1:/# sudo umount  /sys/fs/fuse/connections
>         root at u1:/#
> 
>         root at u1:/# cd /usr/share/lxc/config/
>         bash: cd: /usr/share/lxc/config/: Aucun fichier ou dossier de ce type
>         root at u1:/# cat /usr/share/lxc/config/ubuntu.common.conf
>         cat: /usr/share/lxc/config/ubuntu.common.conf: Aucun fichier ou dossier
>         de ce type
> 
>         ?
> 
>         2014-10-07 15:49 GMT+01:00 Serge Hallyn <serge.hallyn at ubuntu.com>:
>        
>             Quoting Thouraya TH (thouraya87 at gmail.com):
>             > root at u1:/# sudo umount /sys/fs/fuse/
>             > umount : /sys/fs/fuse/ : n'est pas monté
>             >
>             > !!
>             > it doesn't work
>             >
>             > As you know i have already done this:
>             >
>             > root at u1:/# sudo umount /sys/fs/pstore
>             > root at u1:/# vim /etc/fstab
>             > root at u1:/# vim /etc/fstab
>             >
>             > i have only this line in the file:
>             > -- > # UNCONFIGURED FSTAB FOR BASE SYSTEM
>             >
>             > root at u1:/# rmdir /sys/fs/pstore
>             > rmdir: échec de suppression de «/sys/fs/pstore»: Permission non
>             accordée
>             > root at u1:/# sudo rmdir /sys/fs/pstore
>             > rmdir: échec de suppression de «/sys/fs/pstore»: Permission non
>             accordée
>             > root at u1:/# sudo su
>             > root at u1:/#  rmdir /sys/fs/pstore
>             > rmdir: échec de suppression de «/sys/fs/pstore»: Permission non
>             accordée
>             > root at u1:/#
> 
>             Ok I don't know whether you're having a problem with pstore at c/r
>             or
>             not as that seems unrelated to the fuse gorp, but if you are having
>             a
>             problem with pstore, then
> 
>             Edit /usr/share/lxc/config/ubuntu.common.conf, comment out
> 
>             lxc.mount.entry = /sys/fs/pstore sys/fs/pstore none bind,optional 0
>             0
> 
>             and add
> 
>             lxc.mount.entry = tmpfs /sys/fs/pstore none bind,optional 0 0
> 
>             That should keep mountall from trying to mount pstore.
> 
>             I think what you really want to do is teach criu to simply mark
>             that pstore
>             was mounted, then simply bind-mount it from the host again at
>             restart.
> 
> 
> 
> 
> 
> 


More information about the CRIU mailing list