lsarraylba
Use the lsarraylba command to permit an array logical block addressing (LBA) to be found from a drive and LBA.
Syntax
Parameters
- (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.
- (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. - The LBA on the drive to convert to the array LBA. The lba value
must be specified in hex, with a
0x
prefix. - The ID of the drive to view.
Description
This command permits an array LBA to be found on a drive and LBA.
The system provides volumes that have LBAs for 512-byte block sizes; however, back-end disks that have a block size of either 512 or 4096 bytes can also be used. Drives are listed in their physical size.
Use the lsdrive command to display the drive block size, and use the
lsdrive or lsarray
command to list each object (the drive
and the MDisk).
During an expansion, if lsarraylba is used on a
drive that is added to the array and the LBA specified on the command is below the crossover
between the old and new geometry regions of the array then this LBA is not allocated to the
array. The command output lists this LBA as unallocated
. Continued expansion
activity eventually allocates this LBA.
Attribute | Value |
---|---|
type | The type of MDisk extent allocation:
|
mdisk_lba | The LBA on the array MDisk (blank if none). |
mdisk_start | The start of range of LBAs (strip) on the array MDisk (blank if none). |
mdisk_end | The end of range of LBAs (strip) on the array MDisk (blank if none). |
drive_start | The start of range of LBAs (strip) on the drive (blank if none). |
drive_end | The end of range of LBAs (strip) on the drive (blank if none). |
An invocation example to map drive 2
LBA -xff
to
MDisk 2
LBA
0xff
lsarraylba -delim : -drivelba 0xff -drive 2
The resulting output:
mdisk_id:mdisk_name:type:mdisk_lba:mdisk_start:mdisk_end:drive_start:drive_end
0:mdisk2:allocated:0x00000000000001ff:0x0000000000000100:0x00000000000001ff:0x0000000000000000:0x00000000000000ff
An invocation example for an allocated space
lsarraylba -drivelba 0x00 -drive 2
The resulting output:
mdisk_id mdisk_name type mdisk_lba mdisk_start mdisk_end drive_start drive_end
1 mdisk1 allocated 0x0000000000000000 0x0000000000000000 0x00000000000001FF 0x0000000000000000 0x00000000000001FF
An invocation example for an unused rebuild area
lsarraylba -drivelba 0x00 -drive 16
The resulting output:
mdisk_id mdisk_name type mdisk_lba mdisk_start mdisk_end drive_start drive_end
3 mdisk3 rebuild_area 0x0000000000000000 0x0000000000000A1F