Changes

Jump to navigation Jump to search
112 bytes added ,  14:10, 18 September 2012
Line 65: Line 65:  
<pre>
 
<pre>
 
crtools dump  
 
crtools dump  
    --evasive-devices                # handle /dev/log usage bug
   
     --tcp-established                # allow for TCP connections dump
 
     --tcp-established                # allow for TCP connections dump
 
     -n net -n mnt -n ipc -n pid      # dump all the namespaces container uses
 
     -n net -n mnt -n ipc -n pid      # dump all the namespaces container uses
Line 75: Line 74:  
<pre>
 
<pre>
 
crtools restore
 
crtools restore
  --evasive-devices
   
   --tcp-established
 
   --tcp-established
 
   -n net -n mnt -n ipc -n pid
 
   -n net -n mnt -n ipc -n pid
Line 86: Line 84:     
We also find it useful to use the <code>--restore-detached</code> option for restore to make contianer reparent to init rather than hanging on a crtools process launched from shell. Another useful option is the <code>--pidfile</code> one -- you will be able to find out the host-side pid of a container init after restore.
 
We also find it useful to use the <code>--restore-detached</code> option for restore to make contianer reparent to init rather than hanging on a crtools process launched from shell. Another useful option is the <code>--pidfile</code> one -- you will be able to find out the host-side pid of a container init after restore.
 +
 +
Also note, that there's a BUG in how LXC prepares the /dev filesystem for a container which sometimes makes it impossible to dump and container. The <code>--evasive-devices</code> option can help.
    
More details on the option mentioned can be found in [[Usage]] and [[Advanced usage]] pages.
 
More details on the option mentioned can be found in [[Usage]] and [[Advanced usage]] pages.

Navigation menu