Dbvisit Standby MP 11.4 provides the repository repair utility for dbvagentmanger dbvagentmanager and dbvcontrol. There are three reset levels by which you can reset the repositories.
Mirror copies of the repository : Removes all mirrored repos under ($DBVISIT_BASE/standbymp/db/mirrors)
Tasks and events: Removes all mirrors as well as the tasks, events, and executions.
For dbvagentmanager, it remove removes all the agents agent repos , and DDC monitors monitor repos
For dbvcontrol, it removes the tasks and events from Director.db
Factory reset. Removes all the repos
Info |
---|
This option requires restart the services to reload the dbvagentmanager and dbvcontrol process with new repo |
Before removing any repo files, all the current repository db files are backed up to <DBVISIT_BASE>/reset-backup directory.
1. Dbvagentmanager
Code Block |
---|
[oracle@repotest1 bin]$ ./dbvagentmanager reset-repo -h reset local repositories Usage: dbvagentmanager reset-repo [flags] Flags: -h, --help help for reset-repo --level string Reset levels: mirrors, tasks-events, factory-setting [oracle@repotest1 bin]$ |
...
Code Block |
---|
[oracle@dbvel71 bin]$ ./dbvagentmanager reset-repo ? Are you sure you want to reset local repositories? Yes ? Reset level: [Use arrows to move, type to filter] > mirrors tasks and events factory settings [oracle@dbvel71 bin]$ ./dbvagentmanager reset-repo ? Are you sure you want to reset local repositories? Yes ? Reset level: mirrors Backing up current repositories to /usr/dbvisit/standbymp/reset_backup [oracle@dbvel71 bin]$ |
Restart Dbvagentnager services to load the process with new repoDbvagentmanager services
Code Block |
---|
sudo /opt/dbvisit/standbymp/bin/dbvagentmanager service stop sudo /opt/dbvisit/standbymp/bin/dbvagentmanager service start |
...
Code Block |
---|
dbvagentmanager reset-repo --level mirrors dbvagentmanager reset-repo --level tasks-events dbvagentmanager reset-repo --level factory-settings |
2. Dbvcontrol
Code Block |
---|
[oracle@repotest2 bin]$ ./dbvcontrol reset-repo -h reset local repositories Usage: dbvcontrol reset-repo [flags] Flags: -h, --help help for reset-repo --level string Reset levels: mirrors, tasks-events, factory-setting |
...
Code Block |
---|
[oracle@repotest2 bin]$ ./dbvcontrol reset-repo ? Are you sure you want to reset local repositories? Yes ? Reset level: tasks and events Backing up current repositories to /opt/dbvisit/standbymp/reset_backup |
Note |
---|
Factory resessting resetting of Dbvcontrol repo requires reimport of DDC file in GUI |
...
Restart Dbvcontrol services to load the process with new repo
Code Block |
---|
sudo /opt/dbvisit/standbymp/bin/dbvcontrol service stop sudo /opt/dbvisit/standbymp/bin/dbvcontrol service start |