1targetctl(8)                System Manager's Manual               targetctl(8)
2
3
4

NAME

6       targetctl - Save and restore configuration of kernel target
7

DESCRIPTION

9       targetctl  is  a low-level script to save and restore the configuration
10       of the LIO kernel target, to and from a file in json format. It is  not
11       normally  meant  to  be  used by end-users directly, but by system init
12       frameworks, or advanced end-users who are generating the  configuration
13       file  themselves and need a way to load the configuration without rely‐
14       ing on the targetcli configuration shell.
15

USAGE

17       targetctl must be invoked as root. Exit status will be 0 if successful,
18       or nonzero if an error was encountered.
19
20       targetctl save [config-file]
21
22       Saves  the current configuration of the kernel target to a file in json
23       format. Since the file may contain cleartext passwords, the file's per‐
24       missions  will  be set to only allow root access. If config-file is not
25       supplied, targetctl will  use  the  default  file  location,  /etc/tar‐
26       get/saveconfig.json.
27
28       targetctl restore [config-file]
29
30       Removes  any existing configuration and replaces it with the configura‐
31       tion described in the file. See saveconfig.json(5) for more details. If
32       parts  of  the configuration could not be restored, those parts will be
33       noted in the error output, and the rest of the configuration will still
34       be applied.
35
36       targetctl clear
37
38       Removes any existing configuration from the running kernel target.
39
40       targetctl --help
41
42       Displays usage information.
43

SEE ALSO

45       targetcli(8), targetd(8), saveconfig.json(5)
46

FILES

48       /etc/target/saveconfig.json
49
50       /sys/kernel/config/target
51

AUTHOR

53       Written by Andy Grover <agrover@redhat.com>.
54       Man page written by Andy Grover <agrover@redhat.com>.
55

REPORTING BUGS

57       Report bugs via <targetcli-fb-devel@lists.fedorahosted.org>
58       or <https://github.com/open-iscsi/rtslib-fb/issues>
59
60
61
62                                                                  targetctl(8)
Impressum