Hi, I am trying to set up a FreeBSD Fibre Channel target.
/etc/ctl.conf
On the Linux initiator, I get this message:
When I check on the target side, if a LUN is exposed:
Nothing
When I restart the ctld service
But now I have this iSCSI frontend
From my understanding, the iSCSI frontend should not be there. But I do not understand why and how it got there and why it is created/used even if I specified the port with isp0 and the WWPN as the target.
I have tested this setup with the same Fedora initiator and a Fedora target, and it worked. But after I was back in FreeBSD, suddenly ctl could not see the ports at all.
/etc/ctl.conf
Code:
lun internal-firewall {
backend block
path /dev/zvol/storage/vm/internal-firewall
}
target naa.210034800d71282a {
alias xcpng-hypervisor
auth-type none
port isp0
lun 0 internal-firewall
}
ctladm portlist
Code:
Port Online Frontend Name pp vp
0 YES camsim camsim 0 0 naa.5000000e0aa6af01
1 YES ioctl ioctl 0 0
2 YES tpc tpc 0 0
3 YES camtgt isp0 0 0 naa.210034800d71282a
4 YES camtgt isp1 0 0 naa.210034800d71282b
dmesg
Code:
isp0: <Qlogic ISP 2722 PCI FC Adapter> mem 0xe0505000-0xe0505fff,0xe0502000-0xe0503fff,0xe0400000-0xe04fffff at device 0.0 on pci1
isp0: Primary aux image not addressed
isp0: Secondary aux image not addressed
isp1: <Qlogic ISP 2722 PCI FC Adapter> mem 0xe0504000-0xe0504fff,0xe0500000-0xe0501fff,0xe0300000-0xe03fffff at device 0.1 on pci1
isp1: Primary aux image not addressed
isp1: Secondary aux image not addressed
ctlfe_onoffline: isp0 current WWNN 0x200034800d71282a
ctlfe_onoffline: isp0 current WWPN 0x210034800d71282a
isp0: Setting Channel 0 wwns to 0x210034800d71282a 0x210034800d71282a
ctlfe_onoffline: isp0 new WWNN 0x210034800d71282a
ctlfe_onoffline: isp0 new WWPN 0x210034800d71282a
ctlfe_onoffline: isp0 (path id 0) target role enable succeeded
ctlfeasync: WWPN 0x21000024ff1d7dc8 port 0x0000e8 path 0 target 0 arrived
ctlfeasync: WWPN 0x21000024ff1d7dc8 port 0x0000e8 path 0 target 0 left
On the Linux initiator, I get this message:
qla2xxx [0000:05:00.0]-705d:0: Remote port 21 00 34 80 0d 71 28 2a is not coming back
When I check on the target side, if a LUN is exposed:
ctladm lunlist
Nothing
ctladm devlist
Code:
LUN Backend Size (Blocks) BS Serial Number Device ID
When I restart the ctld service
service ctld restart
: ctladm devlist
Code:
LUN Backend Size (Blocks) BS Serial Number Device ID
0 block 251658240 512 MYSERIAL0000 MYDEVID0000
ctladm lunlist
Code:
(7:1:0/0): <FREEBSD CTLDISK 0001> Fixed Direct Access SPC-5 SCSI device
But now I have this iSCSI frontend
ctladm portlist
Code:
Port Online Frontend Name pp vp
0 YES camsim camsim 0 0 naa.5000000e0aa6af01
1 YES ioctl ioctl 0 0
2 YES tpc tpc 0 0
3 YES camtgt isp0 0 0 naa.210034800d71282a
4 YES camtgt isp1 0 0 naa.210034800d71282b
5 YES iscsi iscsi 256 1 naa.210034800d71282a,t,0x0100
From my understanding, the iSCSI frontend should not be there. But I do not understand why and how it got there and why it is created/used even if I specified the port with isp0 and the WWPN as the target.
I have tested this setup with the same Fedora initiator and a Fedora target, and it worked. But after I was back in FreeBSD, suddenly ctl could not see the ports at all.
ctladm portlist
Code:
Port Online Frontend Name pp vp
0 NO camsim camsim 0 0 naa.50000008a15d8b01
1 YES ioctl ioctl 0 0
2 YES tpc tpc 0 0
pciconf -lvV
Code:
isp0@pci0:1:0:0: class=0x0c0400 rev=0x01 hdr=0x00 vendor=0x1077 device=0x2261 subvendor=0x1077 subdevice=0x029c
vendor = 'QLogic Corp.'
device = 'ISP2722-based 16/32Gb Fibre Channel to PCIe Adapter'
class = serial bus
subclass = Fibre Channel
VPD ident = 'QLogic 16Gb 2-port FC to PCIe Gen3 x8 Adapter'
VPD ro PN = 'QLE2692'
VPD ro SN = 'RFD2019J37118'
VPD ro EC = 'BK3210407-05 D'
VPD ro V9 = '010159'
isp1@pci0:1:0:1: class=0x0c0400 rev=0x01 hdr=0x00 vendor=0x1077 device=0x2261 subvendor=0x1077 subdevice=0x029c
vendor = 'QLogic Corp.'
device = 'ISP2722-based 16/32Gb Fibre Channel to PCIe Adapter'
class = serial bus
subclass = Fibre Channel
VPD ident = 'QLogic 16Gb 2-port FC to PCIe Gen3 x8 Adapter'
VPD ro PN = 'QLE2692'
VPD ro SN = 'RFD2019J37118'
VPD ro EC = 'BK3210407-05 D'
VPD ro V9 = '010159'
sysctl dev.isp
Code:
dev.isp.1.fw_version_run: 9.12.0
dev.isp.1.fw_version_ispfw: 9.12.0
dev.isp.1.fw_version_flash: 8.5.44
dev.isp.1.use_gff_id: 1
dev.isp.1.use_gft_id: 1
dev.isp.1.topo: 0
dev.isp.1.loopstate: 0
dev.isp.1.fwstate: 0
dev.isp.1.linkstate: 0
dev.isp.1.speed: 0
dev.isp.1.role: 2
dev.isp.1.gone_device_time: 30
dev.isp.1.loop_down_limit: 60
dev.isp.1.wwpn: 2377958327837599787
dev.isp.1.wwnn: 2305900733799671851
dev.isp.1.%iommu: rid=0x101
dev.isp.1.%parent: pci1
dev.isp.1.%pnpinfo: vendor=0x1077 device=0x2261 subvendor=0x1077 subdevice=0x029c class=0x0c0400iscsi
dev.isp.1.%location: slot=0 function=1 dbsf=pci0:1:0:1 handle=\_SB_.PCI0.GPP0.HDAU
dev.isp.1.%driver: isp
dev.isp.1.%desc: Qlogic ISP 2722 PCI FC Adapter
dev.isp.0.fw_version_run: 9.12.0
dev.isp.0.fw_version_ispfw: 9.12.0
dev.isp.0.fw_version_flash: 8.5.44
dev.isp.0.use_gff_id: 1
dev.isp.0.use_gft_id: 1
dev.isp.0.topo: 0
dev.isp.0.loopstate: 0
dev.isp.0.fwstate: 0
dev.isp.0.linkstate: 0
dev.isp.0.speed: 0
dev.isp.0.role: 2
dev.isp.0.gone_device_time: 30
dev.isp.0.loop_down_limit: 60
dev.isp.0.wwpn: 2377958327837599786
dev.isp.0.wwnn: 2305900733799671850
dev.isp.0.%iommu: rid=0x100
dev.isp.0.%parent: pci1
dev.isp.0.%pnpinfo: vendor=0x1077 device=0x2261 subvendor=0x1077 subdevice=0x029c class=0x0c0400
dev.isp.0.%location: slot=0 function=0 dbsf=pci0:1:0:0 handle=\_SB_.PCI0.GPP0.VGA_
dev.isp.0.%driver: isp
dev.isp.0.%desc: Qlogic ISP 2722 PCI FC Adapter
dev.isp.%parent:
dmesg
Code:
isp0: <Qlogic ISP 2722 PCI FC Adapter> mem 0xe0505000-0xe0505fff,0xe0502000-0xe0503fff,0xe0400000-0xe04fffff at device 0.0 on pci1
isp0: Primary aux image not addressed
isp0: Secondary aux image not addressed
isp1: <Qlogic ISP 2722 PCI FC Adapter> mem 0xe0504000-0xe0504fff,0xe0500000-0xe0501fff,0xe0300000-0xe03fffff at device 0.1 on pci1
isp1: Primary aux image not addressed
isp1: Secondary aux image not addressed