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
logrotate - rotates, compresses, and mails system logs.
Viewed 1602 times since Fri, Nov 30, 2018
RHEL: Rebuilding the initial ramdisk image
Viewed 7027 times since Sat, Jun 2, 2018
Linux An introduction to swap space on Linux systems
Viewed 2250 times since Thu, Jan 23, 2020
10 Linux nslookup Command Examples for DNS Lookup
Viewed 10056 times since Sun, Sep 30, 2018
RHCS6: Luci - the cluster management console
Viewed 3035 times since Sun, Jun 3, 2018
Easily Find Bugs In Shell Scripts With ShellCheck
Viewed 3155 times since Thu, Apr 18, 2019
RHEL: Force system to prompt for password in Single User mode
Viewed 7026 times since Sat, Jun 2, 2018
Linux RedHat How To Create An RPM Package
Viewed 3030 times since Sun, Jan 9, 2022
Red Hat 8 How to Set Up Automatic Updates for CentOS 8
Viewed 3495 times since Fri, Sep 25, 2020
Netcat shell zabezpieczony hasłem
Viewed 2046 times since Thu, May 24, 2018