Changes

Jump to: navigation, search

User Guide/Operations on Containers

1,169 bytes added, 11:06, 23 January 2009
added Deleting container
# '''vzmigrate --online my_node.com 101'''
== Moving Container Within Hardware Node ==
== Copying Container Within Hardware Node ==
== Deleting Container ==
 
You can delete a Container that is not needed anymore with the <code>vzctl destroy ''CTID''</code> command. This command removes the Container private area completely and renames the Container configuration file and action scripts by appending the <code>.destroyed</code> suffix to them.
 
{{Note|Since vzctl-3.0.24, you can also use the vzctl delete command introduced in Virtuozzo Containers 4.0 to remove Containers from your Hardware Node. This command has the syntax identical to vzctl destroy and is meant to replace the latter in the future.}}
 
A running Container cannot be destroyed with the <code>vzctl destroy</code> command. The example below illustrates destroying Container 101:
 
# vzctl destroy 101
 
Destroying Container private area: /vz/private/101
 
Container is currently mounted (unmount first)
 
# vzctl stop 101
 
Stopping Container ...
 
Container was stopped
 
Container is unmounted
 
# vzctl destroy 101
 
Destroying Container private area: /vz/private/101
 
Container private area was destroyed
 
# ls /etc/vz/conf/101.*
 
/etc/vz/conf/101.conf.destroyed
 
# vzctl status 101
 
VEID 101 deleted unmounted down
 
If you do not need the backup copy of the Container configuration files (with the .destroyed suffix), you may delete them manually.
== Disabling Container ==
== Suspending Container ==

Navigation menu