tgt-setup-lun(8) System Manager's Manual tgt-setup-lun(8)NAME
tgt-setup-lun - creates a target, adds a device to the target and defines initiators that can connect to the target
SYNOPSIS
tgt-setup-lun -d device -n target_name [initiator_IP1 initiator_IP2 ...] [-h]
DESCRIPTION
Starts tgtd if necessary and creates a target according to the supplied target_name. The format of the target name is as follows:
iqn.2001-04.com.<hostname>-<target_name> The target name must be unique.
The script then adds the requested device to the target. If specific IP addresses are defined, it adds them to the list of allowed initia-
tors for that target. If no IP addresses is defined, it defines that the target accepts any initiator.
EXAMPLES
Create a target that uses /dev/sdb1 and allows connections only from 192.168.10.81:
tgt-setup-lun -d /dev/sdb1 -n my_target 192.168.10.81
Create a target that uses /dev/sdb1 and allows connections only from 192.168.10.81 and 192.168.10.82:
tgt-setup-lun -d /dev/sdb1 -n my_target 192.168.10.81 192.168.10.82
Create a target that uses /dev/sdb1 and allows connections from any initiator:
tgt-setup-lun -d /dev/sdb1 -n my_target
Display help:
tgt-setup-lun -h
AUTHOR
Written by Erez Zilber
REPORTING BUGS
Report bugs to <stgt@vger.kernel.org>
COPYRIGHT
Copyright (C) Voltaire Ltd. 2008.
tgt-setup-lun(8)
Check Out this Related Man Page
TGTADM(8) System Management Commands TGTADM(8)NAME
tgtadm - Linux SCSI Target Administration Utility.
SYNOPSIS
tgtadm --lld [driver] --op [operation] --mode [mode] [OPTION]...
DESCRIPTION
tgtadm is used to monitor and modify everything about Linux SCSI target software: targets, volumes, etc.
OPTIONS --lld [driver] --op new --mode target --tid=[id] --targetname [name]
add a new target with [id] and [name].
--lld [driver] --op delete --mode target --tid=[id]
delete specific target with [id]. The target must have no active I_T nexus.
--lld [driver] --op show --mode target
show all the targets.
--lld [driver] --op show --mode target --tid=[id]
show target parameters of a target with [id].
--lld [driver] --op new --mode=logicalunit --tid=[id] --lun=[lun] --backing-store [path]
add a new logical unit with [lun] to specific target with [id]. The logical unit is offered to the initiators. [path] must be block device
files (including LVM and RAID devices) or regular files. lun0 is reserved for a special device automatically created.
--lld [driver] --op delete --mode=logicalunit --tid=[id] --lun=[lun]
delete specific logical unit with [lun] that the target with [id] has.
--lld [driver] --op bind --mode=target --tid=[id] --initiator-address=[address]
add the address to the access lists of the target with [id]. Initiators with the address can access to the target. 'ALL' is a special
address to allow all initiators to access to a target.
--lld [driver] --op unbind --mode=target --tid=[id] --initiator-address=[address]
delete the address from the access lists of the target with [id].
--lld [driver] --op update --mode=target --tid=[id] --name=[parameter] --value=[value]
change the value of [parameter] of the target with [id] to [value].
--version
display version and exit
--help
display a list of available options and exits
REPORTING BUGS
Report bugs to <stgt-devel@lists.berlios.de>
System Management Commands 2007-06-20 TGTADM(8)
This is the sample of a data file that I have. It has 10 columns:
0,285,1,2,5,285,1,2,5,0
0,168,1,1,61,168,1,1,61,1512
0,102,3,1,60,102,3,1,60,1525
0,282,3,3,2,282,3,3,2,1503
0,167,3,4,10,167,3,1,24,1472
0,101,1,0,0,101,1,0,0,0
0,263,3,2,0,263,3,2,0,1470
0,245,2,1,50,245,2,1,50,1425... (15 Replies)
please help for the following task...
I have to extract the mac address & IP address from the file1:
...
0100004512EEF4 03 192.168.0.7 192.168.0.1 -1 ...
0100779hF5D212 03 192.168.0.8 192.168.0.1 -1 ...
0100789lF5D212 03 192.168.0.9 192.168.0.1 -1 ...
...
change the format (addidng... (15 Replies)
Ok, currently my situation is I am unable to get my solaris 8 box on the Internet or communicating with my network. I had the solaris box setup for DHCP and was not getting a IP address. I then set my own IP to 192.168.0.10 which is an excluded address in my windows network. I have set a default... (12 Replies)
Dear ALL
I have two Sco Unix ver 5.0.5 servers and i want to copy one folder from server A (IP 192.168.0.1) to server B(IP 192.168.0.2).
I want a script file using maybe "ftp" to do the job
Kindly any help (11 Replies)
hi all,
I can't get my index.html to display on the web browser. Please point it out the reason.
this is what i had done so far:
1. I have registered a dns name pointing to my public ip (it is done automatic)
2. my server name is set same as the dns name
3. I have configured... (14 Replies)
Hi
I use arp to get the mac-addresses of my hosts.
# arp -a | grep 192.168.0.
e1000g0 192.168.0.1 255.255.255.255 o 00:00:00:00:00:01
e1000g0 192.168.0.11 255.255.255.255 o 00:00:00:00:00:02
e1000g0 192.168.0.2 255.255.255.255 ... (12 Replies)
Hi, im have log file ~100000 lines,
192.168.29.1 at 10/08/09 13:58:55
192.168.60.1 at 10/08/09 14:11:28
192.168.58.171 at 10/08/09 14:12:45
192.168.61.12 at 10/08/09 14:15:44
192.168.60.1 at 10/08/09 14:16:36
192.168.60.1 at 10/08/09 14:17:43
192.168.61.12 at 10/08/09 14:18:08... (9 Replies)
I have a question for one who wants to help me.
I want to create a bash script to ping IP-adresses. It must first ask me the beginnen IP, then the ending IP like: 192.168.100.1 - 192.168.100.255.
When nothing is filled in, then it must find my subnet and ping that, like when my ip is... (14 Replies)
Hi All,
Here is my original string: 192.168.2.1.8088. The target string I want: 192.168.2.1, how can I use awk or sed or other command to get rid of .8088 in the string?
Thanks,
Ray (9 Replies)
Lois_Answer_Code=`sipsak -vv -s sip:192.168.1.3|grep -A 1 "reply received after"|grep SIP|awk '{print $2}'`How to find the exit status of | (12 Replies)
I thought this would be easy to Google, but I am having trouble getting a clean result that I can understand.
I simply want to insert the the line:
My Network 192.168.1.1
After the last line that begins with ACL localnet (15 Replies)
I am trying to parse a file that looks like the below:
There are thousands of lines like the above and the file is expected to run into hundreds of thousands.
The issue i have is the mixed format of the file. If it was just an xmlfile, i would use an xmllint to parse the file. Now, i am... (11 Replies)
Hy everybody,
Within a dhcpd.conf file, we got some fixed IP adresses from 192.168.0.1 - 192.168.0.254.
Sample:
#ddns-update-style interim;
ddns-update-style none;
ignore client-updates;
deny client-updates;
authoritative;
#### By red for PXE Booting
allow booting;
allow bootp;
###... (17 Replies)
Hello
i have a file with this format:
ip.txt content:
192.168.1.1/2020
192.136.1.2/2028
192.168.1.10/3047
....
need to create 1000 files and each files content, import data from ip.txt line (first file with first line data, second file with second line...etc)
internal=yes
internalip=... (14 Replies)