-createDiskGroup
creates disk groups in an Oracle ASM instance.
Syntax
asmca -silent -createDiskGroup [ -diskString discovery_path ] { -diskGroupName diskgroup { -disk disk_path [-diskName disk] | -diskList disk_list [-diskSize disk_size_MB] [-failuregroup failure_group] [-force|-noforce] [-quorum|-noquorum] } [ -redundancy { HIGH | NORMAL | EXTERNAL } ] } ] [-au_size value] [-compatible.asm value ] [-compatible.rdbms value ] [-compatible.advm value ] } [-sysAsmPassword sysasm_password ]
Table 9-6 contains the options available with the -createDiskGroup
command.
Table 9-6 Options for the -createDiskGroup command
Option | Description |
---|---|
|
Specifies the Oracle ASM discovery string for locating disks. |
|
Specifies the name of the Oracle ASM disk group to create. |
|
Specifies the full path of the disk device. |
|
Specifies a user-supplied disk name. |
|
Specifies a comma-delimited list of disk names to be added to the disk group. |
|
Specifies the size of the disk to use for Oracle ASM storage. |
|
Specifies the failure group name. |
|
Specifies where to force the use of the disk. |
|
Specifies a quorum or standard failure group. |
|
Specifies the redundancy setting for the Oracle ASM disk group. |
|
Specifies the allocation unit size (1,2,4,8,16,32,64) |
|
Specifies the attribute setting. |
|
Specifies the attribute setting. |
|
Specifies the attribute setting. |
For additional options that are common to multiple commands, see Table 9-1.
The default disk group compatibility settings are 11.2
for Oracle ASM compatibility, 10.1
for database compatibility, and no value for Oracle ADVM compatibility. For information about disk group compatibility attributes, see "Disk Group Compatibility".
Examples
To create disk groups in an Oracle ASM instance:
Example 9-6 Using asmca -silent -createDiskGroup
$ asmca -silent -createDiskGroup -diskGroupName mynewdg -disk '/devices/diske*' -disk '/devices/diskk*' -redundancy NORMAL -au_size 64 -compatible.asm '11.2.0.0.0' -compatible.rdbms '11.2.0.0.0' -compatible.advm '11.2.0.0.0' DiskGroup mynewdg created successfully.