The procedure described in the related KB article available at https://www.axigen.com/kb/show/333 is used to compact the message storages of a domain. However, it is recommended to also periodically compact the domain and object storages, as this reduces their fragmentation and brings benefits in terms of performance.
The following steps can be used to compact the domain and object storages:
Log into the Axigen CLI interface using the command:
telnet 127.0.0.1 7000
<login> user admin <password> your_admin_password
Type the commands:
update domain domain_name list storages
where domain_name is replaced with the actual name of your domain. The output of the above CLI commands will be similar to the one below:
<#> update domain example.test +OK: command successful <domain#> list storages The list of storages registered to AXIGEN: 00-00-F282-57E81C27-26588D49 (URI: file:///var/opt/axigen/domains/example.test/?maxFileSize=1048576&maxFiles=128) 01-00-0F46-57E81C27-2C89DDF3 (URI: file:///var/opt/axigen/domains/example.test/objects/?maxFileSize=1048576&maxFiles=128) 02-00-DE4C-57E81C27-4EA3F57B (URI: file:///var/opt/axigen/domains/example.test/messages/?maxFileSize=1048576&maxFiles=128) +OK: command successful <domain#>
The first line from the output of the "list storages" command refers to the domain storage and the second line refers to the object storage.
The first field on each line represents the unique storage ID, or in short, usid. For the domain storage the usid always starts with 00 while for the object storage it always starts with 01 and for the message storages it always starts with 02. The actual values of the storage IDs and paths will be different in your output but you may identify the usid for the domain and object storages by the first two characters.
To compact the domain and object storages type the following CLI commands:
compact storage usid <domain_storage_usid> forced compact storage usid <object_storage_usid> forced
where <domain_storage_usid> and <object_storage_usid> will be the actual storage IDs taken from the "list storages" command. For the above example, the commands will be:
- to compact the domain storage:
compact storage usid 00-00-F282-57E81C27-26588D49 forced
- to compact the object storage:
compact storage usid 01-00-0F46-57E81C27-2C89DDF3 forced