<div dir="ltr"><div>Hi Andrew, </div><div><br></div><div>You&#39;re right, there was no &quot;cpuset&quot; on the Rpi where I tried the restoring process, whereas it&#39;s present on the other one..</div><div>If I swap the roles between the two Pis, the checkpoint/restore succeeds :)</div><div><br></div><div>I dont&#39;t really understand how come the configuration is different as I was using the exact same image loaded on the SD card..</div><div>Do you have an idea why cpuset it disabled on one Rpi, or how I could enable it ? </div><div><br></div><div>Thanks a lot, </div><div>Alex.</div><div><br></div><div><br></div><div>Raspberry 1 : (Restore on this Rpi)</div><div>pi@raspberrypi:~ $ cat /proc/cgroups </div><div>#subsys_name<span style="white-space:pre-wrap">        </span>hierarchy<span style="white-space:pre-wrap">        </span>num_cgroups<span style="white-space:pre-wrap">        </span>enabled</div><div>cpu<span style="white-space:pre-wrap">                </span>2<span style="white-space:pre-wrap">        </span>1<span style="white-space:pre-wrap">        </span>1</div><div>cpuacct<span style="white-space:pre-wrap">        </span>2<span style="white-space:pre-wrap">        </span>1<span style="white-space:pre-wrap">        </span>1</div><div>memory<span style="white-space:pre-wrap">        </span>0<span style="white-space:pre-wrap">        </span>1<span style="white-space:pre-wrap">        </span>0</div><div>devices<span style="white-space:pre-wrap">        </span>3<span style="white-space:pre-wrap">        </span>1<span style="white-space:pre-wrap">        </span>1</div><div>freezer<span style="white-space:pre-wrap">        </span>4<span style="white-space:pre-wrap">        </span>1<span style="white-space:pre-wrap">        </span>1</div><div>net_cls<span style="white-space:pre-wrap">        </span>5<span style="white-space:pre-wrap">        </span>1<span style="white-space:pre-wrap">        </span>1</div><div>blkio<span style="white-space:pre-wrap">                </span>6<span style="white-space:pre-wrap">        </span>1<span style="white-space:pre-wrap">        </span>1</div><div><br></div><div>Raspberry 2 : (Snapshot on this Rpi)</div><div>#subsys_name<span style="white-space:pre-wrap">        </span>hierarchy<span style="white-space:pre-wrap">        </span>num_cgroups<span style="white-space:pre-wrap">        </span>enabled</div><div>cpuset<span style="white-space:pre-wrap">        </span>2<span style="white-space:pre-wrap">        </span>1<span style="white-space:pre-wrap">        </span>1</div><div>cpu<span style="white-space:pre-wrap">                </span>3<span style="white-space:pre-wrap">        </span>1<span style="white-space:pre-wrap">        </span>1</div><div>cpuacct<span style="white-space:pre-wrap">        </span>3<span style="white-space:pre-wrap">        </span>1<span style="white-space:pre-wrap">        </span>1</div><div>memory<span style="white-space:pre-wrap">        </span>0<span style="white-space:pre-wrap">        </span>1<span style="white-space:pre-wrap">        </span>0</div><div>devices<span style="white-space:pre-wrap">        </span>4<span style="white-space:pre-wrap">        </span>1<span style="white-space:pre-wrap">        </span>1</div><div>freezer<span style="white-space:pre-wrap">        </span>5<span style="white-space:pre-wrap">        </span>1<span style="white-space:pre-wrap">        </span>1</div><div>net_cls<span style="white-space:pre-wrap">        </span>6<span style="white-space:pre-wrap">        </span>1<span style="white-space:pre-wrap">        </span>1</div><div>blkio<span style="white-space:pre-wrap">                </span>7<span style="white-space:pre-wrap">        </span>1<span style="white-space:pre-wrap">        </span>1</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-19 23:26 GMT+02:00 Andrew Vagin <span dir="ltr">&lt;<a href="mailto:avagin@virtuozzo.com" target="_blank">avagin@virtuozzo.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Alex,<br>
<br>
Can you show /proc/cgroups from both hosts?<br>
<div><div class="h5"><br>
On Thu, May 19, 2016 at 06:37:10PM +0200, alex vk wrote:<br>
&gt;<br>
&gt; pi@raspberrypi:~/criu/criu $ ./migrate-ssh.sh<br>
&gt; Warn  (autofs.c:74): Failed to find pipe_ino option (old kernel?)<br>
&gt; Connection to 192.168.0.2 closed.<br>
&gt; Snapshoted<br>
&gt; cgroup.img                                    100% 1948     1.9KB/s   00:00<br>
&gt; core-943.img                                  100%  602     0.6KB/s   00:00<br>
&gt; fdinfo-2.img                                  100%   80     0.1KB/s   00:00<br>
&gt; fs-943.img                                    100%   18     0.0KB/s   00:00<br>
&gt; ids-943.img                                   100%   32     0.0KB/s   00:00<br>
&gt; inetsk.img                                    100%  251     0.3KB/s   00:00<br>
&gt; inventory.img                                 100%   38     0.0KB/s   00:00<br>
&gt; mm-943.img                                    100% 1862     1.8KB/s   00:00<br>
&gt; pagemap-943.img                               100%  242     0.2KB/s   00:00<br>
&gt; pages-1.img                                   100%  252KB 252.0KB/s   00:00<br>
&gt; pstree.img                                    100%   26     0.0KB/s   00:00<br>
&gt; reg-files.img                                 100%  994     1.0KB/s   00:00<br>
&gt; sigacts-943.img                               100%  752     0.7KB/s   00:00<br>
&gt; stats-dump                                    100%   36     0.0KB/s   00:00<br>
&gt; tty.img                                       100%   30     0.0KB/s   00:00<br>
&gt; tty-info.img                                  100%  178     0.2KB/s   00:00<br>
&gt; Image transfered<br>
&gt; (00.082257) Pagemap is fully functional<br>
&gt; (00.082543) Found task size of 7f000000<br>
&gt; (00.082892) Reading image tree<br>
&gt; (00.083089) Add mnt ns 5 pid 943<br>
&gt; (00.083211) Migrating process tree (GID 943-&gt;805 SID 791-&gt;741)<br>
&gt; (00.083259) Will restore in 0 namespaces<br>
&gt; (00.083295) NS mask to use 0<br>
&gt; (00.083331) Collecting 39/18 (flags 1)<br>
&gt; (00.083428) Collected [dev/pts/0] ID 0x1<br>
&gt; (00.083486) Collected [lib/arm-linux-gnueabihf/<a href="http://libresolv-2.19.so" rel="noreferrer" target="_blank">libresolv-2.19.so</a>] ID 0x5<br>
&gt; (00.083536) Collected [lib/arm-linux-gnueabihf/<a href="http://libnss_dns-2.19.so" rel="noreferrer" target="_blank">libnss_dns-2.19.so</a>] ID 0x6<br>
&gt; (00.083581) Collected [lib/arm-linux-gnueabihf/<a href="http://libnss_files-2.19.so" rel="noreferrer" target="_blank">libnss_files-2.19.so</a>] ID 0x7<br>
&gt; (00.083626) Collected [lib/arm-linux-gnueabihf/<a href="http://libc-2.19.so" rel="noreferrer" target="_blank">libc-2.19.so</a>] ID 0x8<br>
&gt; (00.083672) Collected [lib/arm-linux-gnueabihf/libgcc_s.so.1] ID 0x9<br>
&gt; (00.083715) Collected [lib/arm-linux-gnueabihf/<a href="http://libm-2.19.so" rel="noreferrer" target="_blank">libm-2.19.so</a>] ID 0xa<br>
&gt; (00.083759) Collected [usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.20] ID 0xb<br>
&gt; (00.083804) Collected [lib/arm-linux-gnueabihf/libz.so.1.2.8] ID 0xc<br>
&gt; (00.083847) Collected [usr/lib/arm-linux-gnueabihf/libenet.so.7.0.0] ID 0xd<br>
&gt; (00.083892) Collected [usr/lib/arm-linux-gnueabihf/libarmmem.so] ID 0xe<br>
&gt; (00.083935) Collected [lib/arm-linux-gnueabihf/<a href="http://ld-2.19.so" rel="noreferrer" target="_blank">ld-2.19.so</a>] ID 0xf<br>
&gt; (00.083978) Collected [lib/arm-linux-gnueabihf/libnss_mdns4_minimal.so.2] ID<br>
&gt; 0x10<br>
&gt; (00.084022) Collected [usr/lib/cube2/cube2_server] ID 0x11<br>
&gt; (00.084064) Collected [usr/lib/cube2] ID 0x12<br>
&gt; (00.084104) Collected [.] ID 0x13<br>
&gt; (00.084151)  `- ... done<br>
&gt; (00.084182) Collecting 52/56 (flags 0)<br>
&gt; (00.084259) No remap-fpath.img image<br>
&gt; (00.084318)  `- ... done<br>
&gt; (00.084384) Collecting 42/21 (flags 0)<br>
&gt; (00.084549)  `- ... done<br>
&gt; (00.084991) cg: Preparing cgroups yard (cgroups restore mode 0x4)<br>
&gt; (00.089011) cg: Opening .criu.cgyard.lg48ci as cg yard<br>
&gt; (00.089161) cg:  Making controller dir .criu.cgyard.lg48ci/blkio (blkio)<br>
&gt; (00.089465) cg: Determined cgroup dir blkio/ already exist<br>
&gt; (00.089495) cg: Skip restoring properties on cgroup dir blkio/<br>
&gt; (00.089593) cg:  Making controller dir .criu.cgyard.lg48ci/net_cls (net_cls)<br>
&gt; (00.089862) cg: Determined cgroup dir net_cls/ already exist<br>
&gt; (00.089899) cg: Skip restoring properties on cgroup dir net_cls/<br>
&gt; (00.089978) cg:  Making controller dir .criu.cgyard.lg48ci/freezer (freezer)<br>
&gt; (00.090218) cg: Determined cgroup dir freezer/ already exist<br>
&gt; (00.090257) cg: Skip restoring properties on cgroup dir freezer/<br>
&gt; (00.090334) cg:  Making controller dir .criu.cgyard.lg48ci/devices (devices)<br>
&gt; (00.090646) cg: Determined cgroup dir devices/ already exist<br>
&gt; (00.090708) cg: Skip restoring properties on cgroup dir devices/<br>
&gt; (00.090811) cg:  Making controller dir .criu.cgyard.lg48ci/cpu,cpuacct<br>
&gt; (cpu,cpuacct)<br>
&gt; (00.091066) cg: Determined cgroup dir cpu,cpuacct/ already exist<br>
&gt; (00.091123) cg: Skip restoring properties on cgroup dir cpu,cpuacct/<br>
&gt; (00.091229) cg:  Making controller dir .criu.cgyard.lg48ci/cpuset (cpuset)<br>
&gt; (00.091431) Error (cgroup.c:1562): cg:  Can&#39;t mount controller dir<br>
&gt; .criu.cgyard.lg48ci/cpuset: No such file or directory<br>
&gt;<br>
&gt; Hi everyone,<br>
&gt;<br>
&gt; I&#39;m coming back to you because I<br>
&gt; still have a problem when<br>
&gt; restoring a snapshotted process<br>
&gt; from a given RPi2 on another<br>
&gt; RPi2.<br>
&gt;<br>
&gt; The snapshot/restore works well<br>
&gt; on the same RPi2 thanks to the<br>
&gt; patch :<br>
&gt; <a href="https://lists.openvz.org/" rel="noreferrer" target="_blank">https://lists.openvz.org/</a><br>
&gt; pipermail/criu/2016-April/<br>
&gt; 027743.html<br>
&gt; (Criu-dev version + patch and<br>
&gt; Kernel 3.18)<br>
&gt;<br>
&gt; However when I try to restore a<br>
&gt; snapshotted process from a given<br>
&gt; RPi2 on another RPi2. (with<br>
</div></div>&gt; exactly the same image installed  ssh -t<br>
&gt; on the SD card) I obtain the      <a href="mailto:pi@192.168.0.1">pi@192.168.0.1</a><br>
&gt; following error :                 &#39;pid=$(pidof                    scp<br>
&gt; (00.091431) Error                 cube2_server);                  <a href="mailto:pi@192.168.0.1">pi@192.168.0.1</a>:               sudo criu restore<br>
&gt; (cgroup.c:1562): cg:  Can&#39;t mount sudo criu dump -D echo          /home/pi/       echo &quot;Image   -d -D /home/pi/   echo &quot;Image restored&quot;<br>
&gt; controller dir                    /home/pi/         &quot;Snapshotted&quot; checkpoint/* /  transferred&quot;  checkpoint/       --------------------------------<br>
&gt; .criu.cgyard.lg48ci/cpuset: No    checkpoint/ -t                  home/pi/                      --shell-job<br>
&gt; such file or directory            $pid                            checkpoint/                   --tcp-established<br>
&gt; (the snapshot process has         --tcp-established<br>
&gt; succeeded on the first Rpi2)      --shell-job&#39;<br>
<span class="">&gt;<br>
&gt; The dir .criu.cgyard.lg48ci is<br>
&gt; indeed empty.<br>
&gt; CONFIG_CGROUPS and CONFIG_MEMCG<br>
&gt; are enabled (CONFIG_MEMCG_SWAP<br>
&gt; and CONFIG_MEMCG_KMEM are<br>
&gt; disabled) if that matters...<br>
&gt;<br>
&gt; Am I doing something wrong here ?<br>
&gt;<br>
&gt;<br>
&gt; Thanks again for your help,<br>
&gt;<br>
&gt; Alex<br>
&gt;<br>
&gt;<br>
&gt; Here is the simple script i&#39;m<br>
&gt; using to migrate and the full log<br>
&gt; of the restore:<br>
&gt;<br>
&gt; --------------------------------<br>
<br>
</span>&gt; _______________________________________________<br>
&gt; CRIU mailing list<br>
&gt; <a href="mailto:CRIU@openvz.org">CRIU@openvz.org</a><br>
&gt; <a href="https://lists.openvz.org/mailman/listinfo/criu" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/criu</a><br>
<br>
</blockquote></div><br></div>