Advertisement

07.01.2008 at 07:22PM PDT, ID: 23532321
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.3

Make channel path to SAN Lun fixed using Linux udev

Asked by sunhux in Oracle Database, Linux

Tags: , , ,

Hi,

Our outsourced developer has given up on using /dev/mapper/...
to set up Oracle RAC ASM as they ran into problems with one
RAC server (on RHEL 4.5) could see/access the ASM partitions
while the other 2 RAC servers can't.  So we won't pursue this
option now.

They've managed (& are happy) to get Oracle 10gr2 ASMLib working
on all 3 servers across reboots using Linux device files, specifically
they've used the raw /dev/sdc1,  /dev/sdd1, /dev/sde1, /dev/sdf1
for ASM partitions while /dev/sdg1 is mounted on a mount point as
ocfs2 partition  (this ocfs2 serve as sort of 'quorum disk' for Oracle
RAC cluster, I think;  I'm no DBA, just Unix admin)

Developer is now happy as data could be retrieved as
ASM partitions are stable across Linux reboots.  However,
NetApp SAN admin is now unhappy as occasionally we're
getting "Fcp partner path misconfigured" alerts from the
Netapp SAN filer.

We suspect this alert is triggered by a change in the
mapping between  /dev/sd..  &  the actual disk chunk each
time Linux is rebooted (as shown by "oracleasm querydisk")

For eg, "multipath -ll" would show /dev/sdq1, /dev/sdw1,
/dev/sde1 & /dev/sdk1 are all pointing to the same chunk
of disk storage.  Developer uses /dev/sdq1 initially but
after reboot, the same ASM partition would get remapped
to /dev/sde1 :
 
     "multipath -ll" output (taking one of the ASM partition as sample):
mpath2 (360a980005672443963344933706f536c)
[size=40 GB][features="1 queue_if_no_path"][hwhandler="0"]
\_ round-robin 0 [active]  
 \_ 8:0:2:3 sdq 65:0   [active]  
 \_ 8:0:3:3 sdw 65:96  [active]
\_ round-robin 0 [enabled]
 \_ 8:0:0:3 sde 8:64   [active]
 \_ 8:0:1:3 sdk 8:160  [active]
 
 
To further illustrate, say, before reboot :
[root@BMW11 ~]# /etc/init.d/oracleasm querydisk land1
Disk "LAND1" is a valid ASM disk on device [65, 1] <== correspond to say /dev/sdq1
 
After reboot,
[root@BMW11 ~]# /etc/init.d/oracleasm querydisk land1
Disk "LAND1" is a valid ASM disk on device [different_number, 1] <== remapped to /dev/sde1

The above "disk chunk" numbers can be seen in /proc/partitions

We're not certain if this change across reboots is the cause of
"partner path misconfigured", only a suspicion.

To verify our suspicion, I need someone to tell me the following :

 in RHEL, there's something called /etc/udev/permissions.d/
    50-udev.permissions.
    Can someone give me a specific example configuration (with
    actual code) of how I can make it such that only the device
    file that I need  (/dev/sdq & /dev/sdq1) are created whenever
    Linux is rebooted

We noticed that for the ocfs2 partition (which is mounted to a
mount point in Linux), it consistently gets the same "disk chunk"
number but not the raw ASM partitions.  I have no inkling why.

Or anyone has any startup script that would delete away all
the "undesired" device files just before Oracle ASM gets started
during a reboot - correct me if I'm wrong, if Oracle ASM can't
find one device file, it will scan for the next available device file,
is this correct?

Can I boldly request for someone to read the attached document
from Oracle, page 5.  I'm not too good with this.  The attached
document has some clue which I probably can't make sense of
it as I needed exact codes.

If you have a suggestion of where we have gone wrong with
/dev/mapper, appreciate it too.Start Free Trial
Attachments:
 
Configuring udev/device mapper for Oracle RAC 10gr2 guide
 
 
Loading Advertisement...
 
[+][-]07.02.2008 at 12:38AM PDT, ID: 21914205

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Oracle Database, Linux
Tags: Redhat Oracle, Linux RHEL ASMLib, 4.5 10gr2, make channel path fixed using Linux udev
Sign Up Now!
Solution Provided By: schwertner
Participating Experts: 1
Solution Grade: B
 
 
[+][-]07.08.2008 at 02:18AM PDT, ID: 21952109

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628