/
Reset Dbvisit Components Repository

Reset Dbvisit Components Repository

Resetting Dbvisit Components repositories enables users to fix various issues such as repository corruption or restting all configuration settings back to their original values.

Each component: Dbvagenmanager and dbvcontrol has specific type of repository and they must be reset individually.

There are three reset levels by which you can reset the repositories for dbvagentmanager and dbvcontrol:

  • Mirror: Removes all mirrored repos under standbymp/db/mirrors (effective only for dbvcontrol).

  • Tasks and events: Removes all mirrors as well as the tasks, events, and executions.

  • Factory reset: resets all the repos to state after installation (all configurations and user settings are lost)

During the reset, all the current repository db files are automatically backed up to <DBVISIT_BASE>/reset-backup directory.

1. Considerations

While Dbvagentmanager and dbvcontrol repositories are separated, we always recommend to perform reset on same level for all other components.

For example, if there is a need to reset dbvcontrol on task-events level, we recommend to perform reset on this level for all connected dbvagentmanagers as well. Same is valid for factory-settings level. Mirrors level for dbvcontrol is the only exception as it is enough to perform the mirror reset on dbvcontrol host only.

When resetting repositories on multiple hosts, we recommend to:

  • stop dbvisit components on all affected hosts

  • perform the repository reset

  • start dbvisit components on all affected hosts

2. Resetting Dbvagentmanager repository

Before resetting dbvagentmanager repository, it is recommended to stop dbvagentmanager as per: Starting and Stopping Dbvisit StandbyMP | 2. Windows

You can then reset dbvagentmanager repository for different levels by running on Linux:

cd /usr/dbvisit/standbymp/bin ./dbvagentmanager reset-repo --level mirrors ./dbvagentmanager reset-repo --level tasks-events ./dbvagentmanager reset-repo --level factory-settings

on Windows:

cd "C:\Program Files\Dbvisit\standbymp\bin" dbvagentmanager reset-repo --level mirrors dbvagentmanager reset-repo --level tasks-events dbvagentmanager reset-repo --level factory-settings

Once the reset is done, start dbvagentmanager as per: Starting and Stopping Dbvisit StandbyMP | 2. Windows

3. Resetting Dbvcontrol repository

Before resetting dbvcontrol repository, it is recommended to stop dbvcontrol as per: Starting and Stopping Dbvisit StandbyMP | 2. Windows

You can then reset dbvagentmanager repository for different levels by running on Linux:

cd /usr/dbvisit/standbymp/bin ./dbvcontrol reset-repo --level mirrors ./dbvcontrol reset-repo --level tasks-events ./dbvcontrol reset-repo --level factory-settings

on Windows:

cd "C:\Program Files\Dbvisit\standbymp\bin" dbvcontrol reset-repo --level mirrors dbvcontrol reset-repo --level tasks-events dbvcontrol reset-repo --level factory-settings

Once the reset is done, start dbvcontrol as per: Starting and Stopping Dbvisit StandbyMP | 2. Windows

Related content