- Part A: With Partition Disks
System Requirement
- RHEL 4 (UPDATE 5)
- ORACLE 10g R2
- VM WORKSTATION ACE EDITION V6
- Install your "oracle software only" installation
- Run the below command on your linux box for the kernel version you using
- #uname -rm
- Download the ORACLE ASMLIB for your kernel from the below link:
Ex:
[root3orcl oracleasm—2. 6. 9-55.ELsmp]# uname —rm
2.6.9—SS.ELsmp_i686
I then click on the above link and then scrolled down to the section with the below heading since I was using a 32-bit Inter Achitecture:
Intel IA32 (x86) Architecture
I then downloaded the below:
Library and Tools
Drivers for kernel 2.6.9-55.EL
- Install the packages by running the below command:
- # rpm -Uvh oracleasm-support-2.1.3-1.el4.i386.rpm \
oracleasm-2.6.9-55.EL-2.0.3-1.i686.rpm \
oracleasm-2.6.9-55.EL-2.0.3-1.i686.rpm
- Configure the ASMLib
- # /etc/init.d/oracleasm configure
Default user to own the driver interface []: oracle
Default group to own the driver interface []: oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Fix permissions of Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: [ OK ]
Creating /dev/oracleasm mount point: [ OK ]
Loading module "oracleasm": [ OK ]
Mounting ASMlib driver filesystem: [ OK ]
Scanning system for ASM disks: [ OK ]
- Format your hard drive to get at least three (3) partitions
Ex:
# fdisk /dev/sda
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 1305.
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)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
A.
Command (m for help): n
First cylinder (1416-2610, default 1416):
Using default value 1416
Last cylinder or +size or +sizeM or +sizeK (1-1305, default 1305): +2000M
B.
Command (m for help): w
WARNING: … drive is busy.
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
#
NB: The remaining disks ("/dev/sda7" and "/dev/sda8") must be partitioned in the
same way, repeat from A to B to complete the sda7 - sda8.
When you are done reboot the system.
- Once the kernel module is loaded, stamp (or label) the partitions created earlier as ASM disks
- [root@0rc1 dev]# /etc/init.d/oracleasm createdisk VOL1 /dev/sda6
- [root@0rc1 dev]# /etc/init.d/oracleasm createdisk VOL2 /dev/sda7
- [root@0rc1 dev]# /etc/init.d/oracleasm createdisk VOL3 /dev/sda8
- Scan for the ASM Disks
Ex:
- [root@orcl dev]# /etc/init.d/oracleasm scandisks
Scanning the system for oracle ASMLib disks: [OK]
- List the stamped disks.
Ex:
- [root@orcl dev]# /etc/init.d/oracleasm listdisks
VOL1
VOL2
VOL3
- The disks are now ready to be used by ASM.
NB: For full documentation access the below link: