lsmdiskextent

Use the lsmdiskextent command to display the extent allocation between managed disks and volumes. The output lists a volume ID, volume copy ID, and the number of extents.

Syntax

 lsmdiskextent    [  -nohdr  ]   [  -delim  delimiter  ]   {  mdisk_name  |  mdisk_id  }

Parameters

-nohdr
(Optional) By default, headings are displayed for each column of data in a concise style view, and for each item of data in a detailed style view. The -nohdr parameter suppresses the display of these headings.
Note: If no data exists to be displayed, headings are not displayed.
-delimdelimiter
(Optional) By default in a concise view, all columns of data are space-separated. The width of each column is set to the maximum width of each item of data. In a detailed view, each item of data has its own row, and if the headers are displayed, the data is separated from the header by a space. The -delim parameter overrides this behavior. Valid input for the -delim parameter is a 1-byte character. If you enter -delim : on the command line, the colon character (:) separates all items of data in a concise view; for example, the spacing of columns does not occur. In a detailed view, the data is separated from its header by the specified delimiter.
mdisk_name | mdisk_id
(Required) Specifies the specific object ID or name of the specified type.

Description

The command displays a list, in which each entry contains a volume ID, volume copy ID, and the number of extents. These volume copies are using extents on the specified MDisk. The number of extents that are being used on each MDisk is also shown.

Note: You cannot specify this command for MDisks that are in data reduction pools. It means that for:
  • Thin-provisioned or compressed volumes, the number extents that are shown is not accurate.
  • Fully allocated volumes, the number of extents that are shown is accurate.

A thin-provisioned or compressed volume in a data reduction pool cannot display how many extents are on an MDisk that is in a data reduction pool.

Every volume copy is constructed from one or more MDisks. At times, you might have to determine the relationship between the two objects.

To determine the relationship between volume copies and MDisks, issue the following command for each volume copy:

lsvdiskmember vdisk_name | vdisk_id

where vdisk_name | vdisk_id is the name or ID of the volume copy. It displays a list of IDs that correspond to the MDisks that make up the volume copy.
To determine the relationship between volume copies and MDisks and the number of extents that are provided by each MDisk, you must use the command-line interface. For each volume copy, issue the following command:

lsvdiskextent vdisk_name | vdisk_id

where vdisk_name | vdisk_id is the name or ID of the volume copy. It displays a table of MDisk IDs and the corresponding number of extents that each MDisk is providing as storage for the specified volume copy.
To determine the relationship between MDisks and volume copies, issue the following command for each MDisk:

lsmdiskmember mdisk_name | mdisk_id

where mdisk_name | mdisk_id is the name or ID of the MDisk. It displays a list of IDs that correspond to the volume copies that are using this MDisk.
To determine the relationship between MDisks and volume copies and the number of extents that are used by each volume copy, you must use the command-line interface. For each MDisk, issue the following command:

lsmdiskextent mdisk_name | mdisk_id

where mdisk_name | mdisk_id is the name or ID of the MDisk. This command displays a table of volume copy IDs and the corresponding number of extents that are being used by each volume copy. In the output, number_of_extents displays either a number (for fully allocated volumes in data reduction pools or volumes in regular pools) or a 1 (for thin-provisioned/compressed volumes in data reduction pools).

An invocation example

lsmdiskextent -delim : mdisk0

The resulting output:

id:number_of_extents:copy_id
1:1:1