All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dharmesh Kamdar <kamdard71@yahoo.com>
To: dm-devel@redhat.com
Subject: UDEV with DM-MULTIPATH issue in RHEL 5.1....
Date: Wed, 27 Feb 2008 10:10:22 -0800 (PST)	[thread overview]
Message-ID: <508552.23576.qm@web90611.mail.mud.yahoo.com> (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

             reply	other threads:[~2008-02-27 18:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-27 18:10 Dharmesh Kamdar [this message]
2008-02-27 18:28 ` UDEV with DM-MULTIPATH issue in RHEL 5.1 malahal
2008-02-27 18:48   ` Dharmesh Kamdar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=508552.23576.qm@web90611.mail.mud.yahoo.com \
    --to=kamdard71@yahoo.com \
    --cc=dm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.