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 实用程序节点。
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 Client 上安装 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 加载 Open 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 应用工具节点检索日志 /tmp/tcpdumplogs 目录中使用 WinSCP 等程序。
11.将收集的日志提供给网络管理员进行分析。
检查 Avamar 端口上的 TCP 重新传输。
Additional Information
- Wireshark 一般文档:www.wireshark.org(外部链接)
TCPdump官方手册页: www.tcpdump.org/tcpdump_man.html (外部链接)- Avamar:备份性能缓慢问题故障处理
- Avamar:在备份 Outlook 归档 .pst 文件时优化性能