OPenVZ: IS it safe to remove config files of destroyed containers?

64 Views Asked by At

When I delete a container, it leaves behind the following config files:

<CTID>.conf.destroyed               
<CTID>.mount.destroyed  
<CTID>.start.destroyed

How can I get rid of these files? Can I safely remove them? Are there any other files leaves behind by destroying a container? here it says that it removes all the files and renames the config files after destroying a container.

1

There are 1 best solutions below

0
On

You can safely remove those files if you have no intention of ever restoring those containers. You could also look in /etc/vz/conf and see if there are any other configuration files that are left.

The link you posted is for Virtuozzo 4.0, that is a very old version and IIRC was not exactly the same vzctl as shipped with OpenVZ at that time. You should be using the OpenVZ documentation for the version of OpenVZ you currently have installed.

OpenVZ 6 and earlier documentation (legacy)

OpenVZ 7 documentation