lsdg Command

lsdg Command

Purpose

Lists all disk groups and their attributes from the V$ASM_DISKGROUP_STAT or V$ASM_DISKGROUP view. The default view is V$ASM_DISKGROUP_STAT. The output also includes notification of any current rebalance operation.

Syntax and Description

lsdg [-gcH] [group]

If group is specified, then information about only that disk group is listed. Table 7-5 lists the flags for the lsdg command.

Table 7-5 Flags for the lsdg command

Flag Description

(none)

Displays the disk group attributes listed in Table 7-6.

-c

Selects from V$ASM_DISKGROUP, or from GV$ASM_DISKGROUP if the -g flag is also specified. This option is ignored if the ASM instance is version 10.1 or earlier.

-g

Selects from GV$ASM_DISKGROUP_STAT, or from GV$ASM_DISKGROUP if the -c flag is also specified. GV$ASM_DISKGOUP.INST_ID is included in the output. The REBAL column of the GV$ASM_OPERATION view is also included in the output.

-H

Suppresses column headings.


Table 7-6 shows the attributes for each disk group. To view the complete set of attributes for a disk group, use the V$ASM_DISKGROUP_STAT view.

Table 7-6 Attribute descriptions for lsdg command output

Attribute Name Description

State

Mounted/connected state of the disk group.

Type

Disk group redundancy (NORMALHIGHEXTERNAL).

Rebal

Y if a rebalance operation is in progress.

Sector

Sector size in bytes.

Block

Block size in bytes.

AU

Allocation unit size in bytes.

Total_MB

Size of the disk group in MB.

Free_MB

Free space in the disk group in MB, without regard to redundancy. From the V$ASM_DISKGROUP view.

Req_mir_free_MB

Amount of space that must be available in the disk group to restore full redundancy after the most severe failure that can be tolerated by the disk group. This is the REQUIRED_MIRROR_FREE_MB column from theV$ASM_DISKGROUP view.

Usable_file_MB

Amount of free space, adjusted for mirroring, that is available for new files. From the V$ASM_DISKGROUP view.

Offline_disks

Number of offline disks in the disk group. Offline disks are eventually dropped.

Name

Disk group name.


Example

The following example lists the attributes of the dgroup2 disk group.

ASMCMD [+] > lsdg dgroup2

FROM:http://docs.oracle.com/cd/B28359_01/server.111/b31107/asm_util.htm#BABHHCBH

你可能感兴趣的:(oracle基础知识)