From: James Smart <James.Smart@Emulex.Com>
To: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Ahmed A <ahmedcali@yahoo.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: Stale devices in sysfs
Date: Fri, 27 Mar 2009 09:37:18 -0400 [thread overview]
Message-ID: <49CCD68E.6080201@emulex.com> (raw)
In-Reply-To: <1238103888.3342.67.camel@localhost.localdomain>
James Bottomley wrote:
>> Thank you for your reply. It is an Emulex 2 port FC hba (LPE11002),
>> using the inbox driver version 8.2.0.33.3p. Yes, there have been some
>> disconnect, initiatied by me by disabling / enablling the port on the
>> target. Even in these situations, wouldn't the driver remove the
>> old/stale mappings? I am guessing from you response, there is no way
>> for me to clean-up the old ones.
>
> The delete caused by rport removal is supposed to remove them.
This is true of upstream. But the hint is "inbox driver". The distros added a
tweak to the transport to allow an enable/disable teardown on removal, with
default to teardown-disabled. This was to work around issues with sdev
reallocation, which Hannes has been working on for a while due to all its
nuances, where the distro isn't quite in sync with what's upstream.
> There
> should be a message in the logs, something like :
>
> blocked FC remote port time out: removing target and saving binding
>
> You can delete any of the devices by just doing
>
> echo 1 > /sys/class/scsi_device/<h:c:t:l>/device/delete
This will always work. Additionally, you can change the distro transport
option by loading the fc transport with the module option "remove_on_dev_loss=1".
-- james s
>
>
>> As to figure out which ones are real, just use the sd mapping with the
>> latest target number, right?
>
> Yes, the transport class allocates them from a per host incrementing
> variable.
>
> James
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2009-03-27 13:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-26 18:51 Stale devices in sysfs Ahmed A
2009-03-26 21:44 ` James Bottomley
2009-03-27 13:37 ` James Smart [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-03-26 17:16 Ahmed A
2009-03-26 17:41 ` James Bottomley
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=49CCD68E.6080201@emulex.com \
--to=james.smart@emulex.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=ahmedcali@yahoo.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.