[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: [dm-devel] multipath.conf aliases

> -----Original Message-----
> From: dm-devel-bounces redhat com
> [mailto:dm-devel-bounces redhat com] On Behalf Of Virgilio, Vincent
> Sent: Thursday, October 28, 2004 1:18 PM
> To: dm-devel redhat com
> Subject: [dm-devel] multipath.conf aliases
> Hello,
> I have just successfully configured most of Multipath on my system,
> which is:
> Fedora Core 3 Test 3
> kernel 2.6.10-rc1, with latest udm patches (not kgdb)
> multipath v0.3.5
> This CPU hosts a Qlogic 2200, which is attached to a Brocade Silkworm
> 2400 via one fiber.  There is one target storage enclosure attached to
> the same Brocade via two controllers/fibers.  The storage enclosure
> advertises the same 3 LUNs through each of those controllers.
> Thus there are two paths from the CPU to each LUN.  This is
> reflected in
> the output from /sbin/multipath -v 2 below.
> Now, I'd like to alias the LUN devices to something like /dev/lun0,
> /dev/lun1, and /dev/lun2.  Currently I only have default device mapper
> devices (/dev/dm-*, 5 of them, which I don't understand yet).
> I tried to do this aliasing in /etc/multipath.conf, included
> below.  But
> the only impact I've seen from this is in the output from
> /sbin/multipath, below.  I.e. Lines in the last section starting with
> 'reload:lun0:0 ...'.
> I have also added udev rules to create the lun[0-2] devices,
> next to the
> default ones provided by multipath.  They don't seem to take.
> So, can anyone advise on how to make the aliases in
> /etc/multipath.conf
> appear in /dev somewhere?
> Thanks for everything,
> Vince Virgilio

Problem solved.  I had to edit multipath.rules distributed with
Multipath; I removed the colon between the major and minor device
numbers provided as arguments to /dev/devmap_names.

Oila, /dev/lun[0,1,2] appeared as links.

Here are the contents of /etc/udev/rules.d after the edit:

# multipath wants the devmaps presented as meaninglful device names
# so name them after their devmap name
KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k",
# -----------------------------------------------^ notice, no colon

Vince Virgilio

This e-mail and any files transmitted with it are proprietary and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of ITT Industries, Inc. The recipient should check this e-mail and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this e-mail.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]