0% found this document useful (0 votes)
17 views

Process To Create ASM Disk On Linux

Process to Create ASM Disk on Linux

Uploaded by

MKG
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Process To Create ASM Disk On Linux

Process to Create ASM Disk on Linux

Uploaded by

MKG
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

To create ASM disk on Linux/Oracle, there are 2 methods to configure ASM disk

1. Using ASMlib s/w or RPM

2. Using udev management in Linux

Method Used- asmlib

Prerequisite:

1. Download asmlib & related package for given Linux version from Oracle and install using
yum.
a. Downlod the 3 RPMs – oracleasmlib, oracleasm-support & kmod-oracleasm from
oracle using wget or any other method.

b. Install the 3 packages:


yum install -y oracleasmlib oracleasm-support kmod-oracleasm

c. Enable the oracleasm.service, so that on system boot, asm libraries start


automatically.
Systemctl enable oracleasm.service
2. Check oracleasm configuration file.
Cat /etc/sysconfig/oracleasm
[root@OSWDB02 sysconfig]# cat oracleasm|grep -v '^#'
ORACLEASM_ENABLED=true
ORACLEASM_UID=oracle
ORACLEASM_GID=dba
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER="dm mapper"
ORACLEASM_SCANEXCLUDE="sd"
ORACLEASM_USE_LOGICAL_BLOCK_SIZE=true
3. Create partition for the available disk. For example /dev/sdb, /dev/sdc etc. using fdisk
command.

4. To make the disk online, execute partprobe command.

5. Configure ASM by running oracleasm configure command and user oracle:dba user:group.
6. Check if oracleasm service is started or not.
#Oracleasm status
#Systemctl start oracleasm >>strat if not enabled.

7. Create ASM disk now on new disk partitions using new volumes let say VOL1, VOL2.

8. Check that the new ASM disks are visible there : Oracleasm listdisks
9. If disks are not visible, scan the disks using : Oracleasm scandisks
10. You may query the disk using : oracleasm querydisk /dev/sdb1
11. To check if any partition is assigned to ASM or not, In the example- LABEL=VOL1 shown as
type=”oracleasm”
#blkid

12.
13.

You might also like