table of contents
TGT-ADMIN(8) | [FIXME: manual] | TGT-ADMIN(8) |
NAME¶
tgt-admin - Linux SCSI Target Configuration Tool
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]
DESCRIPTION¶
tgt-admin is a utility which allows a persistent configuration of targets and luns. It uses tgtadm commands to create, delete and show targets.
OPTIONS¶
-e, --execute
-d, --delete <value>
If you want to delete targets which are in use, you have to add the "--force" flag.
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
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
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>
If you want to update targets which are in use, you have to add "--force" flag.
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
-C, --control-port <NNNN>
-c, --conf <configuration file>
--ignore-errors
-f, --force
-p, --pretend
--dump
-v, --verbose
-h, --help
FILES¶
/etc/tgt/targets.conf
/usr/share/doc/tgt/targets.conf.example
SEE ALSO¶
targets.conf(5), tgtd(8), tgtadm(8), tgtimg(8), tgt-setup-lun(8). http://stgt.sourceforge.net/
REPORTING BUGS¶
Report bugs to <stgt@vger.kernel.org>
05/10/2016 | [FIXME: source] |