r310: Fix a few typos in the docs
[nbd.git] / nbd-client.8.sgml
1 <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
2
3 <!-- Process this file with docbook-to-man to generate an nroff manual
4      page: `docbook-to-man manpage.sgml > manpage.1'.  You may view
5      the manual page with: `docbook-to-man manpage.sgml | nroff -man |
6      less'.  A typical entry in a Makefile or Makefile.am is:
7
8 manpage.1: manpage.sgml
9         docbook-to-man $< > $@
10   -->
11
12   <!-- Fill in your name for FIRSTNAME and SURNAME. -->
13   <!ENTITY dhfirstname "<firstname>Wouter</firstname>">
14   <!ENTITY dhsurname   "<surname>Verhelst</surname>">
15   <!-- Please adjust the date whenever revising the manpage. -->
16   <!ENTITY dhdate      "<date>$Date$</date>">
17   <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
18        allowed: see man(7), man(1). -->
19   <!ENTITY dhsection   "<manvolnum>8</manvolnum>">
20   <!ENTITY dhemail     "<email>wouter@debian.org</email>">
21   <!ENTITY dhusername  "Wouter Verhelst">
22   <!ENTITY dhucpackage "<refentrytitle>NBD-CLIENT</refentrytitle>">
23   <!ENTITY dhpackage   "nbd-client">
24
25   <!ENTITY debian      "<productname>Debian GNU/Linux</productname>">
26   <!ENTITY gnu         "<acronym>GNU</acronym>">
27 ]>
28
29 <refentry>
30   <refentryinfo>
31     <address>
32       &dhemail;
33     </address>
34     <author>
35       &dhfirstname;
36       &dhsurname;
37     </author>
38     <copyright>
39       <year>2001</year>
40       <holder>&dhusername;</holder>
41     </copyright>
42     &dhdate;
43   </refentryinfo>
44   <refmeta>
45     &dhucpackage;
46
47     &dhsection;
48   </refmeta>
49   <refnamediv>
50     <refname>&dhpackage;</refname>
51
52     <refpurpose>connect to a server running nbd-server(1), to use its
53     exported block device</refpurpose>
54   </refnamediv>
55   <refsynopsisdiv>
56     <cmdsynopsis>
57       <command>&dhpackage;</command>
58       <arg><option>bs=<replaceable>blocksize</replaceable></option></arg>
59       <arg><option>timeout=<replaceable>seconds</replaceable></option></arg>
60       <arg choice=plain><option><replaceable>host</replaceable></option></arg>
61       <arg choice=plain><option><replaceable>port</replaceable></option></arg>
62       <arg choice=plain><option><replaceable>nbd-device</replaceable></option></arg>
63       <arg><option>-sdp</option></arg>
64       <arg><option>-swap</option></arg>
65       <arg><option>-persist</option></arg>
66     </cmdsynopsis>
67     <cmdsynopsis>
68       <command>&dhpackage;</command>
69       <arg choice=plain><option>-d <replaceable>nbd-device</replaceable></option></arg>
70     </cmdsynopsis>
71   </refsynopsisdiv>
72   <refsect1>
73     <title>DESCRIPTION</title>
74
75     <para>With <command>&dhpackage;</command>, you can connect to a
76     server running <command>nbd-server</command>, thus using raw
77     diskspace from that server as a blockdevice on the local
78     client.</para>
79
80     <para>To do this, support from the Linux Kernel is necessary, in
81     the form of the Network Block Device (NBD). When you have that,
82     either in the kernel, or as a module, you can connect to an NBD
83     server and use its exported file through a block special file with
84     major mode 43.</para>
85
86   </refsect1>
87   <refsect1>
88     <title>OPTIONS</title>
89
90     <para>The following options are supported:</para>
91
92     <variablelist>
93       <varlistentry>
94         <term><option>bs=<replaceable>blocksize</replaceable></option></term>
95         <listitem>
96           <para>Use a blocksize of "blocksize". Default is 1024;
97             allowed values are either 512, 1024, 2048 or 4096</para>
98         </listitem>
99       </varlistentry>
100       <varlistentry>
101         <term><option>host</option></term>
102         <listitem>
103           <para>The hostname of the machine running
104             <command>nbd-server</command>.</para>
105         </listitem>
106       </varlistentry>
107       <varlistentry>
108         <term><option>port</option></term>
109         <listitem>
110           <para>The TCP port on which <command>nbd-server</command> is
111             running at the server.</para>
112         </listitem>
113       </varlistentry>
114       <varlistentry>
115         <term><option>nbd-device</option></term>
116         <listitem>
117           <para>The block special file this nbd-client should connect
118             to.</para>
119         </listitem>
120       </varlistentry>
121       <varlistentry>
122         <term><option>-sdp</option></term>
123         <listitem>
124           <para>Connect to the server using the Socket Direct Protocol
125             (SDP), rather than IP. See nbd-server(1) for details.
126           </para>
127         </listitem>
128       </varlistentry>
129       <varlistentry>
130         <term><option>-swap</option></term>
131         <listitem>
132           <para>Specifies that this NBD device will be used as
133             swapspace. If you intend to do that, please use this
134             option to prevent deadlocks. You'll need a special kernel
135             patch, available at NBD's homepage:
136             http://atrey.karlin.mff.cuni.cz/~pavel</para>
137         </listitem>
138       </varlistentry>
139     </variablelist>
140   </refsect1>
141   <refsect1>
142     <title>EXAMPLES</title>
143
144     <para>Some examples of nbd-client usage:</para>
145     <itemizedlist mark="none">
146       <listitem>
147         <para>To connect to a server running on port 2000 at host
148           "server.domain.com", using the client's block special file
149           "/dev/nb0":</para>
150         <para><command>nbd-client server.domain.com 2000
151           /dev/nb0</command></para>
152       </listitem>
153       <listitem>
154         <para>To connect to a server running on port 2001 at host
155           "swapserver.domain.com", using the client's block special
156           file "/dev/nb1", for swap purposes:</para>
157         <para><command>nbd-client swapserver.domain.com 2001 /dev/nb1
158           -swap</command></para>
159       </listitem>
160       <listitem>
161         <para>To disconnect the above connection again (after making
162           sure the block special file is not in use anymore):</para>
163         <para><command>nbd-client -d /dev/nb1</command></para>
164       </listitem>
165     </itemizedlist>
166   </refsect1>
167   <refsect1>
168     <title>SEE ALSO</title>
169
170     <para>nbd-server (1).</para>
171
172   </refsect1>
173   <refsect1>
174     <title>AUTHOR</title>
175     <para>The NBD kernel module and the NBD tools have been written by
176     Pavel Macheck (pavel@ucw.cz).</para>
177
178     <para>The kernel module is now maintained by Paul Clements
179     (Paul.Clements@steeleye.com), while the userland tools are maintained by
180     Wouter Verhelst (wouter@debian.org)</para>
181
182     <para>This manual page was written by &dhusername; (&dhemail;) for
183     the &debian; system (but may be used by others).  Permission is
184     granted to copy, distribute and/or modify this document under the
185     terms of the <acronym>GNU</acronym> General Public License,
186     version 2, as published by the Free Software Foundation.</para>
187
188   </refsect1>
189 </refentry>
190
191 <!-- Keep this comment at the end of the file
192 Local variables:
193 mode: sgml
194 sgml-omittag:t
195 sgml-shorttag:t
196 sgml-minimize-attributes:nil
197 sgml-always-quote-attributes:t
198 sgml-indent-step:2
199 sgml-indent-data:t
200 sgml-parent-document:nil
201 sgml-default-dtd-file:nil
202 sgml-exposed-tags:nil
203 sgml-local-catalogs:nil
204 sgml-local-ecat-files:nil
205 End:
206 -->