The lsmdisklba command lists the MDisk and logical block address (LBA) for the specified VDisk LBA.
>>- svcinfo -- -- lsmdisklba -- -- -vdisklba -- vdisklba -- ----> >--+--------------+-- --+-----------------------+-- ------------> '- -copy-- id -' '- -delim -- delimiter -' >--+----------+-- -- -vdisk -+- vdisk_id ---+------------------>< '- - nohdr-' '- vdisk_name -'
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.
| 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