Question


On the backup server, in /onapp/templates, there are a lot of files with unfamiliar names, such as b4rnx5z4jrxk41_20150119100943. What are they for? Can we delete them?


Environment


OnApp 5.x, 6.x


Answer


Files similar to the b4rnx5z4jrxk41_20150119100943 file are custom templates.

To safely delete the files:

  1. Run the following database command to determine the templates in use:
mysql> select id, label from templates where file_name='xxxxx';
CODE

Where:

file_name - the file you are checking


       2. Compare this template to check if it is in use by a virtual server:

mysql> select id, identifier, hostname, label from virtual_machines where template_id=xx;>
CODE

Where: 

template_id - the ID from the first command


If the template is not in use by a virtual server, it can be safely deleted.