linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Ionut Nistor" <ionut@modulo.ro>
To: linux-raid@vger.kernel.org
Subject: Multipath problem in a SAN enviromnent
Date: Wed, 11 Jun 2003 17:09:30 +0300	[thread overview]
Message-ID: <02d201c33023$13fd45a0$3351960a@EEL> (raw)

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


             reply	other threads:[~2003-06-11 14:09 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-11 14:09 Ionut Nistor [this message]
2003-06-11 15:49 ` Multipath problem in a SAN enviromnent 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='02d201c33023$13fd45a0$3351960a@EEL' \
    --to=ionut@modulo.ro \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).