Before the linux6.6 release, we can configure ASM shared disks in two ways, one is to install the ASM driver package for ASM Disk group configuration, and the other is to use the ASM Disk group configuration by identifying the shared storage UUID number.
However, after the linux6.6, the manufacturers no longer provide ASM driver packages, can only be configured through Udev mode, below we look at the steps to use Udev configuration:
Operating system: CentOS Linux 6.6
Shared storage: HDA mapped emcpower bare device
First, we go to the Udev Road to open the service, and then use the command to output the UUID of these bare devices, the UUID can be understood as a sequence number of the drive letter.
[Email protected] ~]# CD/ETC/UDEV/RULE.D
[Email protected] rules.d]# Start_udev
Starting udev: [OK]
[Email protected] ~]#/sbin/scsi_id-g-u-d/dev/emcpower*
Or you can use the following shell script to get
For I in C D E F g h i
Do
echo "kernel==\" emcpower*\ ", bus==\" scsi\ ", program==\"/sbin/scsi_id--whitelisted--replace-whitespace--device=/ Dev/\emcpower$i\ ", result==\" '/sbin/scsi_id--whitelisted--replace-whitespace--device=/dev/emcpower$i ' \ ", NAME=\" Asm-disk$i\ ", owner=\" grid\ ", group=\" asmadmin\ ", mode=\" 0660\ ""
Done
Linux6.6 and above configuration oracle-asm shared storage-udev