Discovering MDisks using the CLI

You can use the command-line interface (CLI) to discover managed disks (MDisks).

When back-end controllers are added to the fibre-channel SAN and are included in the same switch zone as a SAN Volume Controller cluster, the cluster automatically discovers the back-end controller and integrates the controller to determine the storage that is presented to the SAN Volume Controller nodes. The SCSI logical units (LUs) that are presented by the back-end controller are displayed as unmanaged MDisks. However, if the configuration of the back-end controller is modified after this has occurred, the SAN Volume Controller cluster might be unaware of these configuration changes. You can request that the SAN Volume Controller cluster rescans the fibre-channel SAN to update the list of unmanaged MDisks.
Note: The automatic discovery that is performed by SAN Volume Controller cluster does not write anything to an unmanaged MDisk. You must instruct the SAN Volume Controller cluster to add an MDisk to an MDisk group or use an MDisk to create an image mode virtual disk (VDisk).

Perform the following steps to discover and then view a list of MDisks:

  1. Issue the svctask detectmdisk CLI command to manually scan the fibre-channel network. The scan discovers any new MDisks that might have been added to the cluster and rebalances MDisk access across the available controller device ports.
    Notes:
    1. Only issue the svctask detectmdisk command when you are sure that all of the disk controller ports are working and correctly configured in the controller and the SAN zoning. Failure to do this can result in errors that are not reported.
    2. Although it might appear that the detectmdisk command has completed, extra time might be required for it to run. The detectmdisk is asynchronous and returns a prompt while the command continues to run in the background. You can use the lsdiscoverystatus command to view the discovery status.
  2. When the detection is complete, issue the svcinfo lsmdiskcandidate CLI command to show the unmanaged MDisks. These MDisks have not been assigned to an MDisk group.
  3. Issue the svcinfo lsmdisk CLI command to view all of the MDisks.

You have now seen that the back-end controllers and switches have been set up correctly and that the SAN Volume Controller cluster recognizes the storage that is presented by the back-end controller.

The following example describes a scenario where a single back-end controller is presenting eight SCSI LUs to the SAN Volume Controller cluster:

  1. Issue svctask detectmdisk.
  2. Issue svcinfo lsmdiskcandidate.

    The following output is displayed:

    id
    0
    1
    2
    3
    4
    5
    6
    7
    
  3. Issue svcinfo lsmdisk -delim : -filtervalue mode=unmanaged

    The following output is displayed:

    id:name:status:mode:mdisk_grp_id:mdisk_grp_name:
    	capacity:ctrl_LUN_#:controller_name
    0:mdisk0:online:unmanaged:::273.3GB:0000000000000000:controller0
    1:mdisk1:online:unmanaged:::273.3GB:0000000000000001:controller0
    2:mdisk2:online:unmanaged:::273.3GB:0000000000000002:controller0
    3:mdisk3:online:unmanaged:::273.3GB:0000000000000003:controller0
    4:mdisk4:online:unmanaged:::136.7GB:0000000000000004:controller0
    5:mdisk5:online:unmanaged:::136.7GB:0000000000000005:controller0
    6:mdisk6:online:unmanaged:::136.7GB:0000000000000006:controller0
    7:mdisk7:online:unmanaged:::136.7GB:0000000000000007:controller0
    
Library | Support | Terms of use | Feedback
© Copyright IBM Corporation 2003, 2009. All Rights Reserved.