Installation guide

The amendments in 39-oracle-multipath.rules file are highlighted:
# multipath wants the devmaps presented as meaninglful device names
# so name them after their devmap name
SUBSYSTEM!="block", GOTO="end_mpath"
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"
ACTION=="add", \
RUN+="/sbin/dmsetup ls --target multipath --exec '/sbin/kpartx -a -p p' -j %M -m %m"
PROGRAM=="/sbin/dmsetup ls --target multipath --exec /bin/basename -j %M -m %m",\
RESULT=="?*", NAME="%k", SYMLINK="mpath/%c", OPTIONS="last_rule" , GOTO=”oracle_rules”
PROGRAM!="/bin/bash -c '/sbin/dmsetup info -c --noheadings -j %M -m %m | \
/bin/grep -q .*:.*:.*:.*:.*:.*:.*:part[0-9]*-mpath-'", GOTO="end_mpath"
PROGRAM=="/sbin/dmsetup ls --target linear --exec /bin/basename -j %M -m %m", \
NAME="%k", RESULT=="?*", SYMLINK="mpath/%c", OPTIONS="last_rule" , GOTO=”oracle_rules”
LABEL=”oracle_rules”
RESULT==”ocr1”, GROUP=”oinstall”, MODE=”640”, \
RUN+=”/bin/raw /dev/raw/raw1 /dev/mapper/%c”
RESULT==”ocr2”, GROUP=”oinstall”, MODE=”640”, \
RUN+=”/bin/raw /dev/raw/raw2 /dev/mapper/%c”
RESULT==”vote1”, OWNER=”oracle”, GROUP=”oinstall”, MODE=”660”, \
RUN+=”/bin/raw /dev/raw/raw3 /dev/mapper/%c”
RESULT==”vote2”, OWNER=”oracle”, GROUP=”oinstall”, MODE=”660”, \
RUN+=”/bin/raw /dev/raw/raw4 /dev/mapper/%c”
RESULT==”vote3”, OWNER=”oracle”, GROUP=”oinstall”, MODE=”660”, \
RUN+=”/bin/raw /dev/raw/raw5 /dev/mapper/%c”
# Set owner, group and mode parameters on ASM devices. Not required with ASMLIB
#RESULT==”asm*p1”, OWNER=”oracle”, GROUP=”dba”, MODE=”660”, \
# RUN+=”/bin/chown oracle:dba /dev/mapper/%c; /bin/chmod 660 /dev/mapper/%c”
OPTIONS=”last_rule”
LABEL="end_mpath"
4. Setting raw device permissions
Create a custom udev file to set user, group and permissions of raw devices. For example, add the following
lines to the custom /etc/udev/rules.d/61-oracleraw.rules file:
# Settings for OCR files
KERNEL==”raw[1-2]”, OWNER=”root”, GROUP=”oinstall”, MODE=”640”
# Settings for CSS voting disks
KERNEL==”raw[3-5]”, OWNER=”oracle”, GROUP=”oinstall”, MODE=”660”
To check the permissions run, for example,
# udevtest /class/raw/raw1 | grep mode
Issues with Oracle 10gR2 Clusterware Installation on RHEL5
There are several known issues related to mutipath devices on Red Hat Enterprise Linux 5. The Oracle 10gR2
Clusterware initializes OCR devices as part of running the root.sh script. Before running this script, be aware
of the following known issues that will cause the Clusterware installation to fail:
40 | www.redhat.com