Identification Disk (/SBIN/SCSI_ID)
- Oracle Linux 5 uses the following script:
#! /bin/shfor I in B c D E F g do echo "kernel==\" sd*\ ", bus==\" scsi\ ", program==\"/sbin/scsi_id-g-u-s/block/\ $na Me\ ", result==\" '/sbin/scsi_id/block/sd$i ' \ ", name=\" asm-disk$i\ ", owner=\" grid\ ", group=\" asmadmin\ ", MODE=\" 0660\ ""
- Oracle Linux 6 uses the following script:
#! /bin/shfor I in B c D E F g do echo "kernel==\" sd*\ ", bus==\" scsi\ ", program==\"/sbin/scsi_id--whitelisted--repl Ace-whitespace--device=/dev/\ $name \ ", result==\" '/sbin/scsi_id--whitelisted--replace-whitespace--device=/dev/sd $i ' \ ', name=\ "asm-disk$i\", owner=\ "grid\", group=\ "asmadmin\", mode=\ "0660\" "Done
Udev configuration file
Important: Each profile acts as a rule, and there is a space between (comma) and the next keyword
- Oracle Linux 5 uses the following parameters
[[email protected] ~]# cat/etc/udev/rules.d/99-oracle-asmdevices.ruleskernel== "sd*", BUS== "scsi", PROGRAM== "/ Sbin/scsi_id-g-u-s/block/$name ", result==" sata_vbox_harddisk_vb96e49463-3665e815_ ", name=" ASM-DISKB ", OWNER=" grid ", group=" Asmadmin ", mode=" 0660 "kernel==" sd* ", bus==" scsi ", program=="/sbin/scsi_id-g-u-s/block/$name ", result==" Sata_vbox_harddisk_vb944f68ec-f33e8a99_ ", name=" ASM-DISKC ", owner=" grid ", group=" Asmadmin ", mode=" 0660 "KERNEL==" SD * ", bus==" scsi ", program=="/sbin/scsi_id-g-u-s/block/$name ", result==" sata_vbox_harddisk_vbf2e05152-1c6b4621_ ", Name= "ASM-DISKD", owner= "grid", group= "Asmadmin", mode= "0660" kernel== "sd*", bus== "scsi", program== "/sbin/scsi_id-g"- U-s/block/$name ", result==" sata_vbox_harddisk_vb91ee2629-8151eac9_ ", name=" Asm-diske ", owner=" grid ", GROUP=" Asmadmin ", mode=" 0660 "kernel==" sd* ", bus==" scsi ", program=="/sbin/scsi_id-g-u-s/block/$name ", result==" SATA_VBOX_ Harddisk_vb4541d4a0-9c804156_ ", name=" ASM-DISKF ", owner=" grid ", group=" AsmadmIn ", mode=" 0660 "kernel==" sd* ", bus==" scsi ", program=="/sbin/scsi_id-g-u-s/block/$name ", result==" Sata_vbox_ Harddisk_vba741850f-bf6c5aa6_ ", name=" asm-diskg ", owner=" grid ", group=" Asmadmin ", mode=" 0660 "
- Oracle Linux 6 with the following parameters
kernel== "sd*", bus== "scsi", program== "/sbin/scsi_id--whitelisted--replace-whitespace--device=/dev/$name", RESULT= = "36000c294347acba383e23ecbd43867c4", name= "ASM-DISKB", owner= "grid", group= "Asmadmin", mode= "0660" KERNEL== "sd*", bus== "scsi", program== "/sbin/scsi_id--whitelisted--replace-whitespace--device=/dev/$name", result== " 36000c2913d3b49354c9d030816bd5de9 ", name=" ASM-DISKC ", owner=" grid ", group=" Asmadmin ", mode=" 0660 "KERNEL==" sd* ", BUS = = "scsi", program== "/sbin/scsi_id--whitelisted--replace-whitespace--device=/dev/$name", result== " 36000c296cf9ff63b87e2903925bdec21 ", name=" ASM-DISKD ", owner=" grid ", group=" Asmadmin ", mode=" 0660 "KERNEL==" sd* ", BUS = = "scsi", program== "/sbin/scsi_id--whitelisted--replace-whitespace--device=/dev/$name", result== " 36000c2952ef3147bf0c3efc345133b00 ", name=" Asm-diske ", owner=" grid ", group=" Asmadmin ", mode=" 0660 "KERNEL==" sd* ", BUS = = "scsi", program== "/sbin/scsi_id--whitelisted--replace-whitespace--device=/dev/$name", result== "36000c296f16a22e6292edfb3ec3b1934 ", name=" ASM-DISKF ", owner=" grid ", group=" Asmadmin ", mode=" 0660 "kernel==" sd* ", bus==" SCSI ", program== "/sbin/scsi_id--whitelisted--replace-whitespace--device=/dev/$name", result== " 36000C29AE38DFE96F6342CB2AFD7F3FB ", name=" asm-diskg ", owner=" grid ", group=" Asmadmin ", mode=" 0660 "
Restart Udev Services
# #Linux5 #/sbin/udevcontrol reload_rules# #Linux6 # Udevadm control--reload-rules# #Linux5 and linux6#/sbin/start_udev
Configuring ASM DISK with Udev SCSI rules on Linux 5/6