From: Anu Matthew <anu.matthew@bms.com>
To: linux-raid@vger.kernel.org
Subject: multipath md devices
Date: Wed, 22 Sep 2004 16:41:31 -0400 [thread overview]
Message-ID: <4151E37B.8040207@bms.com> (raw)
Hi,
We have multipath devices created on SAN Luns. Say md0 is created on
/dev/sdj and /dev/sde, the latter being the alternate path for /dev/sdj.
I've noticed the following:
1) Without much IO to the md device, and I pull out the cable to say
/dev/sdj, the /proc/mdstat still shows both devices. /proc/mdstat won't
get updated unless I start some considerable IO to the md device. Even
mdadm scan/query o/p shows both the paths, which is not true. As we
start IO, /proc/mdstat reflects that one of the devices, /dev/sdj in
this case, has failed. Thereafter mdadm outputs would be correct too.
The entries (link down) in syslog and dmesg are almost instantaneous
when the cable is pulled out. This makes it very difficult to monitor
multipath devices, as we cannot rely on /proc/mdstat to read.
2) Another situation: Device md0 is active, with healthy multipaths
/dev/sdj and /dev/sde, under reasonable IO activity. If the cable to
/dev/sdj is yanked out, md0 remains still active, thanks to the
alternate path, sde. However, it fails to go back and re-construct the
spare path allocation even after the fibre link is restored. Here, if I
pull the cable out for sde even after 30 minutes, the machine ends up
failing to write to /dev/md0 as it does not care whether /dev/sdj is
back online, unless I failed, removed and add /dev/sdj manually from
the mdadm command line. If something is hard mounted on /dev/md0, it may
end up in a system crash.
To conclude, if one path goes off, and comes back after a while, and
then the second path goes off, md0 cannot be read, unless someone
manually did fail, remove and add the first device which came back
online, before the second path goes off.
Any help towards this will be much appreciated.
Thanks,
--AM.
next reply other threads:[~2004-09-22 20:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-22 20:41 Anu Matthew [this message]
2004-09-22 21:35 ` multipath md devices Doug Ledford
2004-09-22 22:20 ` Anu Matthew
2004-09-23 5:46 ` Luca Berra
2004-09-24 1:10 ` Neil Brown
2004-09-24 16:41 ` Doug Ledford
-- strict thread matches above, loose matches on Subject: below --
2004-09-22 21:55 Doug Griswold
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=4151E37B.8040207@bms.com \
--to=anu.matthew@bms.com \
--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).