Configuring Disk Devices to Use Oracle ASMLIB
Configure disk devices to use in an Oracle Automatic Storage Management disk group.
To configure the disk devices to use in an Oracle Automatic Storage Management disk group, perform the following steps:
-
If you intend to use IDE, SCSI, or RAID devices in the Oracle Automatic Storage Management disk group, then perform the following steps:
-
Install or configure the disk devices that you intend to use for the disk group and restart the system.
-
Enter the following command to identify the device name for the disks to use:
# /sbin/fdisk -l
Depending on the type of disk, the device name can vary.
Table A-3 Device Name Formats Based on Disk Type
Disk Type Device Name Format Description IDE disk
/dev/hdxnIn this example,
xis a letter that identifies the IDE disk, andnis the partition number. For example,/dev/hdais the first disk on the first IDE bus.SCSI disk
/dev/sdxnIn this example,
xis a letter that identifies the IDE disk, andnis the partition number. For example,/dev/hdais the first disk on the first IDE bus.RAID disk
/dev/rd/cxdypz /dev/ida/cxdypz
Depending on the RAID controller, RAID devices can have different device names. In the examples shown,
xis a number that identifies the controller,yis a number that identifies the disk, andzis a number that identifies the partition. For example,/dev/ida/c0d1is the second logical drive on the first controller.To include devices in a disk group, you can specify either whole-drive device names or partition device names.
Note:
Oracle recommends that you create a single whole-disk partition on each disk to use.
-
Use either
fdiskorpartedto create a single whole-disk partition on the disk devices.
-
-
Enter a command similar to the following to mark a disk as an Oracle Automatic Storage Management disk:
# /usr/sbin/oracleasm createdisk DISK1 /dev/sdb1
In this example,
DISK1is a name assigned to the disk.Note:
-
The disk names you specify can contain uppercase letters, numbers, and the underscore character. They must start with an uppercase letter.
-
To create a database during the installation using the Oracle Automatic Storage Management library driver, you must change the disk discovery string to
ORCL:*. -
If you are using a multi-pathing disk driver with Oracle ASM, then make sure that you specify the correct logical device name for the disk.
-
-
To make the disk available on the other nodes in the cluster, enter the following command as
rooton each node:# /usr/sbin/oracleasm scandisksThis command identifies shared disks attached to the node that are marked as Oracle ASM disks.