文章转载自EMC中文支持论坛
· 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 (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
欢迎光临 合肥本本之星 合肥Thinkpad专卖店 合肥Apple专卖店 hfthink 合肥本之星信息科技有限公司 (http://hfthink.com/) | Powered by Discuz! 7.2 |