
Using the Emulex lun-scan script
149
Additional Notes
Using the Emulex lun-scan script
Contained on the EMC approved web page of the Emulex website is
a script called
lun_scan.sh, which allow you to dynamically
(without a reboot or driver unload/reload) discover new targets and
LUNs (on new or existing targets) that have come online. This script
is located at the following URL:
http://www.emulex.com/ts/downloads/linuxfc/linux_tools.html
This script may be integrated into the system run-level transitions to
ensure that all devices are fully detected.
Note: It is highly recommended that a rescan of the SCSI bus should not be
conducted while you are running IO. The dynamic discovery and insertion of
LUNs while IO is running on applications may cause unforeseen errors to
occur on the IO in flight. The benefit of the dynamic scanning of the SCSI bus
is to reduce the need to reboot the server.
The lun_scan.sh script may be used to scan all of the Emulex
adapters or a specific Emulex adapter. If the
lun_scan.sh script is
run without specifying parameters, the output is as follows:
[root@l82bi250 /]# lun_scan.sh
Usage: lun_scan [ <#> [<#>] | all ]
where
# is a SCSI host number of a specific lpfc HBA that is to be scanned.
More than 1 host number can be specified.
all indicates that all lpfc HBAs are to be scanned.
Example:
lun_scan all : Scans all lpfc HBAs
lun_scan 2 : Scans the lpfc HBA with scsi host number 2
lun_scan 2 4 : Scans the lpfc HBAs with scsi host number 2 and 4
Warning: Scanning an adapter while performing a tape backup should
be avoided.
Examples of the usage of the script are:
◆ To obtain the SCSI host number of the Emulex adapters within
the system, refer to the /proc filesystem:
[root@l82bi250 /]# ls /proc/scsi/lpfc/
2 3
In this particular system, the Emulex adapters are listed as SCSI
host numbers 2 and 3.
Comentarios a estos manuales