All of lore.kernel.org
 help / color / mirror / Atom feed
* UDEV with DM-MULTIPATH issue in RHEL 5.1....
@ 2008-02-27 18:10 Dharmesh Kamdar
  2008-02-27 18:28 ` malahal
  0 siblings, 1 reply; 3+ messages in thread
From: Dharmesh Kamdar @ 2008-02-27 18:10 UTC (permalink / raw)
  To: dm-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: UDEV with DM-MULTIPATH issue in RHEL 5.1....
  2008-02-27 18:10 UDEV with DM-MULTIPATH issue in RHEL 5.1 Dharmesh Kamdar
@ 2008-02-27 18:28 ` malahal
  2008-02-27 18:48   ` Dharmesh Kamdar
  0 siblings, 1 reply; 3+ messages in thread
From: malahal @ 2008-02-27 18:28 UTC (permalink / raw)
  To: dm-devel

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.

Dharmesh Kamdar [kamdard71@yahoo.com] 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
> #-------------------------#

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: UDEV with DM-MULTIPATH issue in RHEL 5.1....
  2008-02-27 18:28 ` malahal
@ 2008-02-27 18:48   ` Dharmesh Kamdar
  0 siblings, 0 replies; 3+ messages in thread
From: Dharmesh Kamdar @ 2008-02-27 18:48 UTC (permalink / raw)
  To: device-mapper development

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.


--- malahal@us.ibm.com 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.
> 
> Dharmesh Kamdar [kamdard71@yahoo.com] 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
> > #-------------------------#
> 
> --
> dm-devel mailing list
> dm-devel@redhat.com
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-02-27 18:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-27 18:10 UDEV with DM-MULTIPATH issue in RHEL 5.1 Dharmesh Kamdar
2008-02-27 18:28 ` malahal
2008-02-27 18:48   ` Dharmesh Kamdar

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.