tgt-admin
Usage:
tgt-admin [OPTION]...
This tool configures tgt targets.
-e, --execute read /etc/tgt/targets.conf and execute tgtadm commands
--delete <value> delete all or selected targets
(see "--delete help" for more info)
--offline <value> put all or selected targets in offline state
(see "--offline help" for more info)
--ready <value> put all or selected targets in ready state
(see "--ready help" for more info)
--update <value> update configuration for all or selected targets
(see "--update help" for more info)
-s, --show show all the targets
-c, --conf <conf file> specify an alternative configuration file
--ignore-errors continue even if tgtadm exits with non-zero code
-f, --force force some operations even if the target is in use
-p, --pretend only print tgtadm options
--dump dump current tgtd configuration (note: does not
include detailed parameters, like write caching)
-v, --verbose increase verbosity (show tgtadm commands)
-h, --help show this help
### ¼³Á¤ÆÄÀÏ ¾÷µ¥ÀÌÆ® (µ¥¸ó ¸®½ºÅ¸Æ® ÇÊ¿ä¾øÀ½)
tgt-admin --update help
--update <value> update all or selected targets
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 "--force" flag.
Example usage:
--update help - display this help
--update ALL - update all targets
--update tid=4 - update target 4 (target with tid 4)
--update iqn.2008-08.com.example:some.target - update this target
### ¿ÀÇÁ¶óÀÎ(ºñÈ°¼ºÈ)»óÅ·Π(==/ ready)
tgt-admin --offline help
--offline <value> offline all or selected targets
Example usage:
--offline help - display this help
--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
tgt-admin --update help
--update <value> update all or selected targets
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 "--force" flag.
Example usage:
--update help - display this help
--update ALL - update all targets
--update tid=4 - update target 4 (target with tid 4)
--update iqn.2008-08.com.example:some.target - update this target