1TGT-SETUP-LUN(8)                [FIXME: manual]               TGT-SETUP-LUN(8)
2
3
4

NAME

6       tgt-setup-lun - Helper script that creates a target, adds a device to
7       the target, and defines initiators that can connect to the target
8

SYNOPSIS

10       tgt-setup-lun -d <device> -n <targetname> [-b <bsname>]
11                     [-t <transport>] [initiator_IP...] [-h]
12

DESCRIPTION

14       Creates a target according to the supplied target_name. tgtd must be
15       running. The format of the default IQN generated from the target name
16       is: "iqn.2001-04.com.<hostname>-<target_name>", or a complete IQN may
17       be given. The target name must be unique.
18
19       The script then adds the requested device to the target. If specific IP
20       addresses are defined, it adds them to the list of allowed initiators
21       for that target. If no IP addresses is defined, it defines that the
22       target accepts any initiator.
23

EXAMPLES

25       Create a target that uses /dev/sdb1 and allows connections only from
26       192.168.10.81:
27
28                 tgt-setup-lun -d /dev/sdb1 -n my_target 192.168.10.81
29
30
31       Create a target that uses /dev/sdb1 and allows connections only from
32       192.168.10.81 and 192.168.10.82:
33
34                 tgt-setup-lun -d /dev/sdb1 -n my_target 192.168.10.81 192.168.10.82
35
36
37       Create a target that uses /dev/sdb1 and allows connections from any
38       initiator:
39
40                 tgt-setup-lun -d /dev/sdb1 -n my_target
41
42
43       Display help:
44
45                 tgt-setup-lun -h
46
47

AUTHOR

49       Written by Erez Zilber
50

SEE ALSO

52       targets.conf(5), tgtd(8), tgtadm(8), tgtimg(8), tgt-admin(8).
53       http://stgt.sourceforge.net/
54

REPORTING BUGS

56       Report bugs to <stgt@vger.kernel.org>
57
59       Copyright © Voltaire Ltd. 2008.
60
61
62
63[FIXME: source]                   05/11/2016                  TGT-SETUP-LUN(8)
Impressum