Avamar:故障診斷導致 Windows 備份效能緩慢的網路問題
Summary: 故障診斷影響 Windows 備份效能的網路問題。
Instructions
問題:
備份效能緩慢。懷疑有網路問題。
執行的故障診斷:
avtar.cmd 檔案已更新,並新增了下列旗標:
--stats
--status=60
--comstats
備份記錄會顯示下列事件 (表示網路問題):
2014-04-19 05:20:23 avtar Info <5387>: Network error occurred: Rebuilding connection 0
2014-04-19 09:39:40 avtar Error <5774>: Internal Error: backtree: ADD_HASH timeout error
下面的長延遲表示必須檢查客戶端和伺服器之間的網路頻寬或輸送量:
(“通常”可接受的延遲是 ~0.008,但這裡的高值為 0.141 秒。
avtar Stats <15102>: 2023-04-19 07:02:47 COMSTATS:0 sent= 34 recv[0]= 37 pending= 3/ 10 int= 0/50 send= 0 bytes= 3976+ 13518 sleepms= 0 delay=(0.141 [0.001..0.237] sd=0.101 n= 34) (0.021 [0.007..0.030] sd=0.010 n= 3)
用戶端和伺服器之間的頻寬和輸送量測試:
Iperf 測試:
1.在 Windows 用戶端上開始測試備份。
2.以系統管理員身分登入 Avamar Utility Node。
3.執行下列命令 (使其保持執行):
iperf -s -i 1
4.登入 Windows 用戶端。
5.下載 Iperf 工具從以下連結: http://linhost.info/2010/02/iperf-on-windows/(外部連結)
6.在 Windows 用戶端上開啟命令提示字元,變更為 iperf 軟體位置,然後執行命令:
iperf -c <ip address of the avamar server> -i1
7.讓此命令執行一段時間,然後終止。
8.收集從 Avamar 和 Windows 用戶端產生的記錄,以測量可用的頻寬。
Wireshark 測試與 TCPdump:
(需要測量網路輸送量和穩定性,如果 iperf 結果顯示沒有問題)
1.從以下連結下載Wireshark軟體: http://www.wireshark.org/download.html( 外部連結)
2.在 Avamar 用戶端上安裝 Wireshark 軟體。
3.在 Windows 用戶端上開始測試備份。
4.啟動 Wireshark TCPdump 在應用以下篩選器時捕獲,使用正確的數據修改“<>”值:
ip.addr==<ipaddress of Avamar Utility node> || ip.addr==<ipaddress of Avamar storage node#1> || ip.addr==<ipaddress of Avamar storage node#2> || ... || ip.addr==<ipaddress of Avamar storage node#n> || tcp.port==28001 || tcp.port==27000 || tcp.port==28002 || tcp.port==29000
5.以系統管理員身分登入 Avamar 工具節點,提升至 root,然後根據每個 Avamar 載入開啟的 ssh 金鑰:如何登入 Avamar Server 並載入各種金鑰。
6.執行下列命令:
mapall --noerror --all --parallel --bg --user=root 'tcpdump -w /root/tcpdump.pcap host <ip address of the client>'
7.讓備份執行一個小時,然後停止,然後儲存 Wireshark TCPdump 從用戶端(作為 .pcap 檔)。
8.終止 TCPdump 在 Avamar 上使用下列命令:
mapall --noerror --all --user=root 'pkill tcpdump'
9.執行下列命令,從所有儲存節點取得產生的 tcpdump.pcap 檔案:
mkdir /tmp/tcpdumplogs
cd /tmp/tcpdumplogs
mapall --noerror --all --user=root get '/root/tcpdump.pcap'
10.從 Avamar Utility Node 擷取記錄 /tmp/tcpdumplogs 使用 WinSCP 等程式的目錄。
11.將收集到的記錄提供給網路管理員以進行分析。
檢查 Avamar 連接埠上的 TCP 重新傳輸。
Additional Information
- Wireshark 一般文件: www.wireshark.org(外部連結)
TCPdump官方手冊頁: www.tcpdump.org/tcpdump_man.html (外部連結)- Avamar:備份效能緩慢故障診斷
- Avamar:最佳化備份 Outlook 封存檔案 .pst 檔案時的效能