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
 
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
How to configure an SSH proxy server with Squid
Viewed 3238 times since Sun, Dec 6, 2020
RHEL: Multipathing basics
Viewed 9364 times since Sat, Jun 2, 2018
RHCS6: Mirror/unmirror a GFS2 volume
Viewed 5353 times since Sun, Jun 3, 2018
Odpalenie polecenia tylko na jedną godzinę
Viewed 2924 times since Thu, May 24, 2018
RHEL: Force system to prompt for password in Single User mode
Viewed 7514 times since Sat, Jun 2, 2018
RHEL: Create a local RPM repository
Viewed 11344 times since Sun, May 27, 2018
Linux - How to monitor memory usage
Viewed 3173 times since Fri, Jun 8, 2018
Linux - How to unlock and reset user’s account
Viewed 4706 times since Fri, Jun 8, 2018
Easily Monitor CPU Utilization in Linux Terminal With Stress Terminal UI
Viewed 4212 times since Thu, Apr 18, 2019
ZPOOL: Add a mirror to a concat zpool
Viewed 3905 times since Sun, Jun 3, 2018