Recreate the Vertica Database in DX NetOps Performance Management
searchcancel
Recreate the Vertica Database in DX NetOps Performance Management
book
Article ID: 46236
calendar_today
Updated On: 12-17-2024
Products
CA Performance ManagementNetwork Observability
Issue/Introduction
This will tell you how to drop and recreate the Vertica database in a Performance Management system.
WARNING: By performing this you will lose all data. This is performed as a last resort solution for when you are unable to get the Vertica database back up again.
The DX NetOps Performance Management Data Repository Vertica database is unrecoverable. There are no backups available for use in restoration. How can we rebuild?
Environment
Dx NetOps Performance Management any version
Resolution
Complete the following steps to reset the environment.
Single Data Aggregator process
To obtain a list of device IPs and names before reset for use in rediscovery post rebuild run the following.
Enter the MySql DB password when prompted.
The default install path is referenced. Change as needed.
The output file is saved in /tmp. Change as needed if /tmp is not available for use.
Command:
/opt/CA/MySql/bin/mysql -uroot -p netqosportal -e "select td.itemname, REPLACE(inet6_ntoa(td.address),'::ffff:',''), IF(tdom.ItemName IS NULL, tdomi.ItemName, tdom.ItemName) from t_device td inner join t_domain tdom on td.domainid=tdom.itemid left join t_domain_i18n tdomi on td.domainid=tdomi.itemid where tdomi.cultureid='en-US' order by 3, 2;" > /tmp/IP-List.out
Remove the Data Aggregator (DA) Data Source (DS) from the NetOps Portal Manage Data Source page.
Go to Administration->Data Sources->Data Sources
Delete the DA DS and ONLY the DA DS.
No other DS entries need to be removed.
If the Delete option is not available ensure the users Role Rights include the Delete Data Sources Role Right.
Stop the DA & Data Collector (DC) Services before uninstalling them
Add the DA as a DS in the NetOps Portal Manage Data Source page
Go to Administration->Data Sources->Data Sources
Add a new DA DS using the reinstalled host details.
Fault Tolerant Data Aggregator process
To obtain a list of device IPs and names before reset for use in rediscovery post rebuild run the following. Enter the MySql DB password when prompted.
Enter the MySql DB password when prompted.
The default install path is referenced. Change as needed.
The output file is saved in /tmp. Change as needed if /tmp is not available for use.
Command:
/opt/CA/MySql/bin/mysql -uroot -p netqosportal -e "select td.itemname, REPLACE(inet6_ntoa(td.address),'::ffff:',''), IF(tdom.ItemName IS NULL, tdomi.ItemName, tdom.ItemName) from t_device td inner join t_domain tdom on td.domainid=tdom.itemid left join t_domain_i18n tdomi on td.domainid=tdomi.itemid where tdomi.cultureid='en-US' order by 3, 2;" > /tmp/IP-List.out
Remove the Data Aggregator (DA) Data Source (DS) from the NetOps Portal Manage Data Source page.
Go to Administration->Data Sources->Data Sources
Delete the DA DS and ONLY the DA DS.
No other DS entries need to be removed.
If the Delete option is not available ensure the users Role Rights include the Delete Data Sources Role Right.
Stop the DA & Data Collector (DC) Services before uninstalling them
It is important there is no trace of the install left after reboot.
Ensure the install directory structure is removed post reboot.
Clean out the shared data directory.
If the shared data directory contains custom Certifications, Metric Families, Extensions, Attributes or DeviceTypes.xml overrides be sure to save those off before cleaning things up further.
After saving custom files off to a safe location delete everything under the shared data directory.
NOTE: Restore the files save here after the new DA installs complete in step 6 below.
Leave the directory itself, no need to remove that.
Drop and then recreate the Data Repository (DR) DB via the Vertica adminTools UI.
Log into the DR DB cluster as the dradmin user and launch adminTools.
Restore any saved customizations from step 4.3.1 above.
Add the DA as a DS in the NetOps Portal Manage Data Source page
Go to Administration->Data Sources->Data Sources
Add a new DA DS using the reinstalled host details.
Additional Information
As always, please contact Broadcom support if you have further questions
Releases 21.2.7 and earlier using MySql 5.x releases:
/opt/CA/MySql/bin/mysql -uroot -p netqosportal -e "select td.itemname, REPLACE(v6_ntoa(td.address),'::ffff:',''), IF(tdom.ItemName IS NULL, tdomi.ItemName, tdom.ItemName) from t_device td inner join t_domain tdom on td.domainid=tdom.itemid left join t_domain_i18n tdomi on td.domainid=tdomi.itemid where tdomi.cultureid='en-US' order by 3, 2; > /tmp/IP-List.out
Releases 21.2.8 and newer using MySql 8.x:
/opt/CA/MySql/bin/mysql -uroot -p netqosportal -e "select td.itemname, REPLACE(inet6_ntoa(td.address),'::ffff:',''), IF(tdom.ItemName IS NULL, tdomi.ItemName, tdom.ItemName) from t_device td inner join t_domain tdom on td.domainid=tdom.itemid left join t_domain_i18n tdomi on td.domainid=tdomi.itemid where tdomi.cultureid='en-US' order by 3, 2;" > /tmp/IP-List.out