linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Multipath problem in a SAN enviromnent
@ 2003-06-11 14:09 Ionut Nistor
  2003-06-11 15:49 ` Dominik Kubla
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Ionut Nistor @ 2003-06-11 14:09 UTC (permalink / raw)
  To: linux-raid

Hello,

I'm using a 2.4.18-ac3 kernel and the multipath module in order to ensure
automatic IO path failover. The systems connect to a FC SAN environment.
New logical disks are added/removed from the SAN periodically.

Unfortunatelly, linux's raid subsystem uses major and minor numbers in the
superblock in order to identify members for all raid types - including
multipath. This causes the multipath module to fail when attempting to
identify the members. When the scsi driver is loaded, the bus is scanned and
all the available devices/targets/luns are added to the scsi subsystem and
are allocated a major and minor number.

Say initially, the following are available

scsi1, bus0, target0, lun0
scsi1, bus0, target0, lun1
scsi1, bus0, target0, lun2
scsi2, bus0, target0, lun0
scsi2, bus0, target0, lun1
scsi2, bus0, target0, lun2

They will be mapped as

/dev/sda
/dev/sdb
/dev/sdc
/dev/sdd
/dev/sde
/dev/sdf

and

8,0
8,16
8,32
8,48
8,64
8,80

majors,minors respectivelly.

The disks with LUNs 0, 1, 2 are the same but are viewed on two paths:

/dev/sda - /dev/sdd
/dev/sdb - /dev/sde
/dev/sdc - /dev/sdf

Multipath is created in this configuration and works properly.

Now LUN1 is removed. The new configuration is:

scsi1, bus0, target0, lun0
scsi1, bus0, target0, lun2
scsi2, bus0, target0, lun0
scsi2, bus0, target0, lun2

Unfortunatelly, majors and minors became
8,0
8,16
8,32
8,48
So scsi1, bus0, target0, lun2 is now 8,16 instead of 8,32

However, the raid superblock still has 8,32 in it - this confuses
multipath - I even managed to get it crashing really ugly at some point.
The problem is partially caused by md identifying devices based on
major,minor and partially caused by the fact the the scsi subsystem has no
way (afaik) of mapping device,channel,target,lun to major,minor pairs.
This mapping is being performed dynamically by devfs for user-space
programs, but kernel modules that need to access devices via major,minor
have this problem.

Is there something I am missing? Is this a lack in the kernel?

Thanks,
Ionut


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

end of thread, other threads:[~2003-06-19 15:25 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-11 14:09 Multipath problem in a SAN enviromnent Ionut Nistor
2003-06-11 15:49 ` Dominik Kubla
2003-06-11 16:47   ` Ionut Nistor
2003-06-11 16:27 ` Paul Clements
2003-06-11 16:42   ` Moving Disks [Re: Multipath problem in a SAN enviromnent] Gordon Henderson
2003-06-11 16:45   ` Multipath problem in a SAN enviromnent Ionut Nistor
2003-06-11 17:59     ` Paul Clements
2003-06-12  6:28       ` Ionut Nistor
2003-06-12 10:04   ` Lars Marowsky-Bree
2003-06-12 10:51     ` Ionut Nistor
2003-06-12 14:52       ` Paul Clements
2003-06-13  8:12         ` Ionut Nistor
2003-06-18 10:21           ` Lars Marowsky-Bree
2003-06-19 15:25             ` Ionut Nistor
2003-06-11 19:24 ` Luca Berra
2003-06-12  6:35   ` Ionut Nistor
2003-06-11 19:34 ` Paul Clements
2003-06-12  6:37   ` Ionut Nistor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).