CONFIGURE ASM USING ORACLEASM(ASMLIB UTILITY)

CONFIGURE ASM USING ORACLEASM(ASMLIB UTILITY)

Configure the oracleasm (asmlib) utility

[root@dgprim01 oracle]# oracleasm configure -i
Configuring the Oracle ASM library driver.

This will configure the on-boot properties of the Oracle ASM library
driver.  The following questions will determine whether the driver is
loaded on boot and what permissions it will have.  The current values
will be shown in brackets ('[]').  Hitting <ENTER> without typing an
answer will keep that current value.  Ctrl-C will abort.

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
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done

Initialize the oracleasm utility drivers

[root@dgprim01 oracle]# oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Configuring "oracleasm" to use device physical block size
Mounting ASMlib driver filesystem: /dev/oracleasm

Create the diskgroups from the logical partition of disk

[root@dgprim01 oracle]# oracleasm createdisk DATA /dev/sdb1
Writing disk header: done
Instantiating disk: done
[root@dgprim01 oracle]# oracleasm createdisk FRA /dev/sdc1
Writing disk header: done
Instantiating disk: done
[root@dgprim01 oracle]# oracleasm deletedisk FRA
Clearing disk header: done
Dropping disk: done
[root@dgprim01 oracle]# oracleasm createdisk RECO /dev/sdc1
Writing disk header: done
Instantiating disk: done
[root@dgprim01 oracle]# oracleasm createdisk REDO /dev/sde1
Writing disk header: done
Instantiating disk: done
[root@dgprim01 oracle]# oracleasm createdisk OCRVOD /dev/sdd1
Writing disk header: done
Instantiating disk: done

Scan the disks which were created to validate the diskgroups

[root@dgprim01 oracle]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...

List the disks to verify the diskgroup

[root@dgprim01 oracle]# oracleasm listdisks
DATA
OCRVOD
RECO
REDO

Leave a Reply

Discover more from XscalibaL

Subscribe now to keep reading and get access to the full archive.

Continue reading