Avamar:儘管現有的增量工作,NDMP 備份仍會執行層級零,從而延長工作持續時間
Summary: 如果在最近 30 個標籤中找不到第 1 層備份,網路資料管理協定 (NDMP) 備份預設為層級 0。本文列出增加搜尋限制的步驟。
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
意外的 NDMP 備份行為:
在 Avamar 格線上執行 NDMP 備份時,會觀察到下列症狀:
-
NDMP 零級(完整)備份需要異常長的時間才能完成。
-
Avamar 會啟動新的零級備份,即使同一檔案系統已具有成功的增量備份。
-
備份記錄會指出先前找不到可用的備份,提示進行完整備份。
相關日誌摘錄:
2014-05-19 20:49:55 avndmp Info <9573>: [snapup-/root_vdm_37/xxx] No previous suitable backup found, will perform level zero backup.
2014-05-19 20:49:55 avndmp Info <9590>: [snapup-/root_vdm_37/xxx] Backup on volume '/root_vdm_37/STFS4/': mode 'Full', level '0', base dump date '0'
顯示增量搜尋程序的其他記錄詳細資料:
2014-05-19 20:49:54 avndmp Info <9538>: [snapup-/root_vdm_37/xxx] Selecting backup out of most recent 30 to use as incremental base for volume:'/root_vdm_37/xxx/'
2014-05-19 20:49:54 avndmp Info <9552>: [snapup-/root_vdm_37/xxx] Spawning '/usr/local/avamar/bin/avtar' (avtar --backuptag="/root_vdm_37/xxx/" --format="xml" --count="30" --backups --vardir="/usr/local/avamar/var/xxx-ndmp-hostname2.x.com" --bindir="/usr/local/avamar/bin" --sysdir="/usr/local/avamar/etc" --acnt="/NDMP/xxx-ndmp-hostname2.x.com" --id="backuponly" --ap="backuponly1" --server="avamar.x.com")Cause
阿瓦瑪爾酒店 avndmp 附掛程式判斷是否可以透過查詢 avtar 實用程序,以進行適當的先前備份。
該實用程式僅檢查最近的30個備份標籤。
當文件系統的最後一次成功備份少於這 30 個標籤時, avtar 報告不存在合適的備份,導致 avndmp 以啟動新的零級(完整)備份。
摘要:
-
默認情況下,增量搜索視窗固定為 30 個備份。
-
如果先前成功的備份超出此時段,系統會錯誤地假定需要完整備份。
-
此行為會導致執行不必要的長時間完整 NDMP 備份,即使有有效的增量基礎可用。
Resolution
如何增加 NDMP 備份的增量搜尋限制:
1.使用具有根權限的帳戶登入 Avamar 加速器節點。
2.前往儲存 NDMP 組態檔案的用戶端專屬目錄:
例如:
cd /usr/local/avamar/var/[CLIENT_NAME]
3.如果 avndmp.cmd 檔案不存在,請建立它。如果存在,請編輯該檔。
4.添加(或修改)控制增量搜索限制的標誌。取代 n 使用要搜尋的先前備份數量 (預設值為 30):
--limit-incremental-search=n
搜尋最近 100 個備份的範例:
--limit-incremental-search=100
5.儲存檔案並確定其擁有者為 avamar 並具有適當的許可權(通常為 600)。
6.重新啟動 Avamar 服務,讓新設定生效:
systemctl restart avamar
注意:如果您的環境使用
init 系統,請使用適當的命令 (例如 service avamar restart)
驗證:
1.為受影響的用戶端啟動 NDMP 備份。
2.監控 Avamar 記錄 (例如 /usr/local/avamar/var/log/avndmp.log) 的內容,類似:
[... ] Selecting backup out of most recent n to use as incremental base for volume:'/.../'
(值 n 應與設定的數量相符。)
3.當先前存在可用的備份時,請確認備份會以增量 (層級 > 0) 執行。檢查備份時間是否比完整 (層級 0) 執行時縮短。
注意:如果您不確定 n 的適當值,或遇到非預期的行為, 請聯絡 Dell 支援 以取得協助。
警示:增加搜索限制可能會增加加速器節點上的記憶體和CPU使用率,特別是對於具有許多歷史備份的用戶端。在設置非常高的值之前,請驗證節點是否具有足夠的資源。
警告:使用不正確的語法編輯 avndmp.cmd 檔案可能會使 NDMP 備份無法啟動。請仔細檢查旗標格式,並先在非關鍵用戶端上測試組態。
Affected Products
AvamarProducts
Avamar, Avamar Plug-in for NDMPArticle Properties
Article Number: 000162827
Article Type: Solution
Last Modified: 13 Jan 2026
Version: 7
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.