- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
2#
发表于 2012-1-9 21:17:48
ODM Data:
Configuring raw devices (multipath) for Oracle Clusterware 10g Release 2 (10.2.0) on RHEL5/OEL5 [ID 564580.1]
Multipath, Raw and Udev
The necessity for high availability access to storage is well understood. For singlepath environments, raw devices can easily be configured via udev rules as described in Note.465001.1. For multipath environments, however, configuration of raw devices against multipathed devices via udev is more complex. In fact, significant modification of default udev rules can introduce issues with supportability. Therefore, other means are recommended to achieve configuration of raw devices against multipathed devices with multipath device naming persistency.
udev 配置multipath 规则会复杂一些,udev甚至自带了multipath的规则:- [oracle@vrh2 rules.d]$ cat /etc/udev/rules.d/40-multipath.rules
- # multipath wants the devmaps presented as meaninglful device names
- # so name them after their devmap name
- SUBSYSTEM!="block", GOTO="end_mpath"
- RUN+="socket:/org/kernel/dm/multipath_event"
- # KERNEL!="dm-[0-9]*", ACTION=="add", PROGRAM=="/bin/bash -c '/sbin/lsmod | /bin/grep ^dm_multipath'", RUN+="/sbin/multipath -v0 %M:%m"
- KERNEL!="dm-[0-9]*", GOTO="end_mpath"
- PROGRAM!="/sbin/mpath_wait %M %m", GOTO="end_mpath"
- PROGRAM!="/sbin/dmsetup info -c --noheadings -j %M -m %m", GOTO="end_mpath"
- RESULT!="*:*:*:*:*:*:*:mpath-*", GOTO="kpartx_check"
- PROGRAM=="/sbin/dmsetup info -c --noheadings -o name -j %M -m %m", RESULT=="?*",NAME="%k", SYMLINK="mpath/%c", RUN+="/bin/bash -c '/sbin/mpath_wait /dev/mapper/%c; /sbin/kpartx -a -p p /dev/mapper/%c'"
- OPTIONS="last_rule"
- LABEL="kpartx_check"
- RESULT!="*:*:*:*:*:*:*:part*-mpath-*", GOTO="end_mpath"
- PROGRAM=="/sbin/dmsetup info -c --noheadings -o name -j %M -m %m", RESULT=="?*", NAME="%k", SYMLINK="mpath/%c"
- OPTIONS="last_rule"
- LABEL="end_mpath"
复制代码 也可以参考以下链接:
http://www.ardentperf.com/2008/0 ... udev-and-multipath/ |
|