NetWorker: "binlog" 파일이 없으면 MySQL 백업이 실패함
Summary: "binlog" 파일이 없는 경우 NMDA(NetWorker Module for Databases and Applications)를 사용하는 MySQL의 첫 번째 백업이 완료되지 않습니다.
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
MySQL 데이터베이스에 "binlog" 파일이 없으면 MySQL 첫 번째 백업이 종료되지 않습니다.
Cause
MySQL "binlog" 파일이 없으므로 NetWorker Client는 백업 작업을 계속하지 않습니다.
중요: 이 근본 원인에 대한 증거는 "디버그 레벨"이 "5"인 NetWorker 백업 작업을 수행하는 경우에만 표시됩니다.
NetWorker Client에서 NetWorker 로그 파일(기본 위치: /nsr/logs 디렉토리)에서 해당 MySQL 데이터베이스의 "binlog"가 누락되었다고 보고합니다.
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
이 문제를 해결하려면 사용 가능한 첫 번째 "binlog"가 나올 때까지 이전에 누락된 모든 "binlog"를 제거합니다.
중요: 다음 절차에서 사용 가능한 첫 번째 "binlog"의 이름은 "mysql-bin.004585"이지만 이는 가능한 솔루션을 설명하기 위한 랩 환경의 예일 뿐입니다.
절차
부인 성명: Dell Technologies 는 이 절차를 따르기 전에 MySQL 관리자를 참여시켜 미리 검증한 후 이 방법을 사용자 환경에 맞는 최상의 솔루션으로 적용할 것을 권장합니다.
-
MySQL 서버에 "루트" 사용자로 로그인합니다.
-
MySQL 데이터베이스 콘솔에 연결합니다.
-
다음 명령을 실행하여 "binlog"의 현재 사용 가능 여부를 확인합니다.
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 |
-
다음 명령을 실행하여 사용 가능한 첫 번째 "binlog" 이전에 누락된 모든 "binlog"를 제거합니다.
참고: 이 경우 "mysql-bin.004585"는 사용 가능한 첫 번째 "binlog"입니다.mysql> purge binary logs to 'mysql-bin.004585'; Query OK, 0 rows affected, 4584 warnings (10.12 sec)
-
백업 작업을 다시 실행하여 오류 없이 완료되었는지 확인합니다.
- 백업 작업이 성공했다는 증거(클라이언트 측의 NetWorker 로그에 표시됨):
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 ApplicationsArticle 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.