Skip to contentSkip to conversation

UDEV with DM-MULTIPATH issue in RHEL 5.1....

DISCUSSION Dharmesh Kamdar 2 participants 3 messages Feb 27, 2008 Device mapper

lore
Share & tools
lore
#0 lore raw

Hi,

This question is more in conjunction with DM-MULTIPATH and UDEV.

We are trying to set-up a Oracle 10g RAC (2 node) using RHEL 5.1 on an x86-64 hardware.

We are using DM-MULTIPATH for storage devices, including OCR and VOTING disk(s) that Oracle requires.

Oracle OUI requires "OCR" and "VOTING" disk to be specified as "raw" devices for the installation (it does NOT accept the block device while installation)...Also it requires us to change the permissions on these devices such that the user "oracle" can access the OCR and VOTING disks.

We've created partitions on the OCR and VOTING disks and have defined an alias in /etc/multipath.conf

After that, for persistency, we've defined following UDEV rules for it to
1) create raw device binding in a persistent way (so that it survives reboot).

2) it changes the permission that is acceptable to Oracle.

The UDEV rules are as follows:
/etc/udev/rules.d/51-oracle-raw.rules ACTION=="add", KERNEL="/dev/mpath/OCR1p1", RUN+="/bin/raw /dev/raw/rawX %N" ACTION=="add", KERNEL="/dev/mpath/OCR2p1", RUN+="/bin/raw /dev/raw/rawX %N" ACTION=="add", KERNEL="/dev/mpath/VOTE1p1", RUN+="/bin/raw /dev/raw/rawX %N" ACTION=="add", KERNEL="/dev/mpath/VOTE2p1", RUN+="/bin/raw /dev/raw/rawX %N" ACTION=="add", KERNEL="/dev/mpath/VOTE3p1", RUN+="/bin/raw /dev/raw/rawX %N"
~
2) /etc/udev/rules.d/99-raw.rules
#-------------------------#
#OCR disks --> raw1, raw2 #
#-------------------------#

KERNEL=="raw[1-2]*", GROUP="oinstall", MODE="640"

#------------------------------------#
# Voting disks --> raw3, raw4, raw5. #
#------------------------------------#
KERNEL=="raw[3-5]*", OWNER="oracle", GROUP="oinstall", MODE="660"
~

But these rules do NOT get honored..It does NOT create any raw binding, neither does it change the permissions
on the devices as specified. Even reboot of a system does NOT help.

We've tried and experimented numerous ways, like specifiying /dev/mapper rather than /dev/mpath, also we have changed the UDEV rule names with various numbers...but all in vain so far.

The only thing that seems to work is if we write some sort of script in /etc/rc.local, however, it then defeats the purpose of UDEV.

We also updated to the latest and greatest patches for RHEL 5.1, but no use...

So, is there an issue with DM-MULTIPATH and UDEV in RHEL 5.1 ? or are we missing anything specific ?

Here are the specifics:
OS: RHEL 5.1

uname -a : Linux arcx3550gxvg4 2.6.18-53.1.13.el5 #1 SMP Mon Feb 11 13:27:27 EST 2008 x86_64 x86_64 x86_64 GNU/Linux

Multipath : device-mapper-multipath-0.4.7-12.el5_1.2

Hardware: IBM xseries 3550 servers

Will appreciate any help or tips/tricks on the subject.

Thanks & Regards,
Dharmesh.

      ____________________________________________________________________________________

Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs

#1 lore raw

The kernel names of DM devices show up as /dev/dm-X where X is some integer. The /dev/mapper/XXX are created by the DM/MULTIPATH software without any help from udev as far as I know.

So, use dm-X pattern instead. It may work.

--Malahal.

Quoted 17 lines · Dharmesh Kamdar [[email protected]] wrote:

Hi,

The UDEV rules are as follows:
/etc/udev/rules.d/51-oracle-raw.rules
ACTION=="add", KERNEL="/dev/mpath/OCR1p1",
RUN+="/bin/raw /dev/raw/rawX %N"
ACTION=="add", KERNEL="/dev/mpath/OCR2p1",
RUN+="/bin/raw /dev/raw/rawX %N"
ACTION=="add", KERNEL="/dev/mpath/VOTE1p1",
RUN+="/bin/raw /dev/raw/rawX %N"
ACTION=="add", KERNEL="/dev/mpath/VOTE2p1",
RUN+="/bin/raw /dev/raw/rawX %N"
ACTION=="add", KERNEL="/dev/mpath/VOTE3p1",
RUN+="/bin/raw /dev/raw/rawX %N"
~
2) /etc/udev/rules.d/99-raw.rules
#-------------------------#

#2 lore raw

Hi,

Thanks for the reply. But since the "dm-X" is NOT persistent, Red Hat recommends NOT to use that and recommends to use /dev/mapper/mpathX instead as per this article
http://kbase.redhat.com/faq/FAQ_96_11196.shtm

But specifying /dev/mapper/<ALIAS> did not work for us.

Regards,
Dharmesh.

Quoted 27 lines · --- [email protected] wrote:

The kernel names of DM devices show up as /dev/dm-X where X is some
integer. The /dev/mapper/XXX are created by the DM/MULTIPATH software
without any help from udev as far as I know.

So, use dm-X pattern instead. It may work.

--Malahal.

Quoted 15 lines · Dharmesh Kamdar [[email protected]] wrote:

Hi,

The UDEV rules are as follows:
/etc/udev/rules.d/51-oracle-raw.rules
ACTION=="add", KERNEL="/dev/mpath/OCR1p1",
RUN+="/bin/raw /dev/raw/rawX %N"
ACTION=="add", KERNEL="/dev/mpath/OCR2p1",
RUN+="/bin/raw /dev/raw/rawX %N"
ACTION=="add", KERNEL="/dev/mpath/VOTE1p1",
RUN+="/bin/raw /dev/raw/rawX %N"
ACTION=="add", KERNEL="/dev/mpath/VOTE2p1",
RUN+="/bin/raw /dev/raw/rawX %N"
ACTION=="add", KERNEL="/dev/mpath/VOTE3p1",
RUN+="/bin/raw /dev/raw/rawX %N"
~

Quoted 8 lines
Quoted 2 lines

2) /etc/udev/rules.d/99-raw.rules
#-------------------------#

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

      ____________________________________________________________________________________

Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping