CONFIGURE FOR ASM Linux


CONFIGURE FOR ASM

Step1: from racnode1 as ROOT user

# fdisk /dev/sda

The number of cylinders for this disk is set to 30401.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-30401, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-30401, default 30401):
Using default value 30401

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

Step 2: as ROOT user issue partprobe

Step 3: on both nodes change the permission of the disks to 660 ownership to oracle and grp as oinstall

Step 4: USE DBCA to admin ASM disks


Configure RAW disks to use as ASM disks:

Open /etc/sysconfig/rawdevices and add following lines:

/dev/raw/raw1 /dev/sdb1
/dev/raw/raw2 /dev/sdc1
/dev/raw/raw3 /dev/sdd1
/dev/raw/raw4 /dev/sde1

Restart the rwdevices service to make your changes effective.

# service rawdevices restart
Assigning devices:
/dev/raw/raw1 --> /dev/sdb1 /dev/raw/raw1: bound to major 8, minor 17
/dev/raw/raw2 --> /dev/sdc1 /dev/raw/raw2: bound to major 8, minor 33
/dev/raw/raw3 --> /dev/sdd1 /dev/raw/raw3: bound to major 8, minor 49
/dev/raw/raw4 --> /dev/sde1 /dev/raw/raw4: bound to major 8, minor 65
done #

This will bound the disks with raw devices.

Execute the following commands to set access and ownership on the raw disks for user oracle.
Also add these lines in /etc/rc.local to preserve these settings after system restart.

# chown oracle:oinstall /dev/raw/raw1
# chown oracle:oinstall /dev/raw/raw2
# chown oracle:oinstall /dev/raw/raw3
# chown oracle:oinstall /dev/raw/raw4
# chmod 660 /dev/raw/raw1
# chmod 660 /dev/raw/raw2
# chmod 660 /dev/raw/raw3
# chmod 660 /dev/raw/raw4
 


Article Number: 155
Posted: Sat, Jun 2, 2018 9:40 PM
Last Updated: Sat, Jun 2, 2018 9:40 PM

Online URL: http://kb.ictbanking.net/article.php?id=155