收集VPLEX的日志

在VPLEX中,只能通过CLI收集日志。(验证)


1、使用命令行工具,ssh vplex管理IP,以Service账号登陆management server;

2、运行vplexcli命令切换到cli下;

3、运行收集日志命令:collect-diagnostics

4、等待收集运行完成,日志存放于management server的/diag/collect-diagnostics-out目录,使用WinScp或者其他SFTP工具从management server上拷贝下来即可。


VPLEX的日志我们一般简称为CD日志,运行上述命令,一般会生成两个压缩文件:

Base file:基础日志文件,一般几百兆大小。

Extend file:扩展日志文件,一般要几个G大小。

一般来说,有base fle就够了,extend fle里面很多都是dump信息,没有专门的工具也无法查看分析。下面是个具体的例子:


登录management server,并进入vplexcli模式。

login as: service
Using keyboard-interactive authentication.
Password:
service@ManagementServer:->vplexcli
Trying 1xx.0.x.1..
Connected to localhost.
username: service
password:
creating logfile:/var/log/VPlex/cli/session .log service localhost XXXX2502XXX3

登录成功,开始收集日志:

VPlexcli:/> collect-diagnostics --notextend
2023-05-12 16:04:22 UTC:****|nitializing collect-diagnostics..
202315-05-12 16:04:24 UTC: No cluster-witness server found.
2023-05-12 16:04:24 UTC: No recoverpoint appliances found.
2023-05-12 16:04:24 UTC: Free space = 25.86GB
2023-05-12 16:04:24 UTC: Total space needed = 1.98GB
2023-05-12 16:04:25 UTC: No cluster-witness server found.
=============================================
Starting collect-diagnostics, this operation might take a while...

=============================================
Executing Fast trace..           OK
Executing SMS log collection ..              OK
Executing director tracepath ..              OK
Executing health check..                      OK
Executing debug tower-dump ..            OK

当命令执行Q完毕返回到VPLEXCLI状态时,通过WinScp连接managementserver,

在日录/diag/collect-diagnostics-out/中找到最新生成的日志,然后下载到本地。


没有找到想要的答案?

上传日志让 AI 帮你诊断,或者在控制台里直接向 AI 提问。