Changes

Jump to: navigation, search

Man/vzctl.8

2,182 bytes added, 05:32, 4 April 2014
Automated import of articles *** existing text overwritten ***
<td width="80%">
<p>[<i>flags</i>] <b>snapshot-switch</b> |<i>CTID</i>[<b>snapshot-delete-skip-resume</b> ] [<ib>CTID--skip-config</ib> ] <b>--id</b>
<i>uuid</i></p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
 
<p><b>vzctl</b></p></td>
<td width="2%"></td>
<td width="80%">
 
<p>[<i>flags</i>] <b>snapshot-delete</b> <i>CTID</i>
<b>--id</b> <i>uuid</i></p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
[<b>--meminfo&nbsp;none</b>|<i>mode</i>:<i>value</i>]
[<b>--iptables&nbsp;</b><i>name</i>[<b>,</b>...]]
[<b>--netfilter&nbsp;disabled</b>|<b>stateless</b>|<b>stateful</b>|<b>full</b>]
[<b>--netdev_add&nbsp;</b><i>ifname</i>]
[<b>--netdev_del&nbsp;</b><i>ifname</i>]
<b>privvmpages:1</b>.</p>
==== Netfilter (iptables ) control parameters ==== <p style="margin-left:11%;"><b>--netfilter&nbsp;disabled</b>|<b>stateless</b>|<b>stateful</b>|<b>full</b></p> <p style="margin-left:22%;">Restrict access tonetfilter/iptables modules for a container. This optionreplaces obsoleted <b>--iptables</b>.</p> <p style="margin-left:22%; margin-top: 1em">The followingarguments can be used: <br>&bull; <b>disabled</b> -- no iptables allowed <br>&bull; <b>stateless</b> -- everything but conntracks and NATis allowed (i.e. filter and mangle) <br>&bull;&nbsp;<b>stateful</b> -- everything but NAT is allowed<br>&bull;&nbsp;<b>full</b> -- all netfilter functionality</p> <p style="margin-left:22%; margin-top: 1em">Note thatchanging this parameter requires container restart, soconsider using <b>--setmode</b> option.</p>
<p style="margin-left:11%;"><b>--iptables</b>
<i>name</i>[<b>,</b>...]</p>
<p style="margin-left:22%;"><b>Note</b> this option isobsoleted, <b>--netfilter</b> should be used instead.</p> <p style="margin-left:22%; margin-top: 1em">Allow to use the functionalityof <i>name</i> iptables module inside the container.Multiple comma-separated <i>name</i>s can be specified.</p>
<p style="margin-left:22%; margin-top: 1em">The default
ploop image file to the new size. Since there is no
soft/hard limit concept in ploop, second <i>num</i>, if
specified, is ignored. </p> <p style="margin-left:22%; margin-top: 1em">By default,ploop resize is done online, i.e. on a mounted ploop. Thisis a preferred way of doing resize. Although, in a rare casea container was using lots of disk space and should now beresized to a much smaller size, an offline resize might bemore appropriate. In this case, make sure the container isstopped and unmounted and use additional<b>--offline-resize</b> option</p> <p style="margin-left:22%; margin-top: 1em">Note that such ploopresize is NOTperformed on container start, so for consistency<b>--diskspace</b> must be used together with <b>--save</b>flag.</p>
<p style="margin-left:22%; margin-top: 1em">Suffixes
<p style="margin-left:11%;"><b>snapshot-switch</b>
<i>CTID</i> [<b>--skip-resume</b>] [<b>--skip-config</b>]<b>--id</b> <i>uuid</i></p>
<p style="margin-left:17%;">Switches the container to a
snapshot identified by <i>uuid</i>. Note that the current
container state and its file system state is lost! If givensnapshot contains CT memory dump, it and option<b>--skip-resume</b> is not specified, container is restored, otherwiseit is stopped. If snapshot contains CTconfiguration file, and option <b>--skip-config</b> is notspecified, container configuration file is stoppedrestored.</p>
<p style="margin-left:11%;"><b>snapshot-delete</b>
[<b>--layout&nbsp;simfs</b>|<b>ploop</b>[<b>:</b>{<b>expanded</b>|<b>plain</b>|<b>raw</b>}]]
[<b>--diskspace&nbsp;</b><i>kbytes</i>]
[<b>--diskinodes&nbsp;</b><i>num</i>]
[<b>--private&nbsp;</b><i>path</i>]
[<b>--root&nbsp;</b><i>path</i>]
<p style="margin-left:17%; margin-top: 1em">You can use
<b>--diskspace</b> option and <b>--diskinodes</b> options to specify container file systemsize. Note that forsize<b>ploop</b> layout, you will not be able to change inodesvalue later. </p> <p style="margin-left:17%; margin-top: 1em">If <b>DISKSPACE </b> is not specified either in the sampleconfiguration file used for creation or in global configuration file[[Man/vz.conf.5|<b>vz.conf</b>(5)]], this <b>--diskspace</b>parameter is required for<b>ploop</b> layout.</p>
<p style="margin-left:17%; margin-top: 1em">Suffixes
2,253
edits

Navigation menu