Why are zfcp devices not getting created on Red Hat Enterprise Linux 6 system Z guest even though configuration is proper ?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 6 update 4
  • zfcp non root luns defined in /etc/zfcp.conf

Issue

  • zfcp devices are not getting created on Red Hat Enterprise Linux 6 system Z guest. zfcp luns are non root devices. Steps mentioned in Red Hat Documentation was followed.

  • Few command outputs are as follows:

# lszfcp -P
0.0.0516/0x50060e80164dde00 rport-0:0-0

# /etc/zfcp.conf 
0.0.0516 0x50060e80164dde00 0x00a50000000000a5
  • Upon boot, dmesg has the following message related with the zfcp:
scsi0 : zfcp
qdio: 0.0.0516 ZFCP on SC 1 using AI:1 QEBSM:1 PCI:1 TDD:1 SIGA: W AO
  • Lun's are detected properly:
# ls /sys/bus/ccw/drivers/zfcp/0.0.0516/0x50060e80164dde00/
0x00a40000000000a4  0x00a50000000000a5  access_denied  failed  in_recovery  power  status  uevent
  • But lszfcp devices list "no device found"
# lszfcp -D
Error: No fcp devices found.

Resolution

  • Create the file /etc/modprobe.d/zfcp.conf and add the following text to it
alias scsi_hostadapter zfcp
  • Reboot the system after making the change

Diagnostic Steps

  • Collect the output of the following commands to verify the configuration:
  # lszfcp -P
  # cat /etc/zfcp.conf
  # ls /sys/bus/ccw/drivers/zfcp/0.0.<device number> [verify whether the device is online]

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments