Updating the information about SCSI devices
Use the rescan
attribute of the SCSI device
to detect changes to a storage device on the storage server that are
made after the device was discovered.
Before you begin
About this task
The initial information about the available SCSI devices is discovered automatically when LUNs first become available.
Procedure
To update the information about a SCSI device issue a command
of this form:
# echo <string> > /sys/bus/scsi/devices/<scsi_host_no>:0:<scsi_id>:<scsi_lun>/rescan
where:
- <string>
- is any alphanumeric string.
- <scsi_host_no>
- is the SCSI host number that corresponds to the FCP device.
- <scsi_id>
- is the SCSI ID of the target port.
- <scsi_lun>
- is the LUN of the SCSI device.
Example
In the following example, the information about a SCSI device 1:0:18:1086537744 is updated:
# echo 1 > /sys/bus/scsi/devices/1:0:18:1086537744/rescan