>
>On Mon, 2005-01-03 at 18:02 -0500, Bagalkote, Sreenivas wrote:
>> o Everybody understands that as long as the SCSI
>scan/rescan is triggered
>> by
>> the management app, there is no getting around knowing HCTL
>mapping. The app
>> must know the HCTL quad of a logical drive.
>
>Actually, if that's all you're trying to do, what about
>
>echo '- - -' > /sys/class/scsi_host/host<n>/scan
>
>That'll trigger a rescan of the entire card and the device
>will be found
>and added?
>
A minor point is that an application should ideally force scan only those
drives
that it has added. But more importantly, this will not help an application
to delete
the drives. Correct?
Sreenivas
On Tue, 2005-01-04 at 12:25 -0500, Bagalkote, Sreenivas wrote:
> A minor point is that an application should ideally force scan only those
> drives
Yes, it's a bit overkill, but it would work ... it's not like
reconfiguration is something you do every day.
> that it has added. But more importantly, this will not help an application
> to delete
> the drives. Correct?
Well, no, I think that would work under this scheme, too: to delete a
drive, it must already exist, so if you've published the logical number
in sysfs, you can easily find it by logical ID and delete it by host
channel, pun and lun.
James