ISCSI(4)
π ISCSI(4) π
okay so bestie, welcome to the iscsi manual β it's in the Kernel Interfaces Manual (section 4, slay), and it's genuinely one of my faves so let's get into it π¦
β¨ NAME β¨
iscsi β iSCSI initiator
β¨ SYNOPSIS β¨
So if you wanna compile this driver into the kernel, you drop this line into your kernel config file:
device iscsi
Orrr, if you'd rather load it as a module at boot time instead, you put this line in loader.conf(5):
iscsi_load="YES"
Both valid. Choose your fighter π
β¨ DESCRIPTION β¨
The iscsi subsystem is literally the kernel component of an iSCSI initiator, and its whole job is implementing the Full Feature Phase of the iSCSI protocol. No cap.
Quick vocab check because it matters: the initiator is the iSCSI client. It connects to an iSCSI target, and boom β you get local access to a remote block device. It's giving "the remote disk is in the room with us right now" π
The userland component? That's handled by iscsid(8). And both the kernel side and the userland side get configured using iscsictl(8). Two halves, one iconique little ecosystem π
β¨ SYSCTL VARIABLES β¨
All of these are available both as sysctl(8) variables and as loader(8) tunables. Double duty, main character energy π
kern.iscsi.debugβ the verbosity level for log messages coming from theiscsidriver. Set it to0to disable logging entirely, or1to warn you about potential problems. Bigger values = more debugging output. Defaults to1.kern.iscsi.ping_timeoutβ how many seconds to wait for the target to respond to a NOP-Out PDU. If there's no response within that window, the session gets forcibly restarted. Set it to0to disable sending NOP-Out PDUs altogether. Defaults to5.kern.iscsi.iscsid_timeoutβ how many seconds to wait foriscsid(8)to establish a session. After that time,iscsiwill abort and retry. Defaults to60.kern.iscsi.login_timeoutβ how many seconds to wait for a login attempt to succeed. After that time,iscsiwill abort and retry. Defaults to60.kern.iscsi.maxtagsβ the maximum number of outstanding IO requests. Defaults to255.kern.iscsi.fail_on_disconnectionβ this one controls the behavior after an iSCSI connection gets dropped due to network problems. When it's set to1, a dropped connection causes the iSCSI device nodes to be destroyed. After reconnecting, they'll be created again. By default though, the device nodes are left intact. And while the connection is down, all input/output operations are suspended, waiting to be retried once the connection is reestablished. So like, it's fine, it's just β¨holding its breathβ¨ π
fr fr, read that last one twice β whether your device nodes survive a network hiccup depends entirely on this variable.
β¨ SEE ALSO β¨
go read them, they're all part of the same friend group π«Ά
β¨ HISTORY β¨
The iscsi subsystem first appeared in FreeBSD 10.0. OG behavior, honestly πΈ
β¨ AUTHORS β¨
The iscsi subsystem was developed by Edward Tomasz Napierala <trasz@FreeBSD.org> under sponsorship from the FreeBSD Foundation. We love a sponsored king π
and that's the whole page bestie!! this one came from the Debian manual set, dated May 28, 2017, filed under ISCSI(4) β tysm for reading, ily, go configure your initiator πβ¨π
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2014 Edward Tomasz Napierala
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms