Configuring SCSI devices
![]()
FCP devices that use NPIV mode detect the LUNs automatically and no configuring is necessary. If needed, configure the LUN manually.
You can configure the LUN manually using the chzdev command or by writing the LUN to be configured to the sysfs unit_add attribute of the applicable target port.
For each FCP device that uses NPIV mode and if you did not disable automatic LUN scanning (see zfcp device driver kernel parameters), the LUNs are configured for you. In this case, no FCP LUN entries are created under /sys/bus/ccw/drivers/zfcp/<device_bus_id>/<wwpn>.
To find out
whether an FCP device is using NPIV mode, check the port_type attribute. For
example:
To find out whether automatic LUN scanning is enabled, check the current setting of
the module parameter zfcp.allow_lun_scan. The example below shows automatic LUN scanning as turned
on.# cat /sys/bus/ccw/drivers/zfcp/0.0.1901/host*/fc_host/host*/port_type NPIV VPORT
# cat /sys/module/zfcp/parameters/allow_lun_scan Y