1. Demand
Oracle Linux6.7 uses Udev as ASM
/dev/sdb <-->/dev/asm-diskb/dev/sdc <-->/dev/asm-diskc/dev/sdd <-->/dev/asm-diskd/dev/sde <-- >/dev/asm-diske/dev/sdf <-->/DEV/ASM-DISKF
2, fault phenomenon
Oracle Linux 6.7 under VMware vshpere5.1, using scsi_id-related commands to see the UUID
3. Treatment method
A. Adding records to/etc/scsi_id.config
[Email protected] rules.d]# echo "options=--whitelisted--replace-whitespace" >>/etc/scsi_id.config
B. Through the vcenter connection, then "Home"-"inventory"-"data storage and data storage Cluster", locate the corresponding storage media, then right-click on "Data storage Browser"
Virtual machine State, in the VM file in VMX, add disk. Enableuuid= "TRUE", restart the host, rerun the udev.sh script, and then run the Start_udev command
4. udev.sh (Configure the corresponding relationship of UDEV devices and generate Udev rules files)
#!/bin/bashfor I in b c d e f;do echo "kernel==\" sd*\ ", bus==\" scsi\ ", program==\"/sbin/scsi_id--whitelisted--REPLACE-WH Itespace--device=/dev/\ $name \ ", result==\" '/sbin/scsi_id--whitelisted--replace-whitespace--device=/dev/sd$i ' \ ', Name=\ "Asm-disk$i\", owner=\ "grid\", group=\ "asmadmin\", mode=\ "0660\" ">>/etc/udev/rules.d/80-asm.rulesdone
5. Start the Udev device
[Email protected] rules.d]# start_udevstarting udev: [OK]
6, check the corresponding relationship
[Email protected] rules.d]# LL/DEV/ASM-DISK*BRW-RW----. 1 grid asmadmin 8, APR 14:51/DEV/ASM-DISKBBRW-RW----. 1 grid asmadmin 8, APR 14:51/DEV/ASM-DISKCBRW-RW----. 1 grid asmadmin 8, APR 14:51/DEV/ASM-DISKDBRW-RW----. 1 grid asmadmin 8, APR 14:51/DEV/ASM-DISKEBRW-RW----. 1 Grid asmadmin 8, April 14:51/DEV/ASM-DISKF
7. References
A, http://www.askmaclean.com/archives/%E5%9C%A8linux-6%E4%B8%8A%E4%BD%BF%E7%94%A8udev%E8%A7%A3%E5%86%B3rac-asm% E5%AD%98%E5%82%A8%E8%AE%BE%E5%A4%87%E5%90%8D%E9%97%AE%E9%A2%98.HTMLB, http://blog.csdn.net/staricqxyz/article/ details/8332566
This article is from the "Frozen vs watermelon" blog, so be sure to keep this source http://molewan.blog.51cto.com/287340/1763269
Using Udev to do ASM under Oracle Linux6.7