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 retrieve and change partition’s UUID Universally Unique Identifier on linux
Viewed 2846 times since Tue, Jul 17, 2018
Easily Monitor CPU Utilization in Linux Terminal With Stress Terminal UI
Viewed 3803 times since Thu, Apr 18, 2019
Linux: Disks diagnostic using smartctl
Viewed 14559 times since Wed, Jul 25, 2018
An easier way to manage disk decryption at boot with Red Hat Enterprise Linux 7.5 using NBDE
Viewed 7114 times since Mon, Aug 6, 2018
Linux An introduction to swap space on Linux systems
Viewed 2218 times since Thu, Jan 23, 2020
Index » Community Contributions » System encryption using LUKS and GPG encrypted keys for arch linux
Viewed 2854 times since Fri, Jul 13, 2018
How to sort IP addresses in Linux
Viewed 3349 times since Sun, May 20, 2018
How to create a Systemd service in Linux
Viewed 2636 times since Mon, Dec 7, 2020
Linux - How to get Memory information
Viewed 1727 times since Fri, Jun 8, 2018
RHCS6: Basic operations on clustered services
Viewed 2490 times since Sun, Jun 3, 2018