1 .\" $NetBSD: iscsi-initiator.8,v 1.2 2009/06/19 19:31:18 wiz Exp $
3 .\" Copyright © 2007 Alistair Crooks. All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
13 .\" 3. The name of the author may not be used to endorse or promote
14 .\" products derived from this software without specific prior written
17 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
18 .\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
21 .\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
23 .\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25 .\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
26 .\" NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 .\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 .Dd September 20, 2007
34 .Nd refuse-based iSCSI initiator
38 .Op Fl a Ar authentication-type
39 .Op Fl d Ar digest-type
40 .Op Fl h Ar target-hostname
41 .Op Fl p Ar target-port-number
42 .Op Fl t Ar target-number
48 utility can be used to access an iSCSI target, such as
50 to access block storage which has been exported.
51 Information pertaining to the target is displayed underneath
52 the mount point, along with the device corresponding
53 to the storage which the target exports.
55 The various arguments are as follows:
58 Use an IPv4 connection to the target.
60 Use an IPv6 connection to the target.
61 .It Fl a Ar authentication-type
62 Use the specified authentication type when communicating with the target.
63 The possible values are chap, kerberos, srp or none.
64 The default value is none.
66 Show the storage as a block device.
68 Show the storage as a character device.
69 .It Fl d Ar digest-type
70 Use the specified digest type when communicating with the target.
71 The possible values are header, data, both, all or none.
72 The default value is none.
74 Show the storage as a regular file.
76 Connect to the iSCSI target running on the host specified as the argument.
77 .It Fl p Ar port-number
78 Connect to the iSCSI target running on the port specified as the argument.
79 The default value is 3260.
81 Connect to the number of the iSCSI target running as the argument.
83 Use the specified user's credentials when logging in to the iSCSI target.
86 Print out the version number and then exit.
88 Be verbose in operation.
93 library is used to provide the file system features.
95 The mandatory parameter is the local mount point.
97 This iSCSI initiator presents a view of the targets underneath the
99 Firstly, it creates a directory tree with the hostname of the target,
100 and, in that directory, a virtual directory is created for each
101 target name exported by the iSCSI target program.
102 Within that virtual target directory, symbolic links exist for
103 the hostname (for convenience),
104 a textual representation of the IP address,
105 the iSCSI target product name,
106 the iSCSI target IQN,
107 the iSCSI target vendor and version number.
108 One other directory entry is presented in the virtual target
109 directory, relating to the storage presented by the iSCSI target.
110 This can be in the form of a regular file, which is also the
111 default, a block device or a character device.
117 kernel module loaded via
122 # ./iscsi-initiator -u agc iscsi-target0.alistaircrooks.co.uk /mnt
123 # ls -al /mnt/iscsi-target0.alistaircrooks.co.uk/target0
125 drwxr-xr-x 2 agc agc 512 May 11 22:24 .
126 drwxr-xr-x 2 agc agc 512 May 11 22:24 ..
127 lrw-r--r-- 1 agc agc 39 May 11 22:24 hostname -\*[Gt] iscsi-target0.alistaircrooks.co.uk
128 lrw-r--r-- 1 agc agc 14 May 11 22:24 ip -\*[Gt] 172.16.135.130
129 lrw-r--r-- 1 agc agc 16 May 11 22:24 product -\*[Gt] NetBSD iSCSI
130 -rw-r--r-- 1 agc agc 104857600 May 11 22:24 storage
131 lrw-r--r-- 1 agc agc 43 May 11 22:24 targetname -\*[Gt] iqn.1994-04.org.netbsd.iscsi-target:target0
132 lrw-r--r-- 1 agc agc 8 May 11 22:24 vendor -\*[Gt] NetBSD
133 lrw-r--r-- 1 agc agc 4 May 11 22:24 version -\*[Gt] 0
143 utility first appeared in
148 utility was written by