How to create Oracle ASM devices using device-mapper multipath devices in Red Hat Enterprise Linux 6

How to create Oracle ASM devices using device-mapper multipath devices in Red Hat Enterprise Linux 6?

环境

Red Hat Enterprise Linux 6

Device-Mapper Multipath (DM Multipath)

Oracle ASM

Udev

决议

Please use the following steps to create Oracle ASM disks with dm-multipath on RHEL 6 systems:

Determine the DM_UUID value for each multipath device that is required to be used for Oracle ASM. You could use following command for the same:

$ udevadm info --query=all --name=/dev/mapper/mpathN |grep -i DM_UUID

Please replace mpathN in above command with name of the multipath devices used in your setup/environment.

The output of above command would be similar to the one shown below:

$ udevadm info --query=all --name=/dev/mapper/mpathd|grep -i DM_UUID

E: DM_UUID=mpath-1234567890abcdefghijklmnopqrstuvwxyz

Above command would be required to be repeated for each multipath device to be used with Oracle ASM, and please note down the DM_UUID value retrieved for each multipath device. This value would be used to create udev rule.

Create a udev rule file /etc/udev/rules.d/96-asmmultipath.rules and add a udev rule for each multipath device using it‘s DM_UUID value:

ACTION=="add|change", ENV{DM_UUID}=="mpath-<UUID>", SYMLINK+="oracleasm/asm01", GROUP="dba", OWNER="oracle", MODE="0660"

e.g. to create Oracle ASM disk /dev/oracleasm/asm01 using above multipath device mpathd following udev rule could be used:

$ cat /etc/udev/rules.d/96-asmmultipath.rules

ACTION=="add|change", ENV{DM_UUID}=="mpath-1234567890abcdefghijklmnopqrstuvwxyz", SYMLINK+="oracleasm/asm01", GROUP="dba", OWNER="oracle", MODE="0660"

Note that we have replaced mpath-<UUID> in above rule with the DM_UUID retrieved in step [1]. Similarly a udev rule for each multipath device would be required to be appended in /etc/udev/rules.d/96-asmmultipath.rules file.

You could also modify Symlink path (e.g. oracleasm/asm01 in above udev rules), Group, Owner permissions as per requirement.

Reload the udev service for the changes to take effect and create the ASM disks.

来自为知笔记(Wiz)

时间: 2024-10-23 16:52:55

How to create Oracle ASM devices using device-mapper multipath devices in Red Hat Enterprise Linux 6的相关文章

Deploy Oracle 10.2.0.5 DataGuard on Red Hat Enterprise Linux 6.4

系统:Red Hat Enterprise Linux 6.4 数据库:Oracle 10.2.0.5.0 Patch Set 4 主机:10dg1 192.168.1.91 10dg2192.168.1.92 内存:1G 虚拟机:VBox 4.2.14 一,操作系统部分(略) 可以参考我之前写的博客 http://blog.csdn.net/aaron8219/article/details/38239065 二,数据库部分 *****主库配置***** 1. 开启归档,force loggi

ORACLE Install (10g r2) FOR Red Hat Enterprise Linux Server release 5.5 (64 bit) (转)

OS Info----------# cat /etc/redhat-releaseRed Hat Enterprise Linux Server release 5.5 (Tikanga)# cat /etc/issue.netRed Hat Enterprise Linux Server release 5.5 (Tikanga)Kernel r on an m# uname -rm2.6.18-194.el5 x86_64# echo $MACHTYPEx86_64-redhat-linu

Deploy Oracle 10.2.0.5 on Red Hat Enterprise Linux 6.4

一.Linux系统安装配置 1.安装系统时选Desktop 2.设置eth0网卡为静态IP,添加子网掩码,网关,DNS,并配置自动启动 3.修改/etc/hosts,添加主机名和对应IP 4.禁用firewall和selinux chkconfig iptables off vi /etc/selinux/config SELINUX=disabled [[email protected] selinux]# setenforce 0 [[email protected] selinux]# g

oracle 11gR2 client安装(Red Hat Enterprise Linux Server release 5.5 (Tikanga) 安装ORACLE客户端)

安装DBD::ORALCE模块时报错: Running Mkbootstrap for DBD::Oracle () chmod 644 Oracle.bs rm -f blib/arch/auto/DBD/Oracle/Oracle.so gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=gener

Red Hat Enterprise Linux 4(64位) 下安装 Oracle 10g

参考资料:ORACLE 10G官方文档 参考资料:甲骨论2012版Oracle免费视频教程 一.安装linux 1.注意分区:内存小于4G,则swap分区=内存*2:内存大于4G,则swap分区=内存大小: 2.tmp目录大于10G; 3.根目录>25G; 4.开发工具包全部选上: 5.安装完成后,再多安装一个sysstat包. 二.安装oracle 1.检查以下必备包的安装:(命令是rpm -qa|grep xxx) binutils-2.15.92.0.2-10.EL4 compat-db-

Red Hat Enterprise Linux AS4, C++ OCCI connect Oracle 9i

前提是已经安装好Oracle 9i. 1. 下载对应的ORACLE client安装. http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html 因为没有9i的client提供下载了,我选择最接近的版本下载: Version 10.1.0.5 Instant Client Package - Basic: All files required to run OCI, OCCI, and

Red Hat Enterprise 6.4安装Oracle 11gR2

By Toper Lv 2015.8.16 平时在网上查阅各种文档的过程中,大家可能都有过类似的经历.一份文档,没有描述文档作者的实验环境,亦或对实验环境描述不清晰.所以,一旦按文档内容操作出错,大家很难判断问题的原因在于环境不一样,还是自己操作过程中出错., 本人自然也避免不了以上情况,所以撰写文档时尽力做到描述清楚自己的环境,希望其他人参考此文档时不会有太多困惑. 1 实验环境 1.1 硬件配置 本文档实验环境为虚拟机,使用VMware WorkStation 11,创建的虚拟硬件版本为10

Device Mapper Multipath(DM-Multipath)

Device Mapper Multipath(DM-Multipath)可以将服务器节点和存储阵列之间的多条I/O链路配置为一个单独的设备.这些I/O链路是由不同的线缆.交换机.控制器组成的SAN物理链路.Multipath将这些链路聚合在一起,生成一个单独的新的设备. 1.DM-Multipath概览: (1)数据冗余 DM-Multipath可以实现在active/passive模式下的灾难转移.在active/passive模式下,只有一半的链路在工作,如果链路上的某一部分(线缆.交换机

Install Oracle 10g on Red Hat Linux 5.3 Step by Step

一.虚拟机配置 1. 虚拟机(VBox 4.3.12) 2. 配置虚拟机网卡网络,选择host-only,VirtualBox Host-Only Network网卡IP为设置为192.168.1.100 二.安装RedHat 5.3操作系统(序列号:9f3013459b745c13) 具体过程略,注意在自定义软件包那里选择现在配置,选取"开发工具"."旧的开发工具"."X工具"下所有包即可 三.系统环境配置 1.配置网卡 [[email pro