DDM backup via OLB fails in NetOps Spectrum
search cancel

DDM backup via OLB fails in NetOps Spectrum

book

Article ID: 192757

calendar_today

Updated On:

Products

Spectrum Network Observability

Issue/Introduction

The DDM backup is failing.

The ddm_backup.log shows this error first.

260915 23:06:10 RDR1     INFO: Starting to lock all the tables...
260915 23:06:10 RDR1    ERROR: No tables to copy.

Then it fails with this message set:

mysqlbackup exit code: 7, Invalid Argument
mysqlbackup failed with errors!

Environment

All supported Network Observability DX NetOps Spectrum releases

Cause

An upgrade in the past failed to properly convert the DDMDB database files from MyISAM SAM to IDB database file types.

The ddm_save.pl is used to backup the DDM db which relies on the mysqlbackup client.

The client will only work on tables with the InnoDB engine. Tables using MyISAM engine will be ignored, hence the message "No tables to copy".

This can be validated by examining the $SPECROOT/mysql/data/ddmdb directory files. If we see files ending in *.MYI and *.MYD extensions it tells us the files use the MyISAM engine, the wrong one for current releases.

Resolution

To resolve the issue we need to convert the tables from MyISAM , to InnoDB which will allow success when running the current internal backup scripts.

  1. Run ddm_save_legacy.exe first to back up the old MyISAM format.
    1. See the ddm_save documentation topic for details on using ddm_save_legacy.exe.
  2. Then, run the $SPECROOT/SS/DDM/scripts/convert_current_myisam_to_innodb.pl script to convert the database to InnoDB.
    1. See the Convert the Archive Manager Database Tables documentation topic for details on using the conversion script.
  3. After successful conversion, ddm_save.pl should succeed again as should the OLB runs.
    1. See the ddm_save documentation topic for details on using ddm_save.pl.
    2. See the Database Backups documentation topic for details on the automated Online Backup.