未解决
此帖子已超过 5 年
4K 消息
3
4967
EMC Grab (EMCReports)工具无法完成日志收集的处理办法
EMC Grab (EMCReports)工具无法完成日志收集的处理办法
介绍
EMC Grab工具是用于收集主机配置及日志数据的工具,主机日志可以显著加快主机相关问题的处理速度。EMC Grab会收集主机配置信息和日志文件、INQ输出结果以及EMC软件的配置信息(PowerPath、RecoverPoint、Replication Manager、Networker等)。
获得EMC Grab (EMCReports)工具的方法如下:
FTP
· Unix (AIX, HP-UX, Linux, Solaris, Tru64): ftp://ftp.emc.com/pub/emcgrab/Unix/
· ESX: ftp://ftp.emc.com/pub/emcgrab/ESX/
· ESXi: ftp://ftp.emc.com/pub/emcgrab/ESXi/
· Windows: ftp://ftp.emc.com/pub/emcgrab/Windows/
· Open VMS: ftp://ftp.emc.com/pub/emcgrab/vms/
Powerlink (powerlink.emc.com)
主页 > 支持 > 产品和诊断工具 > Grab 应用工具
Service Support Zone (support.emc.com)
主页 > 产品和支持工具 :
· 搜索“EMC Grab” 获得对应Unix/Linux/ESX平台工具
· 搜索“EMCReports”获得对应Windows平台工具
症状
· EMC Grab脚本运行至类似以下步骤时停止响应,甚至造成服务器重启
Copying file /sys/./class/fc_host/host6/statistics/fcp_output_megabytes
或
Copying file /proc/./meminfo
Copying file /proc/./uptime
Copying file /proc/./loadavg
Copying file /proc/driver/./dsa/trace_ctl
Copying file /proc/driver/./dsa/trace
· VMware ESX主机上运行EMC Grab出现如下错误
[root@VMWAREESX1 emcgrab]# ./emcgrab.sh
: command not found8:
: command not found23:
: command not found25:
: command not found28:
: command not found37:
: command not found43:
./emcgrab.sh: /tmp/emcgrab/emcgrab.main: line 90: syntax error near unexpected token `elif'
./emcgrab.sh: /tmp/emcgrab/emcgrab.main: line 90: `elif [ ${OS} = "HP-UX" ]
./emcgrab.sh: line 35: start: command not found
./emcgrab.sh: line 36: initialise: command not found
./emcgrab.sh: line 109: legal_notice: command not found
./emcgrab.sh: line 156: interact: command not found
./normalize_clarify.awk' for reading (No such file or directory)
./emcgrab.sh: line 214: module: command not found
或
Collecting inq - inquiry Information
Running Command inq.linux -no_dots............................................................... Command inq.linux -no_dotsrunning for more than 420 seconds
Attempting to kill process 2442
/root/tmp/emcgrab/tools/inq.sh: line 115: 2442 Killed eval ${LINE} >>${SCRIPT_TMP}/${OUTPUT}.txt 2>>${ERR_RPT}
Running Command inq.linux -no_dots-et........................................................... Command inq.linux -no_dots-et running for more than 420 seconds
Attempting to kill process 4647
/root/tmp/emcgrab/tools/inq.sh: line 115: 4647 Killed eval ${LINE} >>${SCRIPT_TMP}/${OUTPUT}.txt 2>>${ERR_RPT}
原因
由于主机复杂的运行环境导致EMC Grab无法正常运行并收集日志
解决方案
如果运行EMC Grab (EMCReports)时出错,或者运行到一半卡住,请确认以下几项:
· 正确下载了对应平台的EMC Grab工具
· 主机上有足够的剩余空间
· 直接在主机下载(或通过winscp上传)并解压EMC Grab工具。如果是Linux/ESX主机,并从Windows复制Grab工具到ESX主机时,注意FTP需开启binary模式。
· 运行有类似DSA这样的文件证书生成工具
· 如果是Dell服务器并且装有Dell PERC H700/H800 SCSI Adapter,需要安装最新的固件和驱动,旧版本的固件驱动可能会导致Windows重启
· 如果是ESX主机,运行esxcfg-mpath -l确认是否有死路径(dead path),如有则重新扫描HBA: esxcfg-rescan <vmhbaX>
变通方法
如果检查上述项后仍然出现错误或卡住的情形,可以考虑解开工具脚本文件,编辑并注释掉出错的命令后再执行,步骤如下:
方法一:(Windows)
1. 在CMD运行窗口按Ctrl+C,脚本会停止执行并询问您” Terminate batch job Y/N?”
2. 按”N”则EMCReports会跳过当前命令转而执行下一命令
方法二:(Windows)
1. 解压缩EMCRPTS_xxx_xxx.exe到某一目录
2. 找到并用Notepad等文本编辑器打开emcrpt.cmd或Emulex.cmd,注释掉或删除出错的步骤或命令
3. 保存脚本文件,并直接点击emcrpt.cmd运行
方法三:(Unix/Linux)
1. 进入…/emcgrab/tools目录
2. 找到对应的脚本文件xxx.sh,用vi打开并注释掉出错的步骤或命令
3. 保存文件,并重新执行./emcgrab.sh
参考
参考以下Primus知识库文档:
emc102335: “Where can EMC Grab or EMCReports collect scripts be downloaded from?”
emc161063: “emc_grab hangs and crashes the system while executing”
emc242277: “EMCGrab appears to hang when run on an HP Blade server running Linux” (DSA)
emc211864: “EMC Grab for ESX server fails to run”
emc159047: “EMCReports: What to do if it hangs before completing”
emc232563: “How to edit EMCGrab scripts to exclude or comment out certain commands”
emc258080: “ESX grab hangs”
应用于
EMC Grab工具,EMCReports工具