From: Kiyoshi Ueda <k-ueda@ct.jp.nec.com>
To: "Moger, Babu" <Babu.Moger@lsi.com>
Cc: "'dm-devel@redhat.com'" <dm-devel@redhat.com>,
"Chauhan, Vijay" <Vijay.Chauhan@lsi.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] dm mpath: Try recover from I/O failure by re-initializing the PG if device is running on one path
Date: Wed, 22 Apr 2009 10:52:48 +0900 [thread overview]
Message-ID: <49EE7870.3090008@ct.jp.nec.com> (raw)
In-Reply-To: <E463DF2B2E584B4A82673F53D62C2EF466A66DD4@cosmail01.lsi.com>
Hi Babu,
On 2009/04/22 2:06 +0900, Moger, Babu wrote:
> Hi Kiyoshi,
>
> Thanks for your comment.
>
>
>> -----Original Message-----
>> From: Kiyoshi Ueda [mailto:k-ueda@ct.jp.nec.com]
>> Sent: Monday, April 20, 2009 8:07 PM
>> To: Moger, Babu
>> Cc: 'dm-devel@redhat.com'; linux-scsi@vger.kernel.org; Chauhan, Vijay;
>> 'sekharan@us.ibm.com'
>> Subject: Re: [PATCH] dm mpath: Try recover from I/O failure by re-
>> initializing the PG if device is running on one path
>>
>> Hi Babu,
>>
>> On 2009/04/21 3:05 +0900, Moger, Babu wrote:
>>> This patch introduces the mechanism to recover from I/O failures by
>>> re-initializing the path if the device is running on only one path.
>>>
>>> Problem: Device mapper fails the path for every I/O error. It does not
>>> care about the type of error. There are certain errors which can be
>>> recovered by re-initializing the path again. I have seen this problem
>>> during my testing on rdac device handler. I have observed I/O errors
>>> when there is a change in Lun ownership. When Lun ownership changes
>>> device will return back with check condition with
>>> sense 0x05/0x94/0x01(SK/ASC/ASCQ -meaning Lun ownership changed).
>>> Currently, device mapper fails the path for this error and eventually
>>> this will lead to I/O error. We don't want to see I/O error for this
>>> reason.
>>
>> Shouldn't we handle this type of device error inside device handler?
>
> The current error in question requires re-activation of the path.
> We already have a code to handle this scenario in device handler.
> But, the problem is the return status does not go to DM layer.
> The return status gets lost in scsi layer. For DM layer all the errors
> are -EIO. Any thoughts from your side.
Oh, I missed the point and I thought that re-activating the path
in your device handler was enough for the error.
Currently, I have no idea to handle your case only in dm without
seeing I/O error.
By the way, who did change the ownership when the device was running
with one path in your testing? I can't see why such case happened.
Thanks,
Kiyoshi Ueda
next prev parent reply other threads:[~2009-04-22 1:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-20 18:05 [PATCH] dm mpath: Try recover from I/O failure by re-initializing the PG if device is running on one path Moger, Babu
2009-04-21 1:06 ` Kiyoshi Ueda
2009-04-21 17:06 ` Moger, Babu
2009-04-22 1:52 ` Kiyoshi Ueda [this message]
2009-04-22 14:03 ` Moger, Babu
2009-04-22 17:33 ` Chandra Seetharaman
2009-04-22 17:43 ` Moger, Babu
2009-04-22 17:41 ` Grant Grundler
2009-04-22 18:16 ` Moger, Babu
2009-04-22 19:29 ` Chandra Seetharaman
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=49EE7870.3090008@ct.jp.nec.com \
--to=k-ueda@ct.jp.nec.com \
--cc=Babu.Moger@lsi.com \
--cc=Vijay.Chauhan@lsi.com \
--cc=dm-devel@redhat.com \
--cc=linux-scsi@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.