Re: qla2xxx: automatically rescan removed luns.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux