Important Update: Cohesity Products Knowledge Base Articles
All Cohesity Knowledge Base Articles are now managed via the Cohesity Support Portal: https://support.cohesity.com/s/searchunify. The Knowledge Base articles available here will not reflect the latest information or may no longer be accessible.
Description
The dbdefrag script is used to defragment the OpsCenter database.
NOTE: Always take an online backup of the OpsCenter Database before performing defragmentation using the dbbackup script (It backs up the database files, database password files, and encryption key file in the backup directory that you specified):
Windows:
<install_path>\OpsCenter\server\bin\dbbackup.bat X:\MyDbBackupFolder
UNIX:
<install_path>/SYMCOpsCenterServer/bin/dbbackup.sh /my_db_backup_dir
To defragment the OpsCenter database run the following command (there are no arguments for the command):
Windows:
<install_path>\OpsCenter\server\bin\dbdefrag.bat
UNIX:
<install_path>/SYMCOpsCenterServer/bin/dbdefrag.sh
Note:
- dbdefrag should be run monthly.
- dbdefrag should be run from a console session - not a remote session that might timeout
- Ensure OpsCenter is not accessible while dbdefrag is running.
- There needs to be at least two times the size of the database of disk space available.
How can the size of the database be determined?
<install_path>\OpsCenter\Server\db\data
UNIX:
<install_path>/INSTALL_PATH/SYMCOpsCenterServer/db/data