Use the lsmdisklba command to list the MDisk and logical block address (LBA) for the specified volume LBA.
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.
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 |
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