1
2tgt-setup-lun(8)            System Manager's Manual           tgt-setup-lun(8)
3
4
5

NAME

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

SYNOPSIS

11       tgt-setup-lun -d device  -n  target_name  [initiator_IP1  initiator_IP2
12       ...] [-h]
13
14

DESCRIPTION

16       Starts tgtd if necessary and creates a target according to the supplied
17       target_name. The format of the target name is as follows:
18       iqn.2001-04.com.<hostname>-<target_name>  The  target  name   must   be
19       unique.
20
21       The script then adds the requested device to the target. If specific IP
22       addresses are defined, it adds them to the list of  allowed  initiators
23       for  that  target.  If  no IP addresses is defined, it defines that the
24       target accepts any initiator.
25
26

EXAMPLES

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

AUTHOR

45       Written by Erez Zilber
46

REPORTING BUGS

48       Report bugs to <stgt@vger.kernel.org>
49
51       Copyright © Voltaire Ltd. 2008.
52
53
54
55                                                              tgt-setup-lun(8)
Impressum