NetWorker : Échec de la sauvegarde MySQL lorsque le fichier « binlog » n’existe pas

Summary: Les premières sauvegardes MySQL à l’aide de NetWorker Module for Databases and Applications (NMDA) ne se terminent jamais lorsque le fichier « binlog » n’existe pas.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

La première sauvegarde de MySQL ne se termine jamais lorsque le fichier « binlog » n’existe pas dans la base de données MySQL.

 

Cause

Étant donné que le fichier « binlog » MySQL n’existe pas, le client NetWorker ne poursuit pas l’activité de sauvegarde.

IMPORTANT : Les preuves concernant cette cause première apparaissent uniquement lorsque la procédure de sauvegarde NetWorker est exécutée avec un niveau de débogage égal à 5.

À partir du client NetWorker, le fichier journal NetWorker (emplacement par défaut : /nsr/logs) signale l’absence de « binlog » dans cette base de données MySQL :

mysqlbackup: WARNING: binlog file '/data/mysql/mysql-bin.000331' does not exist. It could have been purged. PITR will not be possible from this backup.
  mysqlbackup: WARNING: binlog file '/data/mysql/mysql-bin.000332' does not exist. It could have been purged. PITR will not be possible from this backup.
  mysqlbackup: WARNING: binlog file '/data/mysql/mysql-bin.000333' does not exist. It could have been purged. PITR will not be possible from this backup.
  mysqlbackup: WARNING: binlog file '/data/mysql/mysql-bin.000334' does not exist. It could have been purged. PITR will not be possible from this backup.
  mysqlbackup: WARNING: binlog file '/data/mysql/mysql-bin.000335' does not exist. It could have been purged. PITR will not be possible from this backup.
  mysqlbackup: WARNING: binlog file '/data/mysql/mysql-bin.000336' does not exist. It could have been purged. PITR will not be possible from this backup.
  mysqlbackup: WARNING: binlog file '/data/mysql/mysql-bin.000337' does not exist. It could have been purged. PITR will not be possible from this backup.
  mysqlbackup: WARNING: binlog file '/data/mysql/mysql-bin.000338' does not exist. It could have been purged. PITR will not be possible from this backup.
  mysqlbackup: WARNING: binlog file '/data/mysql/mysql-bin.000339' does not exist. It could have been purged. PITR will not be possible from this backup.
  mysqlbackup: WARNING: binlog file '/data/mysql/mysql-bin.000340' does not exist. It could have been purged. PITR will not be possible from this backup.
  mysqlbackup: WARNING: binlog file '/data/mysql/mysql-bin.000341' does not exist. It could have been purged. PITR will not be possible from this backup.
  ...
  mysqlbackup: WARNING: binlog file '/data/mysql/mysql-bin.004583' does not exist. It could have been purged. PITR will not be possible from this backup.
  mysqlbackup: WARNING: binlog file '/data/mysql/mysql-bin.004584' does not exist. It could have been purged. PITR will not be possible from this backup.
 200901 14:37:32 mysqlbackup: INFO: Copying /data/mysql/mysql-bin.004585. <-- Activity log stuck in this step and backup does not send any new data.The backup job must be canceled manually or wait to timeout (in this case it was after 8 hours running).
 mysqlbackup: Progress in MB: 383400
 mysqlbackup: ERROR: Signal 15 received.

 

Resolution

Pour résoudre ce problème, purgez tous les précédents « binlog » manqués jusqu’au premier « binlog » disponible.

IMPORTANT : Dans la procédure suivante, le premier « binlog » disponible est nommé « mysql-bin.004585 », mais il ne s’agit que d’un exemple tiré d’un environnement de laboratoire pour expliquer une solution possible.

Procédure

AVIS DE NON-RESPONSABILITÉ : Avant de suivre cette procédure, Dell Technologies recommande de faire appel à un administrateur MySQL pour valider au préalable avant d’appliquer cette méthode, car il s’agit de la meilleure solution possible en fonction de votre environnement.
  1. Connectez-vous à votre serveur MySQL en tant qu’utilisateur « root ».

  2. Connectez-vous à la console de votre base de données MySQL.

  3. Vérifiez la disponibilité actuelle de « binlog » en exécutant la commande suivante :

    mysql> show master logs;  <-- Name of the DB that contains the information from the logs missed.
    
    | mysql-bin.004580 |          0 |
    | mysql-bin.004581 |          0 |
    | mysql-bin.004582 |          0 |
    | mysql-bin.004583 |          0 |
    | mysql-bin.004584 |          0 | <-- Last missed log.
    | mysql-bin.004585 | 1064394753 |
  4. Purgez tous les « binlog » manqués, avant le premier « binlog » disponible en exécutant la commande suivante :

    Remarque : Dans ce cas, « mysql-bin.004585 » est le premier « binlog » disponible.
    mysql> purge binary logs to 'mysql-bin.004585';
    Query OK, 0 rows affected, 4584 warnings (10.12 sec)
  5. Réexécutez la procédure de sauvegarde pour vérifier qu’elle se termine sans erreur.

    • Preuve d’une procédure de sauvegarde réussie (comme indiqué dans les logs NetWorker du côté client) :
    200903 09:38:14 mysqlbackup: INFO: Backup image created successfully.
    mysqlbackup: INFO: Image Path = sbt:MYSQL:/MySQLTest
    200903 09:38:14 mysqlbackup: INFO: MySQL binlog position: filename mysql-bin.004957, position 154
    
    -------------------------------------------------------------
       Parameters Summary
    -------------------------------------------------------------
       Start LSN                  : 15597868102656
       End LSN                    : 15597868102712
    -------------------------------------------------------------
    mysqlbackup completed OK! with 2 warnings.

 

Products

NetWorker Module for Databases and Applications
Article Properties
Article Number: 000173788
Article Type: Solution
Last Modified: 06 Mar 2026
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.