How To Setup ASM & ASMLIB On Native Linux Multipath Mapper disks?

(文档 ID 602952.1)

Applies to:

Oracle Database - Enterprise Edition - Version 10.1.0.2 to 12.1.0.2 [Release 10.1 to 12.1]
Linux x86
Linux x86-64
Linux Itanium
***Checked for relevance on 08-Oct-2013***

Goal

The present document provides an example about how to setup ASM & ASMLIB disks using Mapper Multipath disks.

Solution

1) Install the ASMLIB API (on each node for RAC environments) and
configure it following the steps described in the next documents:

Oracle ASMLib

Tips on Installing and Using the Software

Configuring Oracle ASMLib on Multipath Disk

2) Create one partition on the mapper device located at /dev/mapper/mpath* as follow (Oracle recommends creating one partition per disk):

# kpartx -a /dev/mapper/mpath#

Where:  # is the multipathed group

Note: kpartx command creates multipathed partitions,
for example partions on device mpath0 appear as /dev/mapper/mpath0p1,
/dev/mapper/mpath0p2, etc., for additional information please check the
next reference:

http://magazine.redhat.com/2008/07/17/tips-and-tricks-how-do-i-setup-device-mapper-multipathing-in-red-hat-enterprise-linux-4/

3) Update the kernel partition table with the new partition as follow:

# /sbin/partprobe

4) Create the ASMLIB disks on the new mapper partitions as follow:

# /etc/init.d/oracleasm createdisk  <ASMLIB disk name>  /dev/mapper/mpath<#>

Example:

# /etc/init.d/oracleasm createdisk ASMDISK1  /dev/mapper/mpath0p1

5) After you complete the creation of each ASMLIB disk, you will need
to configure ASMLIB to use multipath disks as described in the next
document (from each node on RAC environments):

Configuring Oracle ASMLib on Multipath Disk

You will need to update the /etc/sysconfig/oracleasm file with the next value(s) in the ORACLEASM_SCANORDER parameter:

ORACLEASM_SCANORDER="dm"

Or

ORACLEASM_SCANORDER="mpath dm"

6) If this is a RAC configuration, then on each node, execute the
next commands as root user (next actions will scan the multipath disks
and make them available for ASMLIB) :

# /etc/init.d/oracleasm scandisks

# /etc/init.d/oracleasm listdisks

7) Then connect to the ASM instance and set the ASM_DISKSTRING (disk discovery) = ‘ORCL:*‘ as follow:

SQL> alter system set ASM_DISKSTRING = ‘ORCL:*‘  scope=BOTH;

8) Verify the ASMLIB (‘ORCL:<disk name>‘) are discovered by ASM (from each node on RAC environments):

SQL> select path from v$asm_disk;

9) Finally, create the diskgroup(s) on the new ASMLIB disks
 
Example:

SQL> create diskgroup DATA external redundancy disk ‘ORCL:DISK1‘;

Additional Resources

Community Discussions: Storage Management

Still have questions? Use the above community to search for similar discussions or start a new discussion on this subject.

NOTE:1594584.1
- White Paper: ASMLIB Installation & Configuration On MultiPath
Mapper Devices (Step by Step Demo) On RAC Or Standalone Configurations.
NOTE:580153.1 - How To Setup ASM on Linux Using ASMLIB Disks, Raw Devices, Block Devices or UDEV Devices?

How To Setup ASM & ASMLIB On Native Linux Multipath Mapper disks?

时间: 2024-10-27 13:01:45

How To Setup ASM & ASMLIB On Native Linux Multipath Mapper disks?的相关文章

Setup Oracle 11gR2 for Redhat Linux AS 4 Update 7 x64

Setup Oracle 11gR2 for Redhat Linux AS 4 Update 7 x64 1. checking linux version. [[email protected] ~]# uname -aLinux redhat4.7 2.6.9-78.EL #1 Wed Jul 9 15:26:38 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux 2. linking oracle installing document. http://do

Rhel Linux multipath + OpenfIler raid iscsi

前段时间学习了关于Redhat Linux上的多路径Multipath,以及为了方便学习在本机电脑上安装了Openfiler模拟存储,配置多块网卡实现多路径冗余识别存储.在这里以我个人的理解简单的描述我所认知的理论知识. Multipath是Linux系统上开源免费的多路径软件,实现服务器可以通过多条物理路径连接到块存储. Openfiler是底层以Linux系统模拟的存储架构,可以配置多块网卡,同时可以配置软件Raid. 多路径是避免设备之间单条链路的单点故障隐患,同时可以实现流量分摊,实现性

How to setup CI development environment in Linux

In the past 2 days, I setup a CI development environment in Linux: Git + Jenkins + Maven(Nexus)  + Tomcat I write the steps down to keep memo. Pre-installed software: 1. Java: I use JDK1.8.0_25 http://www.oracle.com/technetwork/java/javase/downloads/

linux /dev/mapper/centos-root 被占满

使用 df -h 命令查看磁盘使用情况 显示/home目录占用最大 使用 du命令查看各个目录的文件大小 du --max-depth=1 -h   这个命令可以查看当前目录下哪个目录占用最大 逐一排查下去, 原来是项目中的Log日志,删掉就好了 原文地址:https://www.cnblogs.com/greycdoer0/p/10886687.html

ceshi

第1章 ASM安 select * from dual; 装- 3 - 1.1 简介- 3 - 1.1.1 ASMLib- 3 - 1.1.2 什么是 udev- 4 - 1.1.3 Why ASMLIB and why not?- 4 - 1.2 在 RHEL 6.4 上安装 Oracle 11gR2 + ASM --使用udev- 6 - 1.2.1 检查硬件- 6 - 1.2.2 安装软件包检查- 8 - 1.2.3 修改主机名- 13 - 1.2.4 网络配置- 13 - 1.2.5 磁

Maste Note for OCR / Vote disk Maintenance Operations (ADD/REMOVE/REPLACE/MOVE)

Doc ID 428681.1 Applies to: Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.1.0 [Release 10.2 to 11.2]Information in this document applies to any platform. Goal The goal of this note is to provide steps to add, remove, replace or mo

全套Oracle数据库安装实施视频课程套餐[涉及RAC,Linux,Win,ASM,Udev,FS]

全套Oracle数据库安装实施视频课程套餐[涉及RAC,Linux,Win,ASM,Udev,FS] 套餐介绍:高薪必学的Oracle数据库实施教程. 基础:Oracle数据库基础体系结构,ASM,RAC集群架构与概念. 实战:VMware/Windows2008/Linux操作系统安装, Windows/Linux操作系统上Oracle 11g R2 RAC集群安装与单机布署,Linux上ASM基于udev与asmlib的配置,Linux上Oracle11g基于文件系统及ASM与GRID布署,

How to restore ASM based OCR after complete loss of the CRS diskgroup on Linux/Unix systems

(文档 ID 1062983.1) Applies to: Oracle Database - Enterprise Edition - Version 11.2.0.1.0 to 11.2.0.4 [Release 11.2]Information in this document applies to any platform. Goal It is not possible to directly restore a manual or automatic OCR backup if th

Redhat 5.4 + ASM + RAW+ Oracle 10g RAC 安装文档

基于Redhat 5 和redhat 4 的RAC 区别在对raw的处理上. 之前做的是redhat 4.7 的 RAC 实验. 准备做一个Redhat 5.4 的环境. RAC 的一些理论东西: http://blog.csdn.net/tianlesoftware/archive/2010/02/27/5331067.aspx RAW+ASM+ REDHAT 4.7 RAC 文档 http://blog.csdn.net/tianlesoftware/archive/2010/02/27/5