Avo Assure Database Configuration
Instructions to configure Avo Assure Database
Last updated
Instructions to configure Avo Assure Database
Last updated
Ensure ‘Microsoft Visual C++ 2015 Redistributable Update 3 RC’ is installed on the system for both x64 and x86 versions. This can be ensured by observing the list of programs installed on the system as follows: Control Panel > Programs > Programs and Features
2. If the above software is not available, then the same can be obtained here. Make sure to download and install both files:
vc_redist.x64.exe
vc_redist.x86.exe
Extract the 'AvoAssureDB.zip' or 'AvoAssureDB.7z' file.
2. Navigate to the 'AvoAssureDB' folder. 3. Open 'db.conf' file present in 'conf' folder.
4. Update fields as follows:
‘path’ in ‘systemLog’ to “<absolute_path_of_AvoAssureDB_root_folder>/logs.txt”.
'dbPath’ in ‘storage’ to “<absolute_path_of_AvoAssureDB_root_folder>/data”.
‘bindIp’ in ‘net’ to the system IP of the database machine.
'keyFile' in 'security' to “<absolute_path_of_AvoAssureDB_root_folder>/conf/auth.key”
Leave other fields unchanged.
5. Save and close the db.conf file.
Open an elevated command prompt in the AvoAssureDB folder.
Type ‘run.bat’ and hit enter.
Note: Make sure the database is in running state (after performing steps mentioned here) and the next step is executed only after the configuration file is updated (as mentioned here).
Open an elevated command prompt in the AvoAssureDB folder and type either of the following command-line options to initialize AvoAssureDatabase replica set:
initiate-replica.bat <username> <password> Note: If no IP and port are provided, then by default, IP will be assumed as 127.0.0.1 and port will be assumed as 27017.
To pass port number and host details (optional): initiate-replica.bat <username> <password> <port> <hostname/ip>
For help: initiate-replica.bat help
3. Once the initiation of the replica set is completed, then this command prompt can be closed.
Close the command prompt window in which the AvoAssureDB is running.
Open an elevated command prompt in the AvoAssureDB folder.
Type ‘install-service.bat’ and hit enter.
Open an elevated command prompt in the AvoAssureDB folder. Note: AvoAssureDatabase service should already be installed.
Type ‘start-service.bat’ and hit enter.
Open an elevated command prompt in the AvoAssureDB folder. Note: AvoAssureDatabase service should be running.
Type ‘stop-service.bat’ and hit enter.
Open an elevated command prompt in the AvoAssureDB folder. Note: AvoAssureDatabase service should be in the stopped state.
Type ‘remove-service.bat’ and hit enter.
Open an elevated command prompt in the AvoAssureDB folder.
Run the following commands in sequential order i.e., only after the previous command has been completed:
Type ‘stop-service.bat’ and hit enter.
Type ‘remove-service.bat’ and hit enter.
Type ‘install-service.bat’ and hit enter.
Type ‘start-service.bat’ and hit enter.
If the Avo Assure database has already been provided earlier, kindly follow these steps before proceeding ahead with the update process.
Stop the database instance if it is already running.
Take a backup of the database and store the backup in a safe location.
Start the database instance again and ensure that the database is running.
Follow these steps to update the database with the latest patch:
Unpack the ‘AvoAssureDB_updaterpackage.zip’ into a folder.
Navigate to the ‘AvoAssureDB_updaterpackage’ folder.
Replace the values of 'host' and 'port' variables in config.json with the same values that are present in the Avo AssureDB folder.
Open the command prompt in the same location.
Run all the dbUpdater* files using the below-specified command in the command prompt: python <dbupdater_filename.py>
Close the command prompt once the dbupdater* files have been successfully executed.
Replication works by setting up replica sets (clones of database) in mongo database servers. This basically means a cluster containing multiple mongo database servers (also referred to as nodes).
These nodes can be in the same system or different systems/ servers/ continents.
There is one primary node with which the mongo database interacts and internally mongo database syncs these changes to other nodes in the cluster.
3. At any given point in time, if the primary node goes down then a new primary node is selected automatically from the secondary nodes.
4. The entire process only takes a few seconds and therefore, data availability is still maintained.
This method ensures high availability. On top of this, backup strategies should also be used.
This should be performed when either the IP of the database system has been changed or the database system itself has been changed.
This should not be performed if the database is being cloned (if the database is still active in the previous system). If the intention is to clone the database then refer here.
Navigate to AvoAssureDB/bin and open a command prompt (or terminal) in that location.
Execute the following commands:
This should be performed if the intention is to clone the database.
Navigate to the conf folder in AvoassureDB.
Open db.conf file.
In db.conf file, comment security, and replication settings, as shown below:
4. Restart the DB.
5. Navigate to AvoAssureDB/bin and open a command prompt (or terminal) in that location.
6. Execute the following commands:
7. In db.conf file, uncomment security and replication settings.
8. Restart the DB.
9. Perform the steps mentioned here.
Navigate to the conf folder in AvoassureDB.
Open db.conf file.
In db.conf file, comment security, and replication settings, as shown below:
4. Restart the DB.
5. Navigate to AvoAssureDB/bin and open a command prompt (or terminal) in that location.
6. Execute the following commands:
7. In db.conf file, uncomment security settings and do not uncomment replication settings.
8. Restart the DB.
There are easy methods for backup and recovery. The user can choose any one of the below.
Zip the entire database package.
This method requires downtime.
To take backup:
Stop all the application servers.
Stop Avo Assure database.
Zip the Avo Assure database folder.
Start Avo Assure database.
Start all the application servers.
To restore the backup:
Stop all the application servers.
Stop Avo Assure database (if running).
Unzip the Avo Assure database folder.
Start Avo Assure database.
Start all the application servers.
Take backup using mongo database utility.
This method does not require downtime.
To take backup:
Navigate to mongodb > bin folder
Run below command-
mongodump --gzip --archive="datadump-avoassuredb.zip" --db=avoassure -u avoassureadmin -p Welcome@dmin –authenticationDatabase
After command execution is completed, a zip file will be available.
To restore the backup:
Navigate to mongodb > bin folder
Run below command-
mongorestore -u avoassureadmin -p Welcome@dmin --authenticationDatabase admin --gzip --archive="datadump-avoassuredb.zip" --drop --maintainInsertionOrder –preserveUUID
After command execution is completed, changes in the database will be reflected.
In case any of the above-mentioned steps fail, ensure the following points have been taken care of:
Commands are being run with an elevated command prompt (i.e., prompt has Administrator privileges).
Ensure port 27017 is available and not used by any other program.
There are no spaces or special characters (such as ! @ # $ % ^ & ( ) + - = { } , . ; ' [ ] ~ `) in the folder name (and entire path) where the Avo Assure Database is being extracted. Example:
Valid: D:\AvoAssure\Database\AvoAssureDB\
Invalid: D:\AvoAssure install files\Database\AvoAssureDB\
Invalid: D:\AvoAssure\db@files\AvoAssureDB\
If all the above scenarios hold true and the database is still not running, please contact Avo Assure Support Team.