Resolving the RAC ASM storage device name with the Udev service

Source: Internet
Author: User
Solution of RAC ASM storage device name with Udev service recently looked at the next Maclean article is good, then reprinted the article reproduced from: Maclean Liu's personal technology blog [http://www.oracledatabase12g.com/] This article title: Lee Using the Udev service to resolve the RAC ASM storage device name in <why asmlib and Why not?> we introduced the use of Asmlib as a dedicated kernel branch designed for Oracle Automatic Storage features

The pros and cons of holding libraries (Kernel support library), while also recommending the use of mature udev schemes to replace Asmlib. Here we give the specific steps to configure Udev, or relatively simple: 1. Verify that the necessary Udev packages have been installed on all RAC nodes [ROOT@RH2 ~]# rpm-qa|grep udev udev-095-14.21.el5 2. Obtained through scsi_id
Takes a unique identification name of the device's block device, assuming that there are LUNs SDC-SDP for I in C D E F g h i j k l m n o p;
Do echo "sd$i" "' Scsi_id-g-u-s/block/sd$i '"; Done SDC 1iet_00010001 SDD 1iet_00010002 sde 1iet_00010003 sdf 1iet_00010004 SDG 1iet_00010005 SDH 1iet_00010006 SDI 1IET _00010007 sdj 1iet_00010008 SDK 1iet_00010009 SDL 1iet_0001000a SDM 1IET_0001000B SDN 1iet_0001000c SDO 1IET_0001000d SDP 1iet_0001000e the unique identification name corresponding to the block device name 3. Create the necessary udev configuration file, first switch to the configuration file directory [ROOT@RH2 ~]# cd/etc/udev/rules.d define the necessary rule profiles [root@r H2 rules.d]# Touch 99-oracle-asmdevices.rules [ROOT@RH2 rules.d]# cat 99-oracle-asmdeviCes.rules kernel== "sd*", bus== "scsi", program== "/sbin/scsi_id-g-u-s%p", result== "1iet_00010001", name= "OCR1", OWNER= "Grid", group= "Asmadmin", mode= "0660" kernel== "sd*", bus== "scsi" program== "/sbin/scsi_id-g-u-s%p", result== "1IET_" 00010002 ", name=" Ocr2 ", owner=" grid ", group=" Asmadmin ", mode=" 0660 "kernel==" sd* ", bus==" scsi ", program=="/sbin/scsi_ " Id-g-u-s%p ", result==" 1iet_00010003 ", name=" Asm-disk1 ", owner=" grid ", group=" Asmadmin ", mode=" 0660 "kernel==" sd* ", B us== "scsi", program== "/sbin/scsi_id-g-u-s%p", result== "1iet_00010004", name= "Asm-disk2", owner= "grid", group= "Asmad" Min ", mode=" 0660 "kernel==" sd* ", bus==" scsi ", program=="/sbin/scsi_id-g-u-s%p ", result==" 1iet_00010005 ", name=" Asm-disk3 ", owner=" grid ", group=" Asmadmin ", mode=" 0660 "kernel==" sd* ", bus==" scsi ", program=="/sbin/scsi_id-g-u-s-%p " , result== "1iet_00010006", name= "Asm-disk4", owner= "grid", group= "Asmadmin", mode= "0660" kernel== "sd*", BUS== "SCSI", program== "/sbin/scsi_id-g-u-s%p", result=="1iet_00010007", name= "Asm-disk5", owner= "grid", group= "Asmadmin", mode= "0660" kernel== "sd*", bus== "scsi", program== " /sbin/scsi_id-g-u-s%p ", result==" 1iet_00010008 ", name=" Asm-disk6 ", owner=" grid ", group=" Asmadmin ", mode=" 0660 "KERNE l== "sd*", bus== "scsi", program== "/sbin/scsi_id-g-u-s%p", result== "1iet_00010009", name= "Asm-disk7", owner= "grid", GR Oup= "Asmadmin", mode= "0660" kernel== "sd*", bus== "scsi", program== "/sbin/scsi_id-g-u-s%p", result== "1iet_0001000a", Name= "Asm-disk8", owner= "grid", group= "Asmadmin", mode= "0660" kernel== "sd*", bus== "scsi", program== "/sbin/scsi_id-g"- U-s%p ", result==" 1iet_0001000b ", name=" ASM-DISK9 ", owner=" grid ", group=" Asmadmin ", mode=" 0660 "kernel==" sd* ", BUS==" s CSI ", program=="/sbin/scsi_id-g-u-s%p ", result==" 1iet_0001000c ", name=" Asm-disk10 ", owner=" grid ", group=" Asmadmin ", Mode= "0660" kernel== "sd*", bus== "scsi", program== "/sbin/scsi_id-g-u-s%p", result== "1iet_0001000d", name= "Asm-disk11" ", owner=" grid ", group=" Asmadmin ", MOde= "0660" kernel== "sd*", bus== "scsi", program== "/sbin/scsi_id-g-u-s%p", result== "1iet_0001000e", name= "asm-disk12" , owner= "Grid", group= "Asmadmin", mode= "0660" result is/sbin/scsi_id-g-u-s output%p The--match string of the Las T program call.
This key may is used in any following rule after a.
In order to fill in the unique identification name just obtained can owner for the installation of grid infrastructure users, in 11GR2 generally grid,group for asmadmin mode with 0660 can be named Udev mapped device name, It is recommended that you create a separate diskgroup for OCR and vote disk, so that you can easily distinguish the DiskGroup-specific device to be named OCR1. OCRN form the remaining disks can be named 4 for their actual purpose or for the disk group name. Copy the rule file to another node [ROOT@RH2 rules.d]# SCP 99-oracle-asmdevices.rules other_node:/etc/ UDEV/RULES.D 5. Start the Udev service on all nodes, or reboot the server [ROOT@RH2 rules.d]#/sbin/udevcontrol reload_rules [ROOT@RH2 rules.d]#/sbin/ Start_udev starting Udev: [OK] 6. Check if the device is in place [ROOT@RH2 rules.d]# Cd/dev [ro OT@RH2 dev]# ls-l ocr* brw-rw----1 grid asmadmin 8, June 17:31 OCR1 BRW-RW----1 grid asmadmin 8, June 17:31 O Cr2 [ROOT@RH2 dev]# ls-l asm-disk* BRW-RW----1 grid asmadmin 8, 17:31 asm-disk1 BRW-RW----1 grid asmadmin 8, 17:31 Asm-dis K10 BRW-RW----1 grid asmadmin 8, 224 June 17:31 asm-disk11 brw-rw----1 grid asmadmin 8, June June 17:31 asm-disk12 BR  W-RW----1 grid asmadmin 8/17:31 asm-disk2 BRW-RW----1 grid asmadmin 8, 17:31 asm-disk3---- 1 grid asmadmin 8, 112 June 17:31 Asm-disk4 BRW-RW----1 grid asmadmin 8, 128 June a 17:31 asm-disk5 brw-rw----1 grid  Asmadmin 8, 144 June 17:31 asm-disk6 BRW-RW----1 grid asmadmin 8, 160 June 17:31 asm-disk7 brw-rw----1 grid asmadmin 8, 176 June 17:31 asm-disk8 BRW-RW----1 grid asmadmin 8, June June 17:31 ASM-DISK9

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.