TGT-ADMIN(8)
π TGT-ADMIN(8) β the tgt-admin glow-up π
okay bestie, so this is the manual page for tgt-admin, section 8 of the manual (that's the sysadmin-commands girlies π
). Everything you need is right here, no cap.
β¨ NAME β¨
tgt-admin β Linux SCSI Target Configuration Tool
Like, literally the tool that lets you configure targets and luns persistently. She's giving main character energy in the SCSI target world. π¦
πΈ SYNOPSIS πΈ
tgt-admin [-e --execute] [--delete <value>] [--offline <value>]
[--ready <value>] [-s --show] [-C --control-port <NNNN>]
[-c --conf <file>] [--ignore-errors] [-f --force]
[-p --pretend] [--dump] [-v --verbose] [-h --help]
So many flags, so little time, iykyk. π«Ά
π DESCRIPTION π
tgt-admin is a utility which allows a persistent configuration of targets and luns. That's the whole vibe. β¨ She uses tgtadm commands under the hood to create, delete and show targets β so yes, she's got a whole team behind her, but she's the one running the group chat.
π OPTIONS π
-e,--executeβ Reads/etc/tgt/targets.confand executestgtadmcommands. Lowkey important detail: if the target already exists, it won't be processed. Like, she's not gonna double-work a target that's already there. Check--updateif that's what you wanted. π-d,--delete <value>β Deletes all or selected targets. But bestie, listen: the target will be deleted only if it's not used (aka no initiator is connected to it). It's giving "respect the boundaries." π«
If you want to delete targets which are in use, you have to add the "--force" flag. Yes, we're going there. π
Example usage:
--delete ALL - delete all targets
--delete tid=4 - delete target 4
(target with tid 4)
--delete iqn.2008-08.com.example:some.target
- delete this target
--offlineβ Puts all or selected targets in offline state. She's taking a nap, don't @ her. π΄
Example usage:
--offline ALL - offline all targets
--offline tid=4 - offline target 4
(target with tid 4)
--offline iqn.2008-08.com.example:some.target
- offline this target
--readyβ Puts all or selected targets in ready state. She's back, refreshed, glowing. β¨
Example usage:
--ready ALL - ready all targets
--ready tid=4 - ready target 4
(target with tid 4)
--ready iqn.2008-08.com.example:some.target
- ready this target
--update <value>β Updates all or selected targets. Same rule as delete, bestie: the target will be updated only if it's not used (no initiator is connected to it). π€
If you want to update targets which are in use, you have to add the "--force" flag. Yeah, that flag is doing a LOT of heavy lifting on this page. πͺ
Example usage:
--update ALL - ready all targets
--update tid=4 - ready target 4
(target with tid 4)
--update iqn.2008-08.com.example:some.target
- update this target
-s,--showβ Shows all the targets. Just, like, a full tour of the situation. π-C,--control-port <NNNN>β Okay so this is actually iconic: it is possible to run multiple concurrent instances oftgtdon a host. This argument is used to control which instance thetgt-admincommand will operate on. Pick your fighter. π₯-c,--conf <configuration file>β Specifies an alternative configuration file instead of/etc/tgt/targets.conf, which is the default. She's flexible like that. π§--ignore-errorsβ Continues even iftgtadmexits with non-zero code. She's choosing peace. ποΈ-f,--forceβ Forces some operations even if the target is in use. The "I said what I said" flag. π₯-p,--pretendβ Only printstgtadmoptions which would be used; doesn't execute any actions. Assumes-v. It's a dress rehearsal, not the actual show. π--dumpβ Dumps currenttgtdconfiguration. Note: it does not include detailed parameters, like write caching. So don't come for her when the details aren't there, she told you upfront. π-v,--verboseβ Increases verbosity (showstgtadmcommands used). She's telling you everything, bestie. π£οΈ-h,--helpβ Displays a list of available options and exits. The classic "wait what are my options again" move. πββοΈ
π¦ FILES π¦
/etc/tgt/targets.confβ Configuration file fortgt-admin./usr/share/doc/tgt/targets.conf.exampleβ Example configuration file fortgt-admin. Study it, it's literally the blueprint. π
π SEE ALSO π
targets.conf(5), tgtd(8), tgtadm(8), tgtimg(8), tgt-setup-lun(8).
The whole friend group, plus the link. Go click it. π
π REPORTING BUGS π
Found something cursed? Report bugs to <stgt@vger.kernel.org>. Be nice about it, they're doing their best. π«Ά
ngl that was a lot of flags, but you ate that. periodt. π
β with love, from the [FIXME: source] edition, dated 11/01/2026 πβ¨
π¦ where this page comes from
- alpine 3.24: scsi-tgt-doc 1.0.98-r0 Β· GPL-2.0-only
- arch rolling: tgt 1.0.98-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms