参考这一段:

Setting up Device Mapper Multipath

The purpose of Device Mapper Multipath is to enable multiple I/O paths to improve performance and provide consistent naming. Multipathing accomplishes this by combining your I/O paths into one device mapper path and properly load balancing the I/O. This section will provide the best practices on how to setup your device mapper multipathing within your Dell PowerEdge server.Verify that your device-mapper and multipath driver are at least the version shown below or higher:

rpm -qa | grep device-mapper-multipath

device-mapper-multipath-0.4.9-46.el6

Identify your local disks i.e. /dev/sda. Once your local disk is determined run the following command to obtain its scsi_id:

scsi_id --page=0x83 --whitelisted --device=/dev/sda

360026b900061855e000007a54ea53534

Open the /etc/multipath.conf file and locate and comment out the section below:

#blacklist {

# devnode “*”

#}

Once the scsi_id of your local disk has been retrieved, you must blacklist this scsi_id from being used as a multipath device within /etc/multipath.conf file and locate,uncomment,and modify the section below:

blacklist {

wwid

devnode "^(ram|raw|loop|fd|md|dm-|sr||scd|st)[0-9]*"

devnode "^hd[a-z]"

}

Uncomment your defaults section within your /etc/multipath.conf:

defaults {

udev_dir /dev

polling_interval 10

selector "round-robin 0"

path_grouping_policy multibus

getuid_callout "/sbin/scsi_id -g -u -s/block/%n"

prio_callout /bin/true

path_checker readsector0

rr_min_io 100

max_fds 8192

rr_weight priorities

failback immediate

no_path_retry fail

user_friendly_names yes

}

Locate the multipaths section within your /etc/multipath.conf file. In this section you will provide the scsi_id of each LUN/volume and provide an alias in order to keep a consistent naming convention across all of your nodes. An example is shown below:

multipaths {

multipath {

wwid

alias alias_of_volume1

}

multipath {

wwid

alias alias_of_volume2

}

}

Restart your multipath daemon service using:

service multipathd restart

Verify that your multipath volumes alias are displayed properly:

multipath -ll

Make sure iSCSI service starts upon boot using the command:

chkconfig multipathd on

Repeat steps 1-9 for all nodes.

[top]

Partitioning the Shared Disk

This section describes how to use Linux’s native partition utility fdisk to create  a single partition on a volume/virtual disk that spans the entire disk.

To use the fdisk utility to create a partition:

At the command prompt, type one of the following:

#> fdisk –cu /dev/

#> fdisk –cu /dev/mapper/

Where, is the name of the block device that you are

creating a partition on. For example, if the block device is /dev/sdb, type: fdisk –cu /dev/sdb

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

Building a new DOS disklabel with disk identifier 0x89058e03.

Changes will remain in memory only, until you decide to write them.

After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

The device presents a logical sector size that is smaller than

the physical sector size. Aligning to a physical sector (or optimal

I/O) size boundary is recommended, or performance may be impacted.

Command (m for help): n # To create a new partition

Command actione extendedp primary partition (1-4):

P # To create a primary partition

Partition number (1-4): 1

First sector (4096-xxxxxx, default 4096):

Repeat step 1 for all the disks.

Type the following to re-read the partition table and to be able to see the newly created partition(s)

#> partprobe

Or

#> service multipathd restart

Or

#> kpartx –a /dev/mapper/

Reboot the system if your newly created  partition is not

displayed properly.

[top]

Identifying ASM Disks to Setup Udev Rules **Applies to RHEL 6 and Oracle Linux 6 (if not using ASMlib)**

Red Hat Enterprise Linux 6/Oracle Linux 6 have the ability to use udev rules to ensure that the system properly manages permissions of device nodes. In this case, we are referring to properly setting permissions for our LUNs/volumes discovered by the OS. It is important to note that udev rules are executed in enumerated order. When creating udev rules for setting permissions, please include the prefix 20- and append .rules to the end of the filename. An example file name is 20-dell_oracle.rules

In order to set udev rules, one must capture the WWIDs of each disk to be used within your ASM device using the scsi_id command.

The command is as follows:

scsi_id --page=0x83 --whitelisted --device=/dev/sdX

where sdX is the name of your block device.

If one must run this command to capture multiple WWIDs, one could use the following for loop to do just that via the shell:

[root@rhel6 ~]# for i in sdb sdc sdd sde; do \ printf "%s %s\n" "$i" \ "$(scsi_id --page=0x83 --whitelisted --device=/dev/$i)"; done

Output:

sdb 360026b900061855e000008a54ea5356a

sdc 360026b9000618571000008b54ea5360b

sdd 360026b900061855e000008a54ea5356a

sde 360026b9000618571000008b54ea5360b

Once the WWIDs have been captured, create a file within the /etc/udev/rules.d/ directory and name it 20-dell_oracle.rules. A separate KERNEL entry must exist for each storage device and will require adding the WWID to the "RESULT==" field.

An example of what needs to be placed in the /etc/udev/rules.d/20-dell_oracle.rules file

#------------------------ start udev rule contents ------------------#

KERNEL=="dm-*", PROGRAM="scsi_id --page=0x83 --whitelisted --device=/dev/%k",RESULT=="360026b9000618571000008b54ea5360b", OWNER:="grid", GROUP:="asmadmin"

KERNEL=="dm-*", PROGRAM="scsi_id --page=0x83 --whitelisted --device=/dev/%k",RESULT=="360026b900061855e000008a54ea5356a", OWNER:="grid", GROUP:="asmadmin"

#-------------------------- end udev rule contents ------------------#

