NetWorker: MySQL-back-up mislukt wanneer het bestand "binlog" niet bestaat

Summary: MySQL first-back-ups met behulp van NetWorker Module for Databases and Applications (NMDA) worden nooit voltooid als het bestand "binlog" niet bestaat.

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

De eerste back-up van MySQL eindigt nooit wanneer het bestand "binlog" niet bestaat in de MySQL-database.

 

Cause

Aangezien het MySQL-binlogbestand niet bestaat, gaat de NetWorker-client niet verder met de back-upactiviteit.

BELANGRIJK: Het bewijs met betrekking tot deze hoofdoorzaak wordt alleen weergegeven wanneer de NetWorker-back-uptaak wordt uitgevoerd met een foutopsporingsniveau dat gelijk is aan "5".

Op de NetWorker-client wordt het NetWorker-logboekbestand (standaardlocatie: /nsr/logs directory) meldt een ontbrekende "binlog" van die MySQL-database:

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

U lost dit probleem op door alle eerder gemiste "binlog" te verwijderen totdat de eerste beschikbare "binlog" is.

BELANGRIJK: In de volgende procedure heet de eerste beschikbare "binlog" "mysql-bin.004585", maar dit is slechts een voorbeeld uit een labomgeving om een mogelijke oplossing uit te leggen.

Procedure

VRIJWARING: Voordat u deze procedure volgt, raadt Dell Technologies u aan een MySQL-beheerder in te schakelen om vooraf te valideren voordat u deze methode toepast. Dit is de best mogelijke oplossing voor uw omgeving.
  1. Meld u aan bij uw MySQL-server als "root"-gebruiker.

  2. Maak verbinding met uw MySQL-databaseconsole.

  3. Controleer de huidige beschikbaarheid van "binlog" door de volgende opdracht uit te voeren:

    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. Verwijder alle gemiste "binlog", vóór de eerste beschikbare "binlog" door de volgende opdracht uit te voeren:

    Opmerking: In dit geval is "mysql-bin.004585" de eerste "binlog" die beschikbaar is.
    mysql> purge binary logs to 'mysql-bin.004585';
    Query OK, 0 rows affected, 4584 warnings (10.12 sec)
  5. Voer de back-uptaak opnieuw uit om te controleren of deze zonder fouten is voltooid.

    • Bewijs van een geslaagde back-uptaak (zoals weergegeven in de NetWorker-logboeken van de clientzijde):
    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.