https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254432
Bug ID: 254432 Summary: ctld won't start correctly at boot Product: Base System Version: 13.0-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: b...@freebsd.org Reporter: jcdus...@gmail.com Created attachment 223448 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=223448&action=edit ctl.conf file Hello, ctld does not fully start when the machine boots on FreeBSD 13 (I tested through BETA to RC2). However, it does start when it is launched manually. Plus, the exact same configuration works perfectly on FreeBSD 12. I tried on two different machines. I stripped down the config to a basic one (some value are edited) : /etc/ctl.conf lun pulse { path "/dev/zvol/exports/iscsi/pulse" } portal-group pg0 { discovery-auth-group no-authentication listen 0.0.0.0 } target iqn.2020-02.net.domain.hostname:pulse { auth-group no-authentication portal-group pg0 lun 0 "pulse" } ----------- After the boot process, ctld seems to have begun to start, as 1) there is a process (with no arguments) root@hostname:~ # ps faux |grep ctl root 9 0,0 0,0 0 256 - DL 11:56 0:00,00 [ctl] 2) ctladm prints some informations that are not printed when it is stopped root@hostname:~ # ctladm port -l Port Online Frontend Name pp vp 0 YES ioctl ioctl 0 0 1 YES tpc tpc 0 0 2 NO camsim camsim 0 0 naa.5000000xxxxxxxx 3 YES iscsi iscsi 257 1 iqn.2020-02.net.domain.hostname:pulse,t,0x0101 ----------- root@hostname:~ # ctladm devlist LUN Backend Size (Blocks) BS Serial Number Device ID 0 block 251658240 512 MYSERIAL0000 MYDEVID0000 ----------- root@hostname:~ # ctladm lunlist (7:0:0/0): <FREEBSD CTLDISK 0001> Fixed Direct Access SPC-5 SCSI device But the service does not work: root@hostname:~ # service ctld status ctld is not running. The first attempt at starting the service manually returns root@hostname:~ # service ctld start Starting ctld. ctld: error returned from port creation request: target "iqn.2020-02.net.domain.hostname:pulse" for portal group tag 257 already exists ctld: failed to update port pg0-iqn.2020-02.net.domain.hostname:pulse While the second attempt returns root@hostname:~ # service ctld start ctld already running? (pid=2961). Then, the service is OK root@hostname:~ # service ctld status ctld is running as pid 2961. And everything works fine. I could not find any useful log but can provide more informations if needed. -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"