As you can see from the above, the KERNEL command looks at all dm devices, executes the PROGRAM which captures the WWID, if the RESULT of the WWID is matched, appropriately assign the grid user as the OWNER and the asmadmin group as the GROUP.

oracle asm盘符变了,使用multipath创建ASM磁盘的奇怪现象相关推荐

  1. 计算机无法显示硬盘盘符,win10打开此电脑不显示磁盘盘符的解决方法?

    小编今天给大家分享介绍的是win10打开此电脑不显示磁盘盘符只能通过输入驱动号来访问的具体解决方法.最近有win10专业版的小伙伴向小编反应自己的win10电脑打开此电脑后找不到磁盘盘符,但是直接在地 ...

  2. linux盘符改名字,Linux 下powerpath共享磁盘名称不一致处理方法

    我们知道在SAN网络中,由于光纤交换机会有多条链路接入主机,所以会存在设备多名称现象,也就是一台存储被识别多次,具体根据连接的链路情况,并且对于连接到的LUN在主机上的LINUX系统上会发生/dev/ ...

  3. java 服务器所在盘符_JAVA获取文件本身所在的磁盘位置 | 学步园

    我们在做java开发(纯java程序,或者java web开发)时,经常会遇到需要读取配置文件的需求,如果我们将文件所在位置的信息直接写到程序中,例如:E:\workspace\JavaGUI\bin ...

  4. Linux热插拔硬盘导致盘符漂移,一种解决热插拔时磁盘盘符漂移方法及装置与流程...

    本发明涉及磁盘管理技术领域,尤其是一种解决热插拔时磁盘盘符漂移方法及装置. 背景技术: 对于数据中心的运维人员来说,会遇到在服务器硬盘损坏时不停机的情况下更换硬盘的情况,也就是对硬盘进行热插拔.在对硬 ...

  5. 更改计算机磁盘,win10X系统磁盘盘符如何更改 简单快速修改电脑磁盘盘符

    Win10 X系统磁盘盘符怎么修改?一般电脑磁盘盘符是使用26个英文字符加上一个冒号:来标识,部分追求个性化的小伙伴想把win10 X系统盘符更改成自己想要的符号,那么怎么修改win10 X的系统盘符 ...

  6. win10下如何隐藏Linux盘符,Windows10系统下如何隐藏一个磁盘盘符

    一位用户反馈自己电脑中有一些不希望被访客看见的文件.照片及视频,因此就希望将它隐藏在一个只有自己知道的地方,这该如何实现呢?今天,系统城小编就要为大家分享Windows10系统下隐藏一个磁盘盘符的方法 ...

  7. linux分区后盘符找不到,为什么我的磁盘不见了,怎么找回来啊?

    2006-03-24 02:14:35 找不回来了,因为你已经删除了这个分区,也就是说这个分区已经不存在了,文件分配表也被删掉了,所以没有办法找回来. 动态.不可读取的意思就是这个空间还没有建立分区. ...

  8. megacli通过盘符定位物理盘_柴少鹏的官方网站

    一.Megacli介绍 工作中偶尔会用到MegaCli这个工具,之前的博文里面也提到过这个工具,这里对于用法详细的记录一下. 通过LSI公司提供的MegaCli工具, 可以实现对RAID卡和硬盘的监控 ...

  9. 注册表与盘符(转victor888文章 )

    注册表与盘符(转victor888文章 ) 标签: c++获取盘符   c#获取盘符   转自: http://blog.csdn.net/loulou_ff/article/details/3769 ...

最新文章

  1. 微信小游戏 Egret开发数据域官方Demo下载地址
  2. BZOJ2816: [ZJOI2012]网络
  3. 报错:SyntaxError: Non-UTF-8 code starting with '\xbc' in file
  4. arm linux文件传输工具
  5. 在 Azure App Service 上启用 Application Request Routing
  6. 关于python语言的编程模式、哪个说法正确_测验1: Python基本语法元素 (第1周) 单选题+程序题...
  7. 软件开发者最重要的四大技能
  8. 三级菜单 ajax 已经测试成功
  9. 统计学习方法 李航 读书笔记
  10. Android仿人人客户端(v5.7.1)——采用RelativeLayout做父容器,实现左侧滑动菜单(一)...
  11. LeetCode 74. Search a 2D Matrix
  12. springcloud 分布式配置中心 config server config client
  13. ReactNative集成百度语音合成
  14. OpenGL环境搭建指南
  15. 51单片机学习笔记(8)——74HC573锁存器
  16. 大自然是最广阔的“感统训练室”,端午节带上孩子“趣”玩吧!
  17. mysql下载安装包及安装步骤
  18. MPEG4与H.264的区别(音视频规范总结)
  19. offsetof函数的实现
  20. 为什么go语言还没有火起来?go语言有哪些劣势?

热门文章

  1. 一步一步理解Paxos算法
  2. 大剑无锋之GC【面试推荐】
  3. Zookeeper02_zk集群搭建
  4. Purpose of cmove instruction in x86 assembly? | cmove 指令如何避免错误的分支预测带来的开销?
  5. leetcode 986. Interval List Intersections | 986. 区间列表的交集(双指针)
  6. leetcode 640. Solve the Equation | 640. 求解方程(字符串处理)
  7. leetcode 274, 275. H-Index I, II(H 指数问题合集,线性查找/二分查找)
  8. vb 实现小超市饮料补货提醒程序 public全局变量的声明与初始化
  9. 使用spring boot创建fat jar APP
  10. java char判断相等_【Java面试考点4】java基础之运算符