Force ASM to Scan the Multipathed First using ASMLIB RHEL 5/RHEL 6_1679409.1
Force ASM to Scan the Multipathed Device First using ASMLIB/oracleasm on RHEL 5/OL 5 and RHEL 6/OL 6 (Doc ID 1679409.1)
In this Document
Applies to:Oracle Database - Enterprise Edition - Version 10.2.0.4 to 11.2.0.4 [Release 10.2 to 11.2]Linux x86-64 Linux x86 Goal
ASMLib/oracleasm can only be implemented on Linux OS. When using multipathing, you want to FORCE oracleasm to scan the multipathed devices first. SolutionOn all nodes:
1) Shutdown all (DB and ASM):
Then, on each node, one at a time do the following steps that are dependent on the type of multipathing software:
a) If using DM-Multipathing or Linux OS Native Multipathing:
1. Then, you want to change the following parameters in the /etc/sysconfig/oracleasm_dev_oracleasm file to which the /etc/sysconfig/oracleasm file is really linked to:
For example: lrwxrwxrwx 1 root root 24 Jun 13 09:58 /etc/sysconfig/oracleasm -> oracleasm-_dev_oracleasm # ORACLEASM_SCANORDER: Matching patterns to order disk scanning ORACLEASM_SCANORDER="mpath dm" # ORACLEASM_SCANEXCLUDE: Matching patterns to exclude disks from scan ORACLEASM_SCANEXCLUDE="sd"
b) If using EMC PowerPath Multipathing:
2. Then, you want to change the following parameters in the /etc/sysconfig/oracleasm_dev_oracleasm file to which the /etc/sysconfig/oracleasm file is really linked to:
For example: lrwxrwxrwx 1 root root 24 Jun 13 09:58 /etc/sysconfig/oracleasm -> oracleasm-_dev_oracleasm # ORACLEASM_SCANORDER: Matching patterns to order disk scanning ORACLEASM_SCANORDER="emcpower" # ORACLEASM_SCANEXCLUDE: Matching patterns to exclude disks from scan ORACLEASM_SCANEXCLUDE="sd"
c) If using Hitachi Dynamic Link Manager:
3. Then, you want to change the following parameters in the /etc/sysconfig/oracleasm_dev_oracleasm file to which the /etc/sysconfig/oracleasm file is really linked to:
For example: lrwxrwxrwx 1 root root 24 Jun 13 09:58 /etc/sysconfig/oracleasm -> oracleasm-_dev_oracleasm # ORACLEASM_SCANORDER: Matching patterns to order disk scanning ORACLEASM_SCANORDER="sddlm" # ORACLEASM_SCANEXCLUDE: Matching patterns to exclude disks from scan ORACLEASM_SCANEXCLUDE=""
3) As root user, save the file (oracleasm-_dev_oracleasm)
4) Restart oracleasm (as root): # service oracleasm restart or # /etc/init.d/oracleasm restart
ls -ltr /dev/oracleasm/disks/*
a) If using DM-Multipathing or Linux OS Native Multipathing, all of the Major Numbers should equal 253.
For example:
# ls -l /dev/oracleasm/disks
brw-rw---- 1 grid asmadmin 253, 9 Jun 4 10:35 ASM01 brw-rw---- 1 grid asmadmin 253, 4 Jun 4 10:35 ASM02 brw-rw---- 1 grid asmadmin 253, 7 Jun 4 10:35 ASM03 brw-rw---- 1 grid asmadmin 253, 11 Jun 4 10:35 ASM04 brw-rw---- 1 grid asmadmin 253, 20 Jun 4 10:35 ASM05
2. The above Major Numbers should match the multipathed device (dm*) in the file, /proc/partitions.
For example:
# cat /proc/partitions
major minor #blocks name ... 253 8 524281275 dm-8 253 9 524281220 dm-9 253 3 524281275 dm-3 253 4 524281220 dm-4 253 6 524281275 dm-6 253 7 524281220 dm-7 253 10 524281275 dm-10 253 11 524281220 dm-11 253 19 524281275 dm-19 253 20 524281220 dm-20 ...
b) If using EMC PowerPath Multipathing, all of the Major Numbers should equal 120.
For example:
# ls -l /dev/oracleasm/disks
brw-rw---- 1 grid asmadmin 120, 11 Jun 4 10:35 ASM01 brw-rw---- 1 grid asmadmin 120, 5 Jun 4 10:35 ASM02 brw-rw---- 1 grid asmadmin 120, 3 Jun 4 10:35 ASM03 brw-rw---- 1 grid asmadmin 120, 7 Jun 4 10:35 ASM04 brw-rw---- 1 grid asmadmin 120, 9 Jun 4 10:35 ASM05
2. The above Major Numbers should match the multipathed device (emcpower*) in the file, /proc/partitions.
# cat /proc/partitions
major minor #blocks name ... 120 2 524281275 emcpowerb 120 3 524281220 emcpowerb1 120 4 524281275 emcpowerc 120 5 524281220 emcpowerc1 120 6 524281275 emcpowerd 120 7 524281220 emcpowerd1 120 8 524281275 emcpowere 120 9 524281220 emcpowere1 120 10 524281275 emcpowerf 120 11 524281220 emcpowerf1 ...
c) If using Hitachi Dynamic Link Manager:
For example:
# ls -l /dev/oracleasm/disks
brw-rw---- 1 grid asmadmin 252, 224 Jun 4 10:35 ASM01 brw-rw---- 1 grid asmadmin 252, 240 Jun 4 10:35 ASM02 brw-rw---- 1 grid asmadmin 251, 0 Jun 4 10:35 ASM03 brw-rw---- 1 grid asmadmin 251, 16 Jun 4 10:35 ASM04 brw-rw---- 1 grid asmadmin 251, 32 Jun 4 10:35 ASM05
2. The above should match the multipathed device (sddlm*) in the file, /proc/partitions.
PLEASE NOTE: For Hitachi Dynamic Link Manager, the Major Numbers can be different, but must match to a sddlm* device
When the /proc/partitions file has listed sddlm* devices, then that is normally an indication of Hitachi Dynamic Link Manager is being used.
# cat /proc/partitions 252 224 204802560 sddlmao 252 240 204802560 sddlmap 251 0 204802560 sddlmba 251 16 204802560 sddlmbb 251 32 215040000 sddlmbc ...
d) If using AIX (Please note that ASMLib/oracleasm can only be implemented on Linux OS.):
Please note that AIX can use Linux OS with different types of multipathing software, but the multipathing setup/SCAN depends on the Storage Vendor. However, most AIX Customers' set up multipathing with mknod and there is a built in MPIO (MultiPath I/O) software in AIX 7.0. If Customer uses HDS or EMC storage than the drivers come from the vendor. [root@ocotillop1] / # lsdev -Cc disk hdisk38 Available 06-09-02 MPIO IBM 2107 FC Disk hdisk39 Available 06-09-02 MPIO IBM 2107 FC Disk hdisk40 Available 06-09-02 MPIO IBM 2107 FC Disk hdisk41 Available 06-09-02 MPIO IBM 2107 FC Disk hdisk42 Available 06-09-02 MPIO IBM 2107 FC Disk hdisk43 Available 06-09-02 MPIO IBM 2107 FC Disk hdisk44 Available 06-09-02 MPIO IBM 2107 FC Disk Beginning with AIX? 5.2, the multiple path I/O function uses a unique device identifier (UDID) to identify each MPIO-capable device, regardless of the path on which it was discovered. The UDID is saved in the device configuration database. When a device is discovered, the UDIDs in the database are checked to determine whether the device is new or whether the discovery is another path to an existing device. When multiple paths to a device are detected, the device driver or the Path Control Manager kernel extension decides which path to use for a particular request.
e) If using Solaris OS, please see the following Documents (ASMLIb/oracleasm can NOT be used):
The following documents are only for Solaris MPIO references:
How to Verify the Health of Disk Logical Unit Managed Under Solaris Multipathing Software (MPxIO) (Doc ID 1002465.1)
Multipathing Troubleshooting on Solaris [TM] 10 Operating System (OS) (Doc ID 1003914.1)
Additional Resources
Community Discussions: Storage Management MOS Community
Still have questions? Use the above community to search for similar discussions or start a new discussion on this subject.
ReferencesNOTE:555603.1 - Configuration and Use of Device Mapper Multipathing on Oracle Linux (OL)NOTE:580153.1 - How To Setup ASM on Linux Using ASMLIB Disks, Raw Devices, Block Devices or UDEV Devices? NOTE:602952.1 - How To Setup ASM & ASMLIB On Native Linux Multipath Mapper disks? NOTE:1458768.1 - How to Convert ASMLib Disks from SD Devices to Multipath Devices NOTE:1365511.1 - How to Configure LUNs for ASM Disks using WWID, DM-Multipathing, and ASMLIB on RHEL 5/OL 5 and RHEL 6/OL 6 |
|
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1440568/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Config LUNs for ASM Disk using WWID,DM-Multipathing,ASMLIB on RHEL 5/6_1365511.1ASM
- Using ASMLIB Management ASM DiskASM
- ASM using ASMLib and Raw DevicesASMdev
- oracle asmlib 新的下載地址 for rhel4OracleASM
- RHEL 5 DNS 配置DNS
- VMWareServer2+RHEL4+ASM+10gRACServerASM
- rhel 5.5UDEV繫結asm磁碟devASM
- 【ASM】Oracle ASM + 11gR2 + RHEL6.5 安裝ASMOracle
- rhel5.4+oracle_10g+asm 手工配置OracleASM
- RHEL5SELinux:AbenchmarkLinux
- RHEL5下載地址
- red hat enterprise linux(rhel) 3 、4、 5對應的asmlib包下載網址LinuxASM
- 【RHEL】RHEL 6.6 IP分片引數
- SELinux has to be disabled on RHEL/OEL 5Linux
- 軟raid5 試驗(rhel 5)AI
- 【ASM】ASMLIB 系列ASM
- VMware_workstation_6[1].5_+_RHEL5.3_+_Oracle_10gR2_RAC+OCFS2+ASMOracleASM
- rhel5如何配置自有的gssftpFTP
- rhel5 學用export 及unsetExport
- Keep an eye on these 5 new features in RHEL 7
- 剖析RHEL5 日誌系統
- redhat5(rhel5)_ipcs詳解_轉Redhat
- 二述_rhel4利用loop device deploying asm storageOOPdevASM
- Rhel5 軟raid5的實驗AI
- RHEL5+postfix+mysql+extmai(原始碼)(一)MySqlAI原始碼
- RHEL5 hadoop2.4.1 rsync配置Hadoop
- rhel5安裝oracle10gOracle
- 配置xmanager3連線RHEL5
- Install GC 10.2.0.5.0 on OEL/RHEL5/SLES10 Using Existing Database (11g)_784963.1GCDatabase
- redhat (RHEL5) 連線 iSCSI SAN儲存Redhat
- rhel5 vi 批量替換匹配的字串字串
- RHEL9.4上建立RHEL8.1虛擬機器虛擬機
- oracle11gR2(11204)+udev+asm+RHEL6.5OracledevASM
- 10G RAC RAW+ASM rhel-server-5.5-x86_64ASMServer
- rhel7 udevdev
- RHEL安裝Xtrabackup
- VMware RHEL5安裝Oracle 10g RACOracle 10g
- RHEL5中裸裝置的建立簡介