Listing MDisks by using the CLI

You can use the command-line interface (CLI) to list the MDisks.

Before you begin

Perform the following steps to list the name, status, and mode of an MDisk:

Procedure

  1. Use the following CLI command:

    lsmdisk ­delim :

    This example is what you might see when you use the lsmdisk ­delim : command:

    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
  2. View the status column to see the status of the MDisk. Notice that all the MDisks are online. Possible statuses of an MDisk are:
    • Online
    • Offline
    • Excluded
    • Degraded ports
    • Degraded paths
  3. View the mode column to see the mode of the disk. Notice that the mode is unmanaged. Possible modes for an MDisk are:
    • Managed
    • Unmanaged
    • Image
  4. Use the lsmdisk ­delim : 3 command to see detailed information for the MDisk with an ID of 3. An example of what you might see is:
    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

    For an MDisk belonging to an iSCSI controller, the iscsi_port_id field in the lsmdisk output, points to the row of lsiscsistorageport output that displays the iSCSI initiator session details. Whether an MDisk is in a degraded or offline state, the status and iogroup_list fields in the lsiscsistorageport can be used to see whether iSCSI controller sessions are down. An example of what you might see is:

    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: