Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Ploop/Getting started

28 bytes removed, 03:41, 11 November 2014
more info and links to diskinodes
=== Converting an existing CT ===
1. Set some sane diskspace value (which will be used as a size of newly created ploop image). Here is Stop the example to set diskspace to 10 gigabytescontainer: vzctl set stop ''CTID'' --diskspace 10G --save
2. Comment out <code>DISKINODES</code> setting from CT config (see Set some sane diskspace value, and reset the [[../diskinodes/]] value. New value for more info)diskspace will be used as a size of newly created ploop image. Here is the example to set diskspace to 10 gigabytes: sed -i.bak 's/^DISKINODES=/#DISKINODES=/g' /etc/vz/conf/vzctl set ''CTID''.conf--diskspace 10G --diskinodes 0 --save
3. Convert:
vzctl stop ''CTID''; vzctl convert ''CTID''
== Resizing a ploop image ==
* resize can safely be performed online (i.e. when container is running)
* there is no need to specify two values for diskspace (unlike simfs, there is no soft and hard quota).
* there is no way to limit or change the number of inodes available for a an existing container (i.e. option '''--diskinodes''' is ignored). See [[../diskinodes/]] for more details
== Showing disk space usage / limits ==