<!DOCTYPE html><html dir="ltr"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><head><body><div><div><br><blockquote>---- Original Message ----<br>
From: "Pavel Emelyanov" <xemul@parallels.com><br>
To: shawn@www.churchofgit.com<br>CC: "Shawn Landden" <shawn@churchofgit.com>, criu@openvz.org<br>
Sent: Wed, Dec 11, 2013, 02:22 AM<br>
Subject: Re: [CRIU] mnt namespaces<br><br><br>On 12/11/2013 08:50 AM, shawn@<a target="_blank" href="www.churchofgit.com">www.churchofgit.com</a> wrote:<br><blockquote>---- Original Message ----<br>From: "Pavel Emelyanov" <<a target="_blank" href="mailto:xemul@parallels.com">xemul@parallels.com</a>><br>To: "Shawn Landden" <<a target="_blank" href="mailto:shawn@churchofgit.com">shawn@churchofgit.com</a>><br>CC: <a target="_blank" href="mailto:criu@openvz.org">criu@openvz.org</a><br>Sent: Tue, Dec 10, 2013, 08:30 PM<br>Subject: Re: [CRIU] mnt namespaces<br><br>On 12/11/2013 08:19 AM, Shawn Landden wrote:<br><br>I can't figure out how to dump mount namespaces.<br><br>Namespaces are dumped by CRIU when it detects them, not when you specify it<br>with the option. IOW you should start a task in mount namespace and dump<br>one. Then CRIU will detect it and try to dump the mount namespace as well.<br><br>I tried that first, and I got the same error. the target pid is pid 1 in the namespace. <br><br>criu dump -n mnt,net,pid,uts -t 109811<br><br>(00.004942) Warn (sk-unix.c:353): Can't stat socket 0x34de(./run/user/1000/pulse/native), skipping: No such file or directory (err 2)</blockquote><br><br>This is a warning, that may not affect the dump. Would you show the full dump.log please?<br><br></blockquote><span>None of these sockets have anything to do with what I am dumping?!?!?!?!?!</span><div><span><br></span></div><div>root@zephyr:/var/tmp/systemd-criu# criu dump -t 2496</div><div>(00.002533) Warn (sk-unix.c:353): Can't stat socket 0x2b11(./tmp/ssh-MezaRkkHlqm2/agent.816), skipping: No such file or directory (err 2)</div><div>(00.002833) Warn (sk-unix.c:353): Can't stat socket 0x301b(./run/user/1000/keyring-onPV5c/pkcs11), skipping: No such file or directory (err 2)</div><div>(00.002897) Warn (sk-unix.c:353): Can't stat socket 0x3023(./run/user/1000/keyring-onPV5c/gpg), skipping: No such file or directory (err 2)</div><div>(00.002955) Warn (sk-unix.c:353): Can't stat socket 0xd635(./tmp/9BA4686616EF5FDC8957B2D56E0FDFA1E2C0E01D.31.0.1650.63_service_ipc), skipping: No such file or directory (err 2)</div><div>(00.003015) Warn (sk-unix.c:353): Can't stat socket 0x2945(./var/run/libvirt/libvirt-sock), skipping: No such file or directory (err 2)</div><div>(00.003076) Warn (sk-unix.c:353): Can't stat socket 0x2947(./var/run/libvirt/libvirt-sock-ro), skipping: No such file or directory (err 2)</div><div>(00.003128) Warn (sk-unix.c:353): Can't stat socket 0x1847(./run/udev/control), skipping: No such file or directory (err 2)</div><div>(00.003194) Warn (sk-unix.c:353): Can't stat socket 0x7f80(./run/user/1000/wayland-0), skipping: No such file or directory (err 2)</div><div>(00.003248) Warn (sk-unix.c:353): Can't stat socket 0x2b85(./tmp/.ICE-unix/857), skipping: No such file or directory (err 2)</div><div>(00.003303) Warn (sk-unix.c:353): Can't stat socket 0x2c8e(./var/run/wpa_supplicant/wlan0), skipping: No such file or directory (err 2)</div><div>(00.003359) Warn (sk-unix.c:353): Can't stat socket 0x2ba8(./run/user/1000/keyring-onPV5c/control), skipping: No such file or directory (err 2)</div><div>(00.003421) Warn (sk-unix.c:353): Can't stat socket 0x2bb7(./run/user/1000/keyring-onPV5c/ssh), skipping: No such file or directory (err 2)</div><div>(00.003484) Warn (sk-unix.c:353): Can't stat socket 0x2dc1(./tmp/.X11-unix/X0), skipping: No such file or directory (err 2)</div><div>(00.003540) Warn (sk-unix.c:353): Can't stat socket 0xa6c2(./tmp/.org.chromium.Chromium.1jzIWa/SingletonSocket), skipping: No such file or directory (err 2)</div><div>(00.003597) Warn (sk-unix.c:353): Can't stat socket 0x2ee6(./run/user/1000/pulse/native), skipping: No such file or directory (err 2)</div><div>(00.003656) Warn (sk-unix.c:353): Can't stat socket 0x2de6(./tmp/gpg-EqSqB4/S.gpg-agent), skipping: No such file or directory (err 2)</div><div>(00.003709) Warn (sk-unix.c:353): Can't stat socket 0x1be5(./var/run/libvirt/virtlockd-sock), skipping: No such file or directory (err 2)</div><div>(00.003762) Warn (sk-unix.c:353): Can't stat socket 0x2ee8(./run/user/1000/pulse/dbus-socket), skipping: No such file or directory (err 2)</div><div>(00.003830) Warn (sk-unix.c:353): Can't stat socket 0x1be8(./run/acpid.socket), skipping: No such file or directory (err 2)</div><div>(00.003968) Warn (sk-unix.c:353): Can't stat socket 0x1bea(./var/run/avahi-daemon/socket), skipping: No such file or directory (err 2)</div><div>(00.004036) Warn (sk-unix.c:353): Can't stat socket 0x1bed(./var/run/criu-service.socket), skipping: No such file or directory (err 2)</div><div>(00.004220) Warn (sk-unix.c:353): Can't stat socket 0xa504(./run/acpid.socket), skipping: No such file or directory (err 2)</div><div>(00.004299) Warn (sk-unix.c:353): Can't stat socket 0x350d(./run/user/1000/pulse/native), skipping: No such file or directory (err 2)</div><div>(00.004454) Warn (sk-unix.c:353): Can't stat socket 0x351c(./run/user/1000/keyring-onPV5c/pkcs11), skipping: No such file or directory (err 2)</div><div>(00.004606) Warn (sk-unix.c:353): Can't stat socket 0x34f2(./run/user/1000/pulse/native), skipping: No such file or directory (err 2)</div><div>(00.004679) Warn (sk-unix.c:353): Can't stat socket 0x3902(./run/user/1000/keyring-onPV5c/pkcs11), skipping: No such file or directory (err 2)</div><div>(00.004820) Warn (sk-unix.c:353): Can't stat socket 0xda04(./tmp/9BA4686616EF5FDC8957B2D56E0FDFA1E2C0E01D.31.0.1650.63_service_ipc), skipping: No such file or directory (err 2)</div><div>(00.004889) Warn (sk-unix.c:353): Can't stat socket 0x34b0(./run/user/1000/pulse/native), skipping: No such file or directory (err 2)</div><div>(00.005000) Warn (sk-unix.c:353): Can't stat socket 0xa644(./run/user/1000/pulse/native), skipping: No such file or directory (err 2)</div><div>(00.005137) Warn (sk-unix.c:353): Can't stat socket 0x31b4(./run/user/1000/keyring-onPV5c/pkcs11), skipping: No such file or directory (err 2)</div><div>(00.005211) Warn (sk-unix.c:353): Can't stat socket 0x10cbe(./run/user/1000/pulse/native), skipping: No such file or directory (err 2)</div><div>(00.005233) Warn (sk-unix.c:353): Can't stat socket 0x7fc8(./run/user/1000/wayland-0), skipping: No such file or directory (err 2)</div><div>(00.010486) Error (files.c:245): Can't dump file 8 of that type [600] (anon )</div><div>(00.010533) Error (cr-dump.c:1491): Dump files (pid: 2496) failed with -1</div><div>(00.010837) Error (cr-dump.c:1811): Dumping FAILED.</div><div>root@zephyr:/var/tmp/systemd-criu# pstree -p 2496</div><div>systemd(2496)─┬─agetty(2526)</div><div> ├─dbus-daemon(2523)</div><div> ├─systemd-journal(2506)</div><div> └─systemd-logind(2522)</div><div><span> </span></div><div>I guess it is this line?</div><div><br></div><div>(00.010486) Error (files.c:245): Can't dump file 8 of that type [600] (anon ), which would refer to this:</div><div><div>systemd 2496 root 8u 0000 0,9 0 4507 anon_inode</div><div>from lsof</div><div>which I have no idea what this is.</div><div><br></div><div>I spawned this with systemd-nspawn -b</div><div><br></div><div>... trying without -b:</div><div><br></div><div><div>root@zephyr:/var/tmp/systemd-criu# criu dump -t 10414</div><div>(00.001500) Warn (sk-unix.c:353): Can't stat socket 0x2b11(./tmp/ssh-MezaRkkHlqm2/agent.816), skipping: No such file or directory (err 2)</div><div>(trimmed)</div><div>(00.004377) Warn (sk-unix.c:353): Can't stat socket 0x2812(./run/systemd/journal/stdout), skipping: No such file or directory (err 2)</div><div>(00.012143) Error (mount.c:336): Mount 119 (master_id: 1 shared_id: 0) has unreachable sharing</div><div>(00.012410) Error (namespaces.c:445): Namespaces dumping finished with error 65280</div><div>(00.012510) Error (cr-dump.c:1811): Dumping FAILED.</div><div>root@zephyr:/var/tmp/systemd-criu# pstree -p 10414</div><div>bash(10414)</div><div>root@zephyr:/var/tmp/systemd-criu# pstree -p 10413</div><div>systemd-nspawn(10413)───bash(10414)</div></div><div><br></div><blockquote><blockquote>etc....<br><br>The mount namespace has a folder bind mounted to /<br><br>-Shawn<br><br>Thanks,<br>Pavel</blockquote></blockquote></div></div></div></body></html>