The lsdsk command lists ASM-visible disks. You can restrict the output to only those disks that match a pattern, which can include wildcard characters and slashes. You can run this command in either the connected mode or the non-connected mode. In the connected mode, the command retrieves disk information from the V$ and the GV$ tables. In the non-connected mode, the command scans disk headers to retrieve the disk information. Unless you specify the -i flag, the lsdsk command runs in the connected mode when you are connected to an ASM instance. Here is an example of the lsdsk command.
ASMCMD> lsdsk
/dev/raw/raw1
/dev/raw/raw3
...
ASMCMD> lsdsk -d data -k
Total_MB Free_MB OS_MB Name Failgroup Library Label UDID Product Redund Path
8189 6961 8189 DATA_0000 DATA_0000 System UNKNOWN /dev/sdc1
8189 6961 8189 DATA_0001 DATA_0001 System UNKNOWN /dev/sdd1
8189 6950 8189 DATA_0002 DATA_0002 System UNKNOWN /dev/sde1
You can also specify the following flags with the lsdsk command:
ASMCMD> lsdsk -t -d dgrp1
Use the help lsdsk command to get information about all the options of the lsdsk command.
You can also attach the -l flag to any other flag to make ASM retrieve the information directly from the file headers instead of the V$ views. For example:
ASMCMD> lsdsk -lk
The preceding command gets detailed disk information from the disk headers. If the ASM instance isn’t available for some reason, you can still get the information you need by letting ASM extract the information from the file headers. You can get information for a specific disk group by using the -d flag with any of the other flags, as shown here:
ASMCMD> lsdsk -t -d dgrp1
The previous lsdsk command gets detailed information about the disks in disk group dgrp1.
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/13750068/viewspace-2136351/ ,如需转载,请注明出处,否则将追究法律责任。