Creating ASM disks using UDEV in Linux servers
In this guide let us see how to create ASM disks in Red Hat, Oracle, Centos Linux variants.
In case if the server not installed with Oracleasm package below steps can be carried out. Below steps followed by not creating partitions, we are just using the RAW disk.
Touch a file under /etc/udev/rules.d/
# touch /etc/udev/rules.d/99-oracle-asmdevices.rules
Append the below content by modifying as per our requirement.
sdb and sdc are RAW disks, DATA_01 is an alias for ASM disks, Owned by USER “Oracle” and “Oinstall” with reading and write permission for user and groups.
KERNEL==”sdb”, NAME=”DATA_01″, OWNER=”oracle”, GROUP=”oinstall”, MODE=”0660″
KERNEL==”sdc”, NAME=”DATA_02″, OWNER=”oracle”, GROUP=”oinstall”, MODE=”0660″
save and quit using wq!
Run the trigger command to create the label for ASM disks with the required user and group ownership and permissions.
If we get SAN disk from storage in that case first we need to create the multipath entry for marking an alias (DATA_01) name, the alias name will be used instead of sdb, sdc.
Disks will be created under /dev/DATA_01.
That’s it we have done with creating ASM disks using UDEV.