From: Benjamin ESTRABAUD <be@mpstor.com>
To: Hannes Reinecke <hare@suse.de>, dgilbert@interlog.com
Cc: emilne@redhat.com, linux-scsi@vger.kernel.org
Subject: Re: qla2xxx: automatically rescan removed luns.
Date: Tue, 03 Dec 2013 17:35:07 +0000 [thread overview]
Message-ID: <529E164B.4080009@mpstor.com> (raw)
In-Reply-To: <52974533.3030508@suse.de>
On 28/11/13 13:29, Hannes Reinecke wrote:
> On 11/26/2013 05:26 PM, Douglas Gilbert wrote:
>> On 13-11-26 11:06 AM, Benjamin ESTRABAUD wrote:
> [ .. ]
>>> "rescan-scsi-bus.sh" did detect new LUN, but apparently not
>>> removed ones.
>>> However I need to test it on a system with a compatible bash shell
>>> as I wasn't
>>> able to run the script without errors.
>>
>> Did you try the rescan-scsi-bus.sh from sg3_utils v 1.37 or
>> earlier? The reason I ask is that a fair amount of work
>> was done on the rescan-scsi-bus.sh found in version 1.37
>> including syncing with Kurt Garloff's version 1.57 plus
>> patches from Hannes Reinecke and Sean Stewart.
>>
> Plus you need to call it with '-r', otherwise it won't remove any
> stale LUNs. I'm sure it's documented somewhere ...
>
Hi Doug and Hannes,
I did indeed try but I was using an older version and without specifying
"-r" so it didn't remove anything.
I looked at the latest version's "remove" code (at around line 445 from
rescan-scsi-bus.sh) and it seems to delete disks using the scsi_device
sysfs "delete" function (which is the function I'm using right now).
I was unable to tell how the script detects whether a drive is gone or
has been replaced with another backend storage at the same LUN, which in
fact turns out to be the thing I'm more interested in (since I can now
delete stale luns).
Thanks in advance for your help!
> Cheers,
>
> Hannes
>
Regards,
Ben.
prev parent reply other threads:[~2013-12-03 17:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-25 15:37 qla2xxx: automatically rescan removed luns Benjamin ESTRABAUD
2013-11-25 17:17 ` Ewan Milne
2013-11-26 16:06 ` Benjamin ESTRABAUD
2013-11-26 16:26 ` Douglas Gilbert
2013-11-28 13:29 ` Hannes Reinecke
2013-12-03 17:35 ` Benjamin ESTRABAUD [this message]
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=529E164B.4080009@mpstor.com \
--to=be@mpstor.com \
--cc=dgilbert@interlog.com \
--cc=emilne@redhat.com \
--cc=hare@suse.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox