NetWorker:使用 NMDA 的 MongoDB 備份失敗

Summary: 本文解決了使用 NMDA 進行 MongoDB 備份的問題。

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

適用於資料庫和應用程式的 NetWorker 模組 (NMDA) MongoDB 備份失敗。備份顯示:

monogdb_client:<save_set> size 0 KB, 0 file(s), took   0 min  31 sec

將會看到下列一或多個錯誤:

The size of proxied data written has not been set. Backup of ssid 'xxxxx' failed due to unrecoverable errors.
The read operation returned a value of -1. Error code: 5. Error: Input/output error.
Backup of ssid 'nnnn' failed due to unrecoverable errors
The backup command '/nsr/apps/config/backup_logscript.sh' did not complete successfully: Backup of ssid 'nnnn' failed due to unrecoverable errors. 

Cause

備份指令檔會使用以下方式將輸出重新導向至檔案: >

Resolution

使用 --out 用於文件輸出,而不是將輸出定向到檔。

示例腳本部分。變更:

(
set -x;
EXEC_MYWORK="$INSTANCE_PATH_MW16_MYWORK/mongodump -u $BACKUP_USER -p $BACKUP_PASSWORD --authenticationDatabase $BACKUP_AUTHDB --gzip --port 27020 --db local --collection oplog.rs --query \"{ts: {\\\$gt: {\\\$timestamp: {t: $PASS_TIME, i: 0}}, \\\$lt: {\\\$timestamp: {t: $CURR_TIME, i: 0}}}}\"  >  $OAPP_MOUNT_DIR/backup_data_Oplog";
eval $EXEC_MYWORK;
)

至:

(
set -x;
EXEC_MYWORK="$INSTANCE_PATH_MW16_MYWORK/mongodump -u $BACKUP_USER -p $BACKUP_PASSWORD --authenticationDatabase $BACKUP_AUTHDB --gzip --port 27020 --db local --collection oplog.rs --query \"{ts: {\\\$gt: {\\\$timestamp: {t: $PASS_TIME, i: 0}}, \\\$lt: {\\\$timestamp: {t: $CURR_TIME, i: 0}}}}\" --out $OAPP_MOUNT_DIR/backup_data_Oplog";
eval $EXEC_MYWORK;
)

Affected Products

NetWorker, NetWorker Module for Databases and Applications

Products

NetWorker Family, NetWorker Module
Article Properties
Article Number: 000166750
Article Type: Solution
Last Modified: 01 Apr 2026
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.