Deployment Guide
Deployment Guide 23
2
Label the partitions created earlier as ASM disks on
any one node
.
# /etc/init.d/oracleasm createdisk ASM1 /dev/emcpowerb1
Marking disk "/dev/emcpowerb1" as an ASM disk: [ OK ]
# /etc/init.d/oracleasm createdisk ASM2 /dev/emcpowerc1
Marking disk "/dev/emcpowerc1" as an ASM disk: [ OK ]
3
Scan the ASM disks on
all the other nodes
.
# /etc/init.d/oracleasm scandisks
Scanning system for ASM disks: [ OK ]
4
On
all the nodes
, verify that all the ASM disks are visible by typing:
# /etc/init.d/oracleasm listdisks
A list of all the configured ASM disks appears.
5
To add an additional ASM disk (for example, ASM3), edit the
/etc/udev/scripts/raw-dev.sh
file
on
all the nodes
and add the appropriate entries as shown below:
MAKEDEV raw
mv /dev/raw/raw1 /dev/raw/votingdisk
mv /dev/raw/raw2 /dev/raw/ocr.dbf
mv /dev/raw/raw3 /dev/raw/spfile+ASM.ora
mv /dev/raw/raw4 /dev/raw/ASM1
mv /dev/raw/raw5 /dev/raw/ASM2
mv /dev/raw/raw6 /dev/raw/ASM3
chmod 660
/dev/raw/{votingdisk,ocr.dbf,spfile+ASM.ora,ASM1,ASM2,ASM3}
chown oracle.dba
/dev/raw/{votingdisk,ocr.dbf,spfile+ASM.ora,ASM1,ASM2,ASM3}
On all the nodes, type:
udevstart
Repeat step 4.
Configuring Shared Storage Using Raw Devices
Log in as root on all the nodes and perform the following procedure:
1
Edit the
/etc/sysconfig/rawdevices
file and add the following lines for a Fibre Channel cluster:
/dev/raw/ASM1 /dev/emcpowerb1
/dev/raw/ASM2 /dev/emcpowerc1
2
Restart the Raw Devices Service by typing:
service rawdevices restart