Pages

Saturday, April 20, 2013

Creating ASM Disks

The ASM will be created on unformatted disk partitions.

As the root user, determine which devices can be partitioned.
# cat /proc/partitions

Create the partition for each disk. Select n for action, p for primary partition, 1 for partition number, default values for First and Last cylinder and w to write the partition table.
# fdisk /dev/sda

Configure Oracle ASM library driver. Answer default user and group as oracle and dba, y for Start Oracle ASM library driver on boot, y for Scan for Oracle ASM disks on boot.
# oracleasm configure -i

Load Oracle ASM module and mount oracleasm filesystem /dev/oracleasm.
# oracleasm init

Create ASM disk label for each disk.
# oracleasm createdisk DATA1 /dev/sda1

Check the disks are visible.
# oracleasm listdisks

Check the disks are mounted in oracleasm filesystem.
# ls -l /dev/oracleasm/disks

No comments:

Post a Comment