[Bug 293076] ctld regression in FreeBSD 15: multiple physical ports per target rejected and ports not enabled automatically
[email protected] Sat, 04 Apr 2026 17:00:45 +0000
| Newsgroups | gmane.os.freebsd.devel.scsi |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D293076 --- Comment #10 from Ken J. Thomson <[email protected]> --- (In reply to John Baldwin from comment #9) As you said iscsi still creating the target. And ctld reload didnt enabled = the ports. However ctld start now opened the ports after last patch. # ctladm portlist -v Port Online Frontend Name pp vp 0 NO camsim camsim 0 0 naa.5000000c7fee4b01 Target: naa.5000000c7fee4b00 All LUNs mapped port_type=3D8 1 YES ioctl ioctl 0 0=20=20 All LUNs mapped port_type=3D4 2 YES tpc tpc 0 0=20=20 All LUNs mapped port_type=3D8 3 NO camtgt ocs_fc0 0 0=20=20 All LUNs mapped port_type=3D1 4 NO camtgt ocs_fc1 0 0=20=20 All LUNs mapped port_type=3D1 # service ctld onestart Starting ctld. ctld: /etc/ctl.conf is world-readable [root@bsd15 ~]# ctladm portlist -v Port Online Frontend Name pp vp 0 NO camsim camsim 0 0 naa.5000000c7fee4b01 Target: naa.5000000c7fee4b00 All LUNs mapped port_type=3D8 1 YES ioctl ioctl 0 0=20=20 All LUNs mapped port_type=3D4 2 YES tpc tpc 0 0=20=20 All LUNs mapped port_type=3D8 3 YES camtgt ocs_fc0 0 0 naa.100000109b223c61 Target: naa.200000109b223c61 LUN 0: 0 port_type=3D1 4 NO camtgt ocs_fc1 0 0=20=20 All LUNs mapped port_type=3D1 5 YES iscsi iscsi 256 1 naa.123456789,t,0x0100 Target: naa.123456789 LUN 0: 0 port_type=3D16 cfiscsi_state=3D1 cfiscsi_target=3Dnaa.123456789 ctld_portal_group_name=3Ddefault cfiscsi_portal_group_tag=3D25 #-- add second interface to target --# # cat /etc/ctl.conf=20 lun example_1 { path /dev/zvol/zroot/lun1 option naa 0x50015178f369f093 } target naa.123456789 { port ocs_fc0 port ocs_fc1 lun 0 example_1 } root@bsd15 ~]# service ctld onereload [root@bsd15 ~]# ctladm portlist -v Port Online Frontend Name pp vp 0 NO camsim camsim 0 0 naa.5000000c7fee4b01 Target: naa.5000000c7fee4b00 All LUNs mapped port_type=3D8 1 YES ioctl ioctl 0 0=20=20 All LUNs mapped port_type=3D4 2 YES tpc tpc 0 0=20=20 All LUNs mapped port_type=3D8 3 YES camtgt ocs_fc0 0 0 naa.100000109b223c61 Target: naa.200000109b223c61 LUN 0: 0 port_type=3D1 4 NO camtgt ocs_fc1 0 0=20=20 All LUNs mapped port_type=3D1 5 YES iscsi iscsi 256 1 naa.123456789,t,0x0100 Target: naa.123456789 LUN 0: 0 port_type=3D16 cfiscsi_state=3D1 cfiscsi_target=3Dnaa.123456789 ctld_portal_group_name=3Ddefault cfiscsi_portal_group_tag=3D256 # -- ctld reload do not enabled the port !!! [root@bsd15 ~]# service ctld onerestart Stopping ctld. Waiting for PIDS: 10307. Starting ctld. ctld: /etc/ctl.conf is world-readable [root@bsd15 ~]# ctladm portlist -v Port Online Frontend Name pp vp 0 NO camsim camsim 0 0 naa.5000000c7fee4b01 Target: naa.5000000c7fee4b00 All LUNs mapped port_type=3D8 1 YES ioctl ioctl 0 0=20=20 All LUNs mapped port_type=3D4 2 YES tpc tpc 0 0=20=20 All LUNs mapped port_type=3D8 3 YES camtgt ocs_fc0 0 0 naa.100000109b223c61 Target: naa.200000109b223c61 LUN 0: 0 port_type=3D1 4 YES camtgt ocs_fc1 0 0 naa.100000109b223c62 Target: naa.200000109b223c62 LUN 0: 0 port_type=3D1 5 YES iscsi iscsi 256 1 naa.123456789,t,0x0100 Target: naa.123456789 LUN 0: 0 port_type=3D16 cfiscsi_state=3D1 cfiscsi_target=3Dnaa.123456789 ctld_portal_group_name=3Ddefault cfiscsi_portal_group_tag=3D256 --=20 You are receiving this mail because: You are the assignee for the bug.=