How to compact the domain and object storages of a domain

This article describes how to compact the domain and object storages of a domain.

Resolution

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:

  1. Log into the Axigen CLI interface using the command:

    			telnet 127.0.0.1 7000
    		

    Authenticate:

    			<login> user admin
    			<password> your_admin_password
    		
  2. 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.

  3. 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
    		
Applies to
Releases: Axigen 8.0.xAxigen 8.1.xAxigen 8.2.xAxigen 9.0.xAxigen 10.0.x
OS: LinuxWindowsFreeBSDSolaris
Distros: RPM based distrosDEB based distrosUbuntuFreeBSD 8 amd64WindowsRPM based distros x64Solaris 10 x64FreeBSD 9.2FreeBSD 9.2 amd64