您可以使用命令行界面 (CLI) 列出 MDisk。
执行以下步骤以列出 MDisk 的名称、状态和方式:
lsmdisk delim :
该示例是使用 lsmdisk delim : 命令时可能会看到的内容:
id:name:status:mode:mdisk_grp_id:mdisk_grp_name:capacity:ctrl_LUN_#:controller_name:UID:tier:encrypt:site_id:site_name:distributed 0:mdisk0:online:unmanaged:::500.0GB:0000000000000000:controller1:600a0b8000689e710000c0d255823cdb00000000000000000000000000000000:enterprise:no:::no 1:mdisk1:online:unmanaged:::500.0GB:0000000000000001:controller1:600a0b80004942be000001e9558261c300000000000000000000000000000000:enterprise:no:::no 2:mdisk2:online:unmanaged:::100.0GB:0000000000000002:controller1:600a0b8000689e710000c0d555823d4d00000000000000000000000000000000:enterprise:no:::no 3:mdisk3:online:unmanaged:::100.0GB:0000000000000003:controller1:600a0b80004942be000001ea558261e500000000000000000000000000000000:enterprise:no:::no 4:mdisk4:online:unmanaged:::100.0GB:0000000000000004:controller1:600a0b8000689e710000c0d655823d5d00000000000000000000000000000000:enterprise:no:::no 5:mdisk5:online:unmanaged:::100.0GB:0000000000000005:controller1:600a0b80004942be000001eb5582624100000000000000000000000000000000:enterprise:no:::no 6:mdisk6:online:unmanaged:::150.0GB:0000000000000006:controller1:600a0b8000689e710000c0d755823d8400000000000000000000000000000000:enterprise:no:::no 7:mdisk7:online:unmanaged:::100.0GB:0000000000000000:controller3:60050763008181b6d80000000000061100000000000000000000000000000000:enterprise:no:::no 8:mdisk8:online:unmanaged:::100.0GB:0000000000000001:controller3:60050763008181b6d80000000000060f00000000000000000000000000000000:enterprise:no:::no 9:mdisk9:online:unmanaged:::100.0GB:0000000000000002:controller3:60050763008181b6d80000000000060900000000000000000000000000000000:enterprise:no:::no 10:mdisk10:online:unmanaged:::100.0GB:0000000000000003:controller3:60050763008181b6d80000000000061400000000000000000000000000000000:enterprise:no:::no 11:mdisk11:online:unmanaged:::100.0GB:0000000000000004:controller3:60050763008181b6d80000000000060800000000000000000000000000000000:enterprise:no:::no 12:mdisk12:online:unmanaged:::100.0GB:0000000000000005:controller3:60050763008181b6d80000000000060a00000000000000000000000000000000:enterprise:no:::no 13:mdisk13:online:unmanaged:::100.0GB:0000000000000006:controller3:60050763008181b6d80000000000060b00000000000000000000000000000000:enterprise:no:::no 14:mdisk14:online:unmanaged:::100.0GB:0000000000000007:controller3:60050763008181b6d80000000000061200000000000000000000000000000000:enterprise:no:::no 15:mdisk15:online:unmanaged:::100.0GB:0000000000000008:controller3:60050763008181b6d80000000000060e00000000000000000000000000000000:enterprise:no:::no 16:mdisk16:online:unmanaged:::100.0GB:0000000000000009:controller3:60050763008181b6d80000000000060c00000000000000000000000000000000:enterprise:no:::no 17:mdisk17:online:unmanaged:::100.0GB:000000000000000A:controller3:60050763008181b6d80000000000060d00000000000000000000000000000000:enterprise:no:::no 18:mdisk18:online:unmanaged:::100.0GB:000000000000000B:controller3:60050763008181b6d80000000000061300000000000000000000000000000000:enterprise:no:::no 19:mdisk19:online:unmanaged:::100.0GB:000000000000000C:controller3:60050763008181b6d80000000000060700000000000000000000000000000000:enterprise:no:::no 20:mdisk20:online:unmanaged:::100.0GB:000000000000000D:controller3:60050763008181b6d80000000000060600000000000000000000000000000000:enterprise:no:::no 21:mdisk21:online:unmanaged:::100.0GB:000000000000000E:controller3:60050763008181b6d80000000000061000000000000000000000000000000000:enterprise:no:::no
id:3
name:mdisk3
status:offline
mode:managed
mdisk_grp_id:3
mdisk_grp_name:SSD3
capacity:136.7GB
quorum_index:
block_size:512
controller_name SSD
ctrl_type:6
ctrl_WWNN:5005076801E87502
controller_id:1
path_count:0
max_path_count:0
ctrl_LUN_#:0000000000000000
UID:5000a72000008fbb000000000000000000000000000000000000000000000000
preferred_WWPN:5000A72A00008FBB
active_WWPN:5000A72A00008FBB
node_id:10
node_name:destiny
location:1
fast_write_state:empty
raid_status:online
raid_level:raid0
redundancy:0
strip_size:256
spare_goal:2
spare_protection_min:2
balanced:yes
tier:generic_ssd
site_id:3
site_name:Quorumslow_write_priority
fabric_type iscsi
easy_tier_load high
encrypt no
distributed no
drive_class_id
drive_count 0
stripe_width 0
rebuild_areas_total
rebuild_areas_available
rebuild_areas_goal
dedupe no
preferred_iscsi_port_id 127
active_iscsi_port_id 127
对于属于 iSCSI 控制器的 MDisk,lsmdisk 输出中的 iscsi_port_id 字段指向 lsiscsistorageport 输出中显示 iSCSI 发起程序会话详细信息的行。 当 MDisk 处于 degraded 或 offline 状态时,lsiscsistorageport 中的 status 和 iogroup_list 字段可以用于确定 iSCSI 控制器会话是否关闭。 以下是您可能看到的示例内容:
id:0 name:mdisk0 status:online mode:unmanaged mdisk_grp_id: mdisk_grp_name: capacity:100.0GB quorum_index: block_size:512 controller_name:controller0 ctrl_type:4 ctrl_WWNN:200400A0B85AD3B7 controller_id:0 path_count:2 max_path_count:2 ctrl_LUN_#:0000000000000000 UID:600a0b800076b42000002a1755e4f5e200000000000000000000000000000000 preferred_WWPN:202500A0B85AD3B7 active_WWPN:202500A0B85AD3B7 fast_write_state:empty raid_status: raid_level: redundancy: strip_size: spare_goal: spare_protection_min: balanced: tier:enterprise slow_write_priority: fabric_type:fc site_id: site_name: easy_tier_load:medium encrypt:no distributed:no drive_class_id: drive_count:0 stripe_width:0 rebuild_areas_total: rebuild_areas_available: rebuild_areas_goal: dedupe:no preferred_iscsi_port_id: active_iscsi_port_id: