[Oracle DataBase Server 12.1 installation on Oracle Linux 6.7 with ASM and GRID]: Prepare ASM disks

Database Software we will store in /u01
Data Files we will store in ASM.

# ls /dev/sd*
/dev/sda   /dev/sda2  /dev/sdc  /dev/sde  /dev/sdg
/dev/sda1  /dev/sdb   /dev/sdd  /dev/sdf  /dev/sdh

Creating partition on disks

# fdisk /dev/sdb
# fdisk /dev/sdc
# fdisk /dev/sdd
# fdisk /dev/sde
# fdisk /dev/sdf
# fdisk /dev/sdg
# fdisk /dev/sdh

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help): c
DOS Compatibility flag is not set

Command (m for help): u
Changing display/entry units to sectors

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
Partition number (1-4): 1
First sector (2048-83886079, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-83886079, default 83886079):
Using default value 83886079

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

# ls /dev/sd*
/dev/sda   /dev/sdb   /dev/sdc1  /dev/sde   /dev/sdf1  /dev/sdh
/dev/sda1  /dev/sdb1  /dev/sdd   /dev/sde1  /dev/sdg   /dev/sdh1
/dev/sda2  /dev/sdc   /dev/sdd1  /dev/sdf   /dev/sdg1

# mkfs.ext4 /dev/sdb1

# mkdir /u01

# cp /etc/fstab /etc/fstab.bkp
# echo "/dev/sdb1 /u01 ext4 defaults 1 2" >> /etc/fstab

# mount /u01

# mount | grep sdb1
/dev/sdb1 on /u01 type ext4 (rw)

Setup ASM config

# /etc/init.d/oracleasm configure

Default user to own the driver interface []: oracle12
Default group to own the driver interface []: dba
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
Initializing the Oracle ASMLib driver:                     [  OK  ]
Scanning the system for Oracle ASMLib disks:               [  OK  ]

# /etc/init.d/oracleasm status

Checking if ASM is loaded: yes
Checking if /dev/oracleasm is mounted: yes

Mark ASM disks:

# /etc/init.d/oracleasm createdisk ASMDISK1 /dev/sdc1
# /etc/init.d/oracleasm createdisk ASMDISK2 /dev/sdd1
# /etc/init.d/oracleasm createdisk ASMDISK3 /dev/sde1
# /etc/init.d/oracleasm createdisk ASMDISK4 /dev/sdf1
# /etc/init.d/oracleasm createdisk ASMDISK5 /dev/sdg1
# /etc/init.d/oracleasm createdisk ASMDISK6 /dev/sdh1

Marking disk "ASMDISK" as an ASM disk:                        [  OK  ]

// Get list ASM Disks

# /etc/init.d/oracleasm listdisks

// Log file

# less /var/log/oracleasm

// For restart

# /etc/init.d/oracleasm restart