ISCSI(4)
π ISCSI(4) β the iSCSI initiator, but make it make sense π
Hey bestie, welcome to the iscsi man page, which is literally your guide to the FreeBSD iSCSI initiator. So iscsi β yeah, that's the thing speaking iSCSI, no cap. It's a kernel interface manual, and this page lowkey explains the kernel side of the whole initiator setup. Anyway, the vibe check for this page comes from the Debian manual, dated May 28, 2017 β we'll get to the cute sign-off at the end, promise. π«Ά
β¨ NAME β¨
iscsi β iSCSI initiator. That's the whole name, and it's iconic.
π SYNOPSIS π
Okay so if you wanna compile this driver into the kernel (main character energy, very permanent), you put this line in the kernel configuration file:
device iscsi
Alternatively β and honestly, slay β you can load the driver as a module at boot time. For that, put this line in loader.conf(5):
iscsi_load="YES"
π¦ DESCRIPTION π¦
So here's the tea: the iscsi subsystem provides the kernel component of an iSCSI initiator, and it's responsible for implementing the Full Feature Phase of the iSCSI protocol. No shortcuts, bestie, full feature phase only. π
The initiator is the iSCSI client. It connects to an iSCSI target, and that connection gives you local access to a remote block device. Basically you're using a disk that's not physically in your box, iykyk.
The userland component is provided by iscsid(8) β that's the other half of the operation. And both the kernel side and the userland side are configured using iscsictl(8). So iscsictl(8) is your one-stop shop for config. π
πΈ SYSCTL VARIABLES πΈ
The following variables are available as both sysctl(8) variables and loader(8) tunables. So yes, you can set them at runtime, you can set them at boot, whatever fits your vibe. β¨
kern.iscsi.debugβ Verbosity level for log messages from theiscsidriver. Set it to0to disable logging, or1to warn about potential problems. Larger values enable debugging output. Defaults to1. So if you're like "why is my log silent," check this first. π΅οΈββοΈkern.iscsi.ping_timeoutβ The number of seconds to wait for the target to respond to a NOP-Out PDU. If there's no response within that time, the session gets forcibly restarted. Set to0to disable sending NOP-Out PDUs. Defaults to5. So it's a patience meter for your target, basically. β³kern.iscsi.iscsid_timeoutβ The number of seconds to wait foriscsid(8)to establish a session. After that time,iscsiwill abort and retry. Defaults to60. That's a whole minute of waiting, bestie, don't leave it hanging. πkern.iscsi.login_timeoutβ The number of seconds to wait for a login attempt to succeed. After that time,iscsiwill abort and retry. Defaults to60. Again, a full minute. Consistent queen. πkern.iscsi.maxtagsβ The maximum number of outstanding IO requests. Defaults to255. So that's how many requests can be in flight at once. Don't exceed the limit, fr fr. π₯kern.iscsi.fail_on_disconnectionβ Controls the behavior after an iSCSI connection has been dropped due to network problems. When set to1, a dropped connection causes the iSCSI device nodes to be destroyed. After reconnecting, they will be created again. By default, the device nodes are left intact. While the connection is down, all input/output operations are suspended, to be retried after the connection is reestablished. So basically: either they get destroyed and come back, or they stay and the IO just holds its breath until the network stops being flaky. Either way, no data loss, just vibes. π«§
Real talk: if the network drops, don't panic β the default behavior keeps the device nodes alive, and all your IO is just paused, waiting to be retried. That's a slay safety net. π
π SEE ALSO π
iser(4)πiscsi.conf(5)πΈiscsictl(8)πiscsid(8)β¨
Go read those too, bestie, they complete the picture. π¦
β HISTORY β
The iscsi subsystem first appeared in FreeBSD 10.0. So it's been around, it's not new-new, but it's still iconic. π₯
π AUTHORS π
The iscsi subsystem was developed by Edward Tomasz Napierala <trasz@FreeBSD.org> under sponsorship from the FreeBSD Foundation. Respect the author, no cap. π
Cute sign-off: this was the Debian manual page forISCSI(4), datedMay 28, 2017β and now you know the whole vibe. Go forth and configure your iSCSI, bestie, you're literally the main character. πβ¨π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2014 Edward Tomasz Napierala
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms