lsmdisklba

Use the lsmdisklba command to list the MDisk and logical block address (LBA) for the specified volume LBA.

Syntax

lsmdisklba -vdisklbavdisklba [ -copyid ] [ -delim delimiter ] [ - nohdr ] -vdisk { vdisk_id | vdisk_name }

Parameters

-vdisklbavdisklba
(Required) Specifies the 64bit hexadecimal logical block address (LBA) on the volume. The LBA must be specified in hex, with a 0x prefix.
-copyid
(Optional) Specifies the volume copy ID to list the MDisk and LBA for. If this parameter is not specified, the command lists MDisks and LBAs for all volume copies.
-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 there is no data 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 possible 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 one-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.
vdisk_id | vdisk_name
(Required) Specifies the volume name or ID.

Description

The lsmdisklba command returns the logical block address (LBA) of the MDisk that is associated with the volume LBA. For mirrored volume, the command lists the MDisk LBA for both the primary and the copy.

If applicable, the command also lists the range of LBAs on both the volume and MDisk that are mapped in the same extent, or for thin-provisioned disks, in the same grain. If a thin-provisioned volume is offline and the specified LBA is not allocated, the command displays the volume LBA range only.

The mdisk_lba field provides the corresponding LBA on the real capacity for the input LBA. For compressed volume copies it is empty, and the system displays only the range of physical LBAs where the compressed input LBA is located.

Table 1 summarizes the data that can be returned with this command.
Table 1. lsmdisklba command output
Field Fully allocated, single copy volume LBA not allocated on thin-provisioned volume Mirrored volume with one normal copy and one offline thin-provisioned copy
Normal copy Thin-provisioned copy
copy_id yes yes yes yes
mdisk_id yes no yes no
mdisk_name yes no yes no
type allocated unallocated allocated offline
mdisk_lba yes no yes no
mdisk_start yes no yes no
mdisk_end yes no yes no
vdisk_start yes yes yes yes
vdisk_end yes yes yes yes

An invocation example

lsmdisklba -vdisk 0 -vdisklba 0x123

The resulting output:

copy_id mdisk_id mdisk_name type      mdisk_lba          mdisk_start        mdisk_end          vdisk_start vdisk_end
0       1        mdisk1     allocated 0x0000000000100123 0x0000000000100000 0x00000000001FFFFF 0x00000000  0x000FFFFF