一、组网图
不涉及。
二、问题描述
1、由于Vmware界面显示异常,无法判断存储卷状态,如何查询存储数据卷路径等信息等
三、过程分析
1、由于Vmware界面显示异常,可通过开启ESXi主机的ssh服务。登录ESXi的OS shell命令行。
依次点击“管理”-“服务”-“TSM-SSH”,选中该服务后选择启动。
四、解决方法
1、列出ESXi主机的所有LUN的路径信息,若挂载的磁盘较多,打印信息会较多。
[root@localhost:~] esxcli storage core path list fc.20000024ff2969e3:21000024ff2969e3-fc.500b34200ff50800:500b34200ff50803-naa.600b3428259 e037de06fd0f2ed0000d8 UID: fc.20000024ff2969e3:21000024ff2969e3-fc.500b34200ff50800:500b34200ff50803-naa.600 b3428259e037de06fd0f2ed0000d8 Runtime Name: vmhba3:C0:T3:L1 Device: naa.600b3428259e037de06fd0f2ed0000d8 Device Display Name: MacroSAN Fibre Channel Disk (naa.600b3428259e037de06fd0f2ed0000d8 ) Adapter: vmhba3 Channel: 0 Target: 3 LUN: 1 Plugin: NMP State: active Transport: fc Adapter Identifier: fc.20000024ff2969e3:21000024ff2969e3 Target Identifier: fc.500b34200ff50800:500b34200ff50803 Adapter Transport Details: WWNN: 20:00:00:24:ff:29:69:e3 WWPN: 21:00:00:24:ff:29:69:e3 Target Transport Details: WWNN: 50:0b:34:20:0f:f5:08:00 WWPN: 50:0b:34:20:0f:f5:08:03 Maximum IO Size: 335539202、使用如下命令可列出连接到ESXi的LUN列表。
[root@localhost:~] esxcli storage core device list naa.600b34236b6535ddb013d87d6d5a00d8 Display Name: MacroSAN Fibre Channel Disk (naa.600b34236b6535ddb013d87d6d5a00d8) Has Settable Display Name: true Size: 2097152 Device Type: Direct-Access Multipath Plugin: NMP Devfs Path: /vmfs/devices/disks/naa.600b34236b6535ddb013d87d6d5a00d8 Vendor: MacroSAN Model: LU Revision: 1.0 SCSI Level: 5 Is Pseudo: false Status: on Is RDM Capable: true Is Local: false Is Removable: false Is SSD: false Is VVOL PE: false Is Offline: false Is Perennially Reserved: false Queue Full Sample Size: 0 Queue Full Threshold: 0 Thin Provisioning Status: unknown Attached Filters: VAAI Status: supported Other UIDs: vml.0200030000600b34236b6535ddb013d87d6d5a00d84c5500000000 Is Shared Clusterwide: true Is Local SAS Device: false Is SAS: false Is USB: false Is Boot USB Device: false Is Boot Device: false Device Max Queue Depth: 64 No of outstanding IOs with competing worlds: 32 Drive Type: unknown RAID Level: unknown Number of Physical Drives: unknown Protection Enabled: false PI Activated: false PI Type: 0 PI Protection Mask: NO PROTECTION Supported Guard Types: NO GUARD SUPPORT DIX Enabled: false DIX Guard Type: NO GUARD SUPPORT Emulated DIX/DIF Enabled: false3、若要查询LUN的详细路径信息,可使用如下命令列出某个卷的信息。其中-d参数加上该lun的wwn号。
[root@localhost:~] esxcli storage core path list -d naa.600b342a17eacb1d6e6bde340d0000d0 fc.20000024ff2969e3:21000024ff2969e3-fc.500b34200ff50800:500b34200ff50803-naa.600b342a17eacb1d6e6bde340d0000d0 UID: fc.20000024ff2969e3:21000024ff2969e3-fc.500b34200ff50800:500b34200ff50803-naa.600b342a17eacb1d6e6bde340d0000d0 Runtime Name: vmhba3:C0:T3:L2 Device: naa.600b342a17eacb1d6e6bde340d0000d0 Device Display Name: MacroSAN Fibre Channel Disk (naa.600b342a17eacb1d6e6bde340d0000d0) Adapter: vmhba3 Channel: 0 Target: 3 LUN: 2 Plugin: NMP State: active Transport: fc Adapter Identifier: fc.20000024ff2969e3:21000024ff2969e3 Target Identifier: fc.500b34200ff50800:500b34200ff50803 Adapter Transport Details: WWNN: 20:00:00:24:ff:29:69:e3 WWPN: 21:00:00:24:ff:29:69:e3 Target Transport Details: WWNN: 50:0b:34:20:0f:f5:08:00 WWPN: 50:0b:34:20:0f:f5:08:03 Maximum IO Size: 33553920 fc.20000024ff2969e3:21000024ff2969e3-fc.500b34200ff38c00:500b34200ff38c03-naa.600b342a17eacb1d6e6bde340d0000d0 UID: fc.20000024ff2969e3:21000024ff2969e3-fc.500b34200ff38c00:500b34200ff38c03-naa.600b342a17eacb1d6e6bde340d0000d0 Runtime Name: vmhba3:C0:T2:L2 Device: naa.600b342a17eacb1d6e6bde340d0000d0 Device Display Name: MacroSAN Fibre Channel Disk (naa.600b342a17eacb1d6e6bde340d0000d0) Adapter: vmhba3 Channel: 0 Target: 2 LUN: 2 Plugin: NMP State: active Transport: fc Adapter Identifier: fc.20000024ff2969e3:21000024ff2969e3 Target Identifier: fc.500b34200ff38c00:500b34200ff38c03 Adapter Transport Details: WWNN: 20:00:00:24:ff:29:69:e3 WWPN: 21:00:00:24:ff:29:69:e3 Target Transport Details: WWNN: 50:0b:34:20:0f:f3:8c:00 WWPN: 50:0b:34:20:0f:f3:8c:03 Maximum IO Size: 335539204、若为升级前后要查询的路径的数量是否正确,可使用grep方式查询active总路径或单独某个lun的路径数量。
[root@localhost:~] esxcli storage core path list | grep "State: active" | wc -l 15 //查询当前系统所有lun的active的路径条数。 若该数值减去系统盘的路径=存储分配的路径数量,表明当前识别路径数量正确。5、查询单独某个LUN的路径的数量,以LUN:2为例
[root@localhost:~] esxcli storage core path list | grep "LUN: 2" | wc -l 3
五、风险提示
涉及底层命令行操作,建议由VMware工程师或客户维护工程师操作。
创建人 | 陈运佳 |
文档编辑权限 | 创建者私有 |
文档阅读权限 | 来自分类 |
分类阅读权限 | 所有人 |
分类编辑权限 | 技术服务部 : 机构 渠道合作伙伴 : 机构 系统管理员 : 人员 |
分类审核权限 | 审核小组 : 岗位 |
分类预览权限 | 审核小组 : 岗位 |
分类下载权限 | 技术服务部 : 机构 |
修改日期 | 修改人 | 备注 |
2018-11-06 11:27:26[当前版本] | 陈运佳 | CREAT |