如何收集VPLEX的日志(转)

如何收集VPLEX的日志

总的来说,VPLEX的认日志收集还是比较简单的,在VPLEX CLI中有专门的命令来收集配置和日志信息。

首先以Service账号登陆management server,然后运行下面的命令:

collect-diagnostics

该命令会将当前VPLEX的所有配置信息和日志信息打包,然后存放于management server的/diag/collect-diagnostics-out目录。当命令执行完毕后,可以通过WINSCP工具从management server拷贝下来进行分析。

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

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

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

一般来说,有base file就够了,extend file里面很多都是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_T24190_20XXXX1407XXX1

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

VPlexcli:/> collect-diagnostics

2015-05-12 16:04:22 UTC: ****Initializing collect-diagnostics...

2015-05-12 16:04:24 UTC: No cluster-witness server found.

2015-05-12 16:04:24 UTC: No recoverpoint appliances found.

2015-05-12 16:04:24 UTC: Free space = 36.86GB

2015-05-12 16:04:24 UTC: Total space needed = 2.98GB

2015-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

当命令执行完毕返回到VPLEXCLI状态时,通过WINSCP连接management server,在目录

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

猜你喜欢

转载自www.cnblogs.com/dahaoran/p/11595698.html