CFISCSI(4)

πŸ’– CFISCSI(4) β€” Kernel Interfaces Manual πŸ’–

okay bestie, buckle up, because this one is cfiscsi β€” the CAM Target Layer iSCSI target frontend. yes that's a lot of words. no i will not be normal about it. πŸ¦‹


✨ NAME ✨

cfiscsi β€” CAM Target Layer iSCSI target frontend


🌸 SYNOPSIS 🌸

so you want this driver in your kernel, right? then you gotta put these lines in your kernel configuration file, exactly like this, no notes:

device cfiscsi
device ctl
device iscsi

or β€” hear me out β€” you can load it as a module at boot time instead, in which case you drop this one single line into loader.conf(5):

cfiscsi_load="YES"

that's it. that's the whole vibe check. 🫢


πŸ’… DESCRIPTION πŸ’…

the cfiscsi subsystem is the kernel component of an iSCSI target. and yes, the target is the iSCSI server β€” it's the one handing out LUNs backed by local files and volumes to remote initiators. main character energy, honestly.

the userspace half of this whole situation is provided by ctld(8). and cfiscsi? it's implemented as a ctl(4) frontend, and it uses the infrastructure that iscsi(4) brings to the table. teamwork makes the dream work. 🌈


⭐ SYSCTL VARIABLES ⭐

these bad boys are available both as sysctl(8) variables and as loader(8) tunables. double duty, we love to see it:

  • kern.cam.ctl.iscsi.debug β€” the verbosity level for log messages coming out of the kernel part of the iSCSI target. set it to 0 to turn logging off completely, or to 1 if you want warnings about potential problems. bigger values = more debugging output, obviously. defaults to 1.
  • kern.cam.ctl.iscsi.maxtags β€” how many outstanding commands you advertise to each iSCSI initiator. heads up though: the current implementation is not very accurate, so do not set this below 2. defaults to 256.
  • kern.cam.ctl.iscsi.ping_timeout β€” the number of seconds to wait for the iSCSI initiator to respond to a NOP-In PDU. and if there's no response within that time? the session gets forcibly terminated. set it to 0 to disable sending NOP-In PDUs entirely. defaults to 5.
no cap, that timeout one is serious β€” silence is not golden here, silence gets your session yeeted. πŸ’€

πŸŽ€ SEE ALSO πŸŽ€


🧚 HISTORY 🧚

the cfiscsi subsystem first appeared in FreeBSD 10.0 as part of the ctl(4) driver. then it got split off of ctl(4) in FreeBSD 12.0. glow-up era. ✨


πŸ‘‘ AUTHORS πŸ‘‘

the cfiscsi subsystem was developed by Edward Tomasz Napierala <trasz@FreeBSD.org> under sponsorship from the FreeBSD Foundation.

this manual page was written by Enji Cooper <ngie@FreeBSD.org>.


and that's the whole page bestie, you ate it, periodt πŸ’…

Debian β€” May 28, 2017 β€” CFISCSI(4) πŸ¦‹πŸ’–

πŸ“¦ where this page comes from