Changes

Jump to navigation Jump to search
131 bytes added ,  09:04, 30 September 2019
m
→‎Limitations: Shell jobs are supported by the 'criu-ns' script
Line 3: Line 3:  
== Problem ==
 
== Problem ==
   −
When restoring a process tree without namespaces (i.e. into namespaces in which criu lives) one may frequently hit a "pid mismatch" problem. It happens when a process CRIU tries to restore has a PID which is already owned by some other process living in this pid namespace. There's no way one can restore a process tree in ''this'' namespace, so the only solution is to unshare the new pid namespace and restore the tree into it.
+
When restoring a process tree without [[namespaces]] (i.e. into namespaces in which criu lives) one may frequently hit a "pid mismatch" problem. It happens when a process CRIU tries to restore has a PID which is already owned by some other process living in this pid namespace. There's no way one can restore a process tree in ''this'' namespace, so the only solution is to unshare the new pid namespace and restore the tree into it.
    
When doing so we have two problems:
 
When doing so we have two problems:
Line 14: Line 14:  
== Solution ==
 
== Solution ==
   −
All of the above -- the need to unshare stuff, getting pseudo-init, re-mounting /proc on dump and setns-ing on restore -- is solved by the <code>scripts/criu-ns</code> script. Use it the same way you use regular criu binary, all command line options are the same.
+
All of the above -- the need to unshare stuff, getting pseudo-init, re-mounting /proc on dump and setns-ing on restore -- is solved by the <code>scripts/criu-ns</code> script. It's a wrapper, use it the same way you use regular criu binary, all command line options are the same.
 +
 
 +
== Dumping processes restored by criu-ns ==
 +
 
 +
Note that if you want to dump process trees that were restored by <code>criu-ns</code>, you need to use <code>criu-ns dump</code>.
    
== Limitations ==
 
== Limitations ==
   −
# [[Advanced usage#shell jobs C.2R|Shell jobs]] are not supported
   
# The [[RPC#Swrk mode|swrk mode]] is not supported
 
# The [[RPC#Swrk mode|swrk mode]] is not supported
 
# Only the dump and restore are supported ([[incremental dumps]] are not possible)
 
# Only the dump and restore are supported ([[incremental dumps]] are not possible)
277

edits

Navigation menu