LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-25-2010, 04:37 PM   #1
Mr_Hooch
LQ Newbie
 
Registered: Aug 2010
Posts: 1

Rep: Reputation: 0
Red Hat Multipathing Help


Hello,

I could use some help with device-mapper multipathing in conjunction with fdisk. I am more of a solaris expert and now trying to grasp linux (red hat).

I have a server that I plan to cluster (future assignment) which is attached to a Netapp SAN via emulex LPe11002 HBA. I have 8 paths to the LUN I created and I can see the multipath device (/dev/mapper/mpath1). Below is my multipath.conf file:

defaults
{
user_friendly_names yes
max_fds max
queue_without_daemon no
}
blacklist
{
wwid 36a4badb05303fc0013e05e2b475c9aed
wwid 36a4badb05303fc0013e0ba56156bca98
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
devnode "^hd[a-z]"
devnode "^cciss!c[0-9]d[0-9]*[p[0-9]*]"
}
devices
{
device
{
vendor "NETAPP"
product "LUN"
getuid_callout "/sbin/scsi_id -g -u -s /block/%n"
prio_callout "/sbin/mpath_prio_ontap /dev/%n"
features "1 queue_if_no_path"
hardware_handler "0"
path_grouping_policy group_by_prio
failback immediate
rr_weight uniform
rr_min_io 128
path_checker directio
flush_on_last_del yes
}
}
multipath {
wwid 360a98000486e5a704b6f596179324e6e
alias db
path_grouping_policy multipath
path_selector "round-robin 0"
failback immediate
}





Question 1:

When I look at fdisk -l, I can see all 8 paths to the same LUN. Although I partition /dev/mapper/mpath1, I can still see that 7 of the 8 still say "Disk /dev/sdX doesn't contain a valid partition table". I would think that all 8 would have this removed. I execute '/usr/sbin/lpfc/lun_scan all' and it doesn't work. I am looking to clean this up...what should I do? It seems weird to have to do it to all 8 paths!

Question 2:

Why does my alias, 'db' not show up under /dev/mappers?

Question 3:

Is there a way for fdisk -l to display one lun rather than displaying all 8 paths to the lun?


What is the standard procedure (commands) people execute when adding a new lun to a server with multipathing so it is nice and clean?

Thanks!

Last edited by Mr_Hooch; 08-25-2010 at 06:24 PM.
 
Old 08-25-2010, 07:43 PM   #2
cjcox
Member
 
Registered: Jun 2004
Posts: 307

Rep: Reputation: 42
Well.. there a are lots of things to "fix" before something like this would work right (reads /proc/partitions, can contain dead dm's). So, I'm going to say "no". You can use multipath -l to see your multipath'd devices and then select the dm devices to peruse from there.
 
Old 08-26-2010, 08:18 AM   #3
dhofar
LQ Newbie
 
Registered: Aug 2010
Posts: 1

Rep: Reputation: 0
Smile

Hello Hooch ,

you must have 2 controller at the storage and 2 san s/w , so that the server sees a single disk thru 8 paths , please restrt your multipath daemon ,service multipathd restart.

Regards,
 
Old 08-26-2010, 10:13 AM   #4
cjcox
Member
 
Registered: Jun 2004
Posts: 307

Rep: Reputation: 42
dhofar, not everything is multipath aware... nor should they be. There are a TON of variables and it is VERY hard to determine what every user is thinking or doing with regards to devices and paths.

So... no... at best you could write options into tools based on some kind of assumptions... but even so, it could get really ugly (talking about the assumptions).
 
Old 08-27-2010, 05:16 AM   #5
paulsmith01
LQ Newbie
 
Registered: Aug 2010
Posts: 1

Rep: Reputation: 0
Useful

Interesting information shared with useful and helpful ideas and good topic.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Red Hat Summit 2007, Day 2: Red Hat Exchange and interesting presentations LXer Syndicated Linux News 0 05-11-2007 07:32 PM
LXer: Red Hat to launch Red Hat Enterprise Linux 5 before March LXer Syndicated Linux News 0 12-30-2006 08:03 AM
LXer: Red Hat Announces First Red Hat Developer Day In India LXer Syndicated Linux News 0 10-27-2006 07:54 PM
Red Hat does not plan to release another product in the red hat linux line... Whitehat General 5 11-03-2003 06:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration