OracleLinux configure UDEVSCSIRules
Udev scsi Rules configuration in Oracle Linux
The configuration of ASM in Oracle RAC can be implemented in two ways: raw and asmlib. Raw is recommended for actual maintenance.
There are two ways to use raw: multipath and UDEV. On the RedHat platform, refer:
Redhat 5.4 + ASM + RAW + Oracle 10g RAC installation documentation
For ASMLIB, refer:
RAW + asm rac installation document
In this article, let's take a look at the UDEV configuration in Oracle Linux.
Reference:
My experiment platform here is Oracle Linux 6.1 + Virtual Box.
Oracle Virtual Box installation instructions
I.Preparations
1.1 Create a shared Disk
Use the VirtualBox command to create the image. Shut down the VM before creating the VM.
F: \ VBox \ sharedisk
1.1.2Create virtual Media
C: \ Users \ Administrator. David Dai> cdF: \ VBox \ sharedisk
C: \ Users \ Administrator. David Dai> F:
F: \ VBox \ sharedisk> VBoxManage createhd -- filename asm01.vdi -- size 5120 -- format VDI -- variant Fixed
0%... 10%... 20%... 30%... 40%... 50%... 60%... 70%... 80%... 90%... 100%
Disk image created. UUID: 83552343-5254-4fe0-8f4d-949389a4d528
F: \ VBox \ sharedisk> VBoxManage createhd -- filename asm02.vdi -- size 5120 -- format VDI -- variant Fixed
0%... 10%... 20%... 30%... 40%... 50%... 60%... 70%... 80%... 90%... 100%
Disk image created. UUID: b96d5ecb-168a-4eaf-851e-0f21961dae4e
F: \ VBox \ sharedisk> VBoxManage createhd -- filename asm03.vdi -- size 5120 -- format VDI -- variant Fixed
0%... 10%... 20%... 30%... 40%... 50%... 60%... 70%... 80%... 90%... 100%
Disk image created. UUID: fd7bba6c-9530-433f-a7e0-24d470ba1fb9
F: \ VBox \ sharedisk> VBoxManage createhd -- filename asm04.vdi -- size 5120 -- format VDI -- variant Fixed
0%... 10%... 20%... 30%... 40%... 50%... 60%... 70%... 80%... 90%... 100%
Disk image created. UUID: 3239ed0d-bd0b-4124-a389-db21ecbb15db
1.1.3Match the virtual media to the Virtual Machine
F: \ VBox \ sharedisk> VBoxManage storageattach OraLinuxRAC1 -- storagectl "SATA controller" -- port 1 -- device 0 -- type hdd -- medium asm01.vdi -- mtype retriable
F: \ VBox \ sharedisk> VBoxManage storageattach OraLinuxRAC1 -- storagectl "SATA controller" -- port 2 -- device 0 -- type hdd -- medium asm02.vdi -- mtype retriable
F: \ VBox \ sharedisk> VBoxManage storageattach OraLinuxRAC1 -- storagectl "SATA controller" -- port 3 -- device 0 -- type hdd -- medium asm03.vdi -- mtype retriable
F: \ VBox \ sharedisk> VBoxManage storageattach OraLinuxRAC1 -- storagectl "SATA controller" -- port 4 -- device 0 -- type hdd -- medium asm04.vdi -- mtype retriable
Notes:
(1) controller name
What I wrote here is: "SATA controller", because my VM is displayed in Chinese, such:
In English, the name must be written as "SATA Controller", for example:
F: \ VBox \ sharedisk> VBoxManagestorageattach OraLinuxRAC1 -- storagectl "SATA Controller" -- port 1 -- device 0 -- type hdd -- medium asm04.vdi -- mtype retriable
(2) storageattach corresponds to the name of the VM displayed in the VM.
(3) to add a disk to another node, you only need to change the Virtual Machine name here. For example:
F: \ VBox \ sharedisk> VBoxManagestorageattach OraLinuxRAC2 -- storagectl "SATA controller" -- port 1 -- device 0 -- typehdd -- medium asm04.vdi -- mtype retriable