Installation guide

Check the raw device binding:
# raw -qa
3B. Creating persistent raw devices for multipath LUNs
It is assumed that the device-mapper-multipath package has been configured as described above. For the exam-
ple below, we made following assumptions:
1. OCR primary and mirror files and CSS voting disks are not partitioned.
2. The multipaths section of the /etc/multipath.conf file contains aliases for OCR primary and
mirror disks (ocr1 and ocr2) as well as CSS voting disks (vote[1-3]).
3. Devices for ASM have only one partition.
4. If ASM is configured to use block devices directly without ASMLib driver, then the ASM devices
should have aliases (asm*) in the /etc/multipath.conf file.
Device mapper
a) creates /dev/dm-* block devices for each multipath group
b) createsblock devices with WWID or user friendly names (or corresponding aliases if they were
specified) under the /dev/mapper directory
c) udev creates symlinks under the /dev/mpath directory pointing to /dev/dm-* devices
The original Red Hat Enterprise Linux 5 udev configuration for multipath devices is in
/etc/udev/rules.d/40-multipath.rules. It should be used as a basis for any customization
required by Oracle 10g RAC and ASM.
Copy the 40-multipath.rules file to 39-oracle-multipath.rules and make amendments. The
original 40-multipath.rules file looks like:
# 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"
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"
LABEL="end_mpath"
www.redhat.com | 39