Purpose
Lists Oracle ASM disks.
Syntax and Description
lsdsk [--suppressheader] [-kptgMI] [-G diskgroup ] [ --member|--candidate] [--discovery][--statistics][pattern]
Table 10-50 lists the options for the lsdsk
command.
Table 10-50 Options for the lsdsk command
Option | Description |
---|---|
(none) |
Displays the |
|
Displays the |
|
Displays the |
|
Displays the |
|
Displays the |
|
Selects from |
|
Selects from |
|
Suppresses column headings. |
|
Scans disk headers for information rather than extracting the information from an Oracle ASM instance. This option forces non-connected mode. |
|
Restricts results to only those disks that belong to the group specified by |
|
Displays the disks that are visible to some but not all active instances. These are disks that, if included in a disk group, cause the mount of that disk group to fail on the instances where the disks are not visible. |
|
Restricts results to only disks having membership status equal to |
|
Restricts results to only disks having membership status equal to |
|
Returns only information about the specified disks that match the supplied pattern. |
The lsdsk
command can run in connected or non-connected mode. The connected mode is always attempted first. The -I
option forces non-connected mode.
In connected mode, lsdsk
uses the V$ASM_DISK_STAT
and V$ASM_DISK
dynamic views to retrieve disk information. The V$ASM_DISK_STAT
view is used by default.
In non-connected mode, lsdsk
scans disk headers to retrieve disk information. Some information is not available in this mode and some options are not valid combinations with this mode.
pattern
restricts the output to only disks that match the pattern specified. Wild-card characters and slashes (/
or \
) can be part of the pattern. pattern
should be specified as the last option for the command. For information about wildcards, see "Wildcard Characters".
The -k
, -p
, -t
, and --statistics
options modify how much information is displayed for each disk. If any combination of the options are specified, then the output shows the union of the attributes associated with each flag.
Example
The following are examples of the lsdsk
command. The first and second examples list information about disks in the data
disk group. The third example lists information about candidate disks.
Example 10-59 Using the ASMCMD lsdsk command
ASMCMD [+] > lsdsk -t -G data Create_Date Mount_Date Repair_Timer Path 13-JUL-09 13-JUL-09 0 /devices/diska1 13-JUL-09 13-JUL-09 0 /devices/diska2 13-JUL-09 13-JUL-09 0 /devices/diska3 13-JUL-09 13-JUL-09 0 /devices/diskb1 13-JUL-09 13-JUL-09 0 /devices/diskb2 13-JUL-09 13-JUL-09 0 /devices/diskb3 13-JUL-09 13-JUL-09 0 /devices/diskc1 13-JUL-09 13-JUL-09 0 /devices/diskc2 ... ASMCMD [+] > lsdsk -p -G data /devices/diska* Group_Num Disk_Num Incarn Mount_Stat Header_Stat Mode_Stat State Path 1 0 2105454210 CACHED MEMBER ONLINE NORMAL /devices/diska1 1 1 2105454199 CACHED MEMBER ONLINE NORMAL /devices/diska2 1 2 2105454205 CACHED MEMBER ONLINE NORMAL /devices/diska3 ASMCMD [+] > lsdsk --candidate -p Group_Num Disk_Num Incarn Mount_Stat Header_Stat Mode_Stat State Path 0 5 2105454171 CLOSED CANDIDATE ONLINE NORMAL /devices/diske1 0 25 2105454191 CLOSED CANDIDATE ONLINE NORMAL /devices/diske2 0 18 2105454184 CLOSED CANDIDATE ONLINE NORMAL /devices/diske3 0 31 2105454197 CLOSED CANDIDATE ONLINE NORMAL /devices/diskk1 0 21 2105454187 CLOSED CANDIDATE ONLINE NORMAL /devices/diskk2 0 26 2105454192 CLOSED CANDIDATE ONLINE NORMAL /devices/diskk3 0 14 2105454180 CLOSED CANDIDATE ONLINE NORMAL /devices/diskl1 ...