lsmdisklba

The lsmdisklba command lists the MDisk and logical block address (LBA) for the specified VDisk LBA.

Syntax

Read syntax diagramSkip visual syntax diagram
>>- svcinfo -- -- lsmdisklba -- -- -vdisklba -- vdisklba -- ---->

>--+--------------+-- --+-----------------------+-- ------------>
   '- -copy-- id -'     '- -delim -- delimiter -'      

>--+----------+-- -- -vdisk -+- vdisk_id ---+------------------><
   '- - nohdr-'              '- vdisk_name -'   

Parameters

-vdisklba vdisklba
(Required) Specifies the 64–bit hexadecimal logical block address (LBA) on the VDisk.
-copy id
(Optional) Specifies the VDisk copy ID to list the MDisk and LBA for. If this parameter is not specified, the command lists MDisks and LBAs for all VDisk 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.
-delim delimiter
(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 VDisk name or ID.

Description

The lsmdisklba command returns the logical block address (LBA) of the MDisk that is associated with the VDisk LBA. For mirrored VDisks, 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 VDisk and MDisk that are mapped in the same extent, or for space-efficient disks, in the same grain. If a space-efficient VDisk is offline and the specified LBA is not allocated, the command displays the VDisk LBA range only.

Table 1 summarizes the data that can be returned with this command.
Table 1. lsmdisklba command output
Field Fully allocated, single copy VDisk LBA not allocated on space-efficient VDisk Mirrored VDisk with one normal copy and one offline space-efficient copy
Normal copy Space-efficient 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

svcinfo lsmdisklba -vdisk 0 -vdisklba 0x0

The resulting output

copy_id 0
mdisk_id 1
mdisk_name mdisk1
type allocated
mdisk_lba 0x00090000
mdisk_start 0x00090000
mdisk_end 0x000907FF
vdisk_start 0x00000000
vdisk_end 0x000007FF
Library | Support | Terms of use | Feedback
© Copyright IBM Corporation 2003, 2009. All Rights Reserved.