zoukankan      html  css  js  c++  java
  • 如何收集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/中找到最新生成的日志,然后下载到本地。

  • 相关阅读:
    JSP中getParameter和getAttribute区别
    用jsp实现省市区三级联动下拉
    SQL
    Unity3d笔试题大全
    FPSCalc——简单FPS观测类
    GameObjectPool——Unity中的对象池
    MonoSingleton——Unity中的单例模式
    用非递归、不用栈的方法,实现原位(in-place)的快速排序
    一道有序洗牌的笔试题,阿里UC等都用过
    MFC中显示图像的放大、缩小、移动功能
  • 原文地址:https://www.cnblogs.com/dahaoran/p/11595698.html
Copyright © 2011-2022 走看看