Scenario for finding available LUNs
There are several steps from setting an FCP device online to listing the available LUNs.
Procedure
- Check for available FCP devices of type 1732/03:
Another possible type would be, for example, 1732/04.# lscss -t 1732/03 Device Subchan. DevType CU Type Use PIM PAM POM CHPIDs ---------------------------------------------------------------------- 0.0.3c02 0.0.0015 1732/03 1731/03 80 80 ff 36000000 00000000
- Set the FCP device online:
A port scan is performed automatically when the FCP device is set online.# chccwdev 0.0.3c02 --online
- Optional: Confirm that the FCP
device is available and online:
# lszfcp -b 0.0.3c02 -a 0.0.3c02 host0 Bus = "ccw" availability = "good" ... failed = "0" ... in_recovery = "0" ... online = "1" ...
- Optional: List the available
ports:
# lszfcp -P 0.0.3c02/0x50050763030bc562 rport-0:0-0 0.0.3c02/0x500507630310c562 rport-0:0-1 0.0.3c02/0x500507630040727b rport-0:0-10 0.0.3c02/0x500507630e060521 rport-0:0-11 ...
- Scan for available LUNs on FCP device 0.0.3c02,
port 0x50050763030bc562:
# lsluns -c 0.0.3c02 -p 0x50050763030bc562 Scanning for LUNs on adapter 0.0.3c02 at port 0x50050763030bc562: 0x4010400000000000 0x4010400100000000 0x4010400200000000 0x4010400300000000 0x4010400400000000 0x4010400500000000 0x4010400600000000 ...