Statistics
| Branch: | Tag: | Revision:

root / man / gnt-backup.sgml @ 20e23543

History | View | Annotate | Download (8 kB)

1 dd4b1106 Iustin Pop
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
2 dd4b1106 Iustin Pop
3 dd4b1106 Iustin Pop
  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
4 dd4b1106 Iustin Pop
  <!-- Please adjust the date whenever revising the manpage. -->
5 dd4b1106 Iustin Pop
  <!ENTITY dhdate      "<date>Jul 6, 2007</date>">
6 dd4b1106 Iustin Pop
  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
7 dd4b1106 Iustin Pop
       allowed: see man(7), man(1). -->
8 dd4b1106 Iustin Pop
  <!ENTITY dhsection   "<manvolnum>8</manvolnum>">
9 dd4b1106 Iustin Pop
  <!ENTITY dhucpackage "<refentrytitle>gnt-backup</refentrytitle>">
10 dd4b1106 Iustin Pop
  <!ENTITY dhpackage   "gnt-backup">
11 dd4b1106 Iustin Pop
12 dd4b1106 Iustin Pop
  <!ENTITY debian      "<productname>Debian</productname>">
13 dd4b1106 Iustin Pop
  <!ENTITY gnu         "<acronym>GNU</acronym>">
14 dd4b1106 Iustin Pop
  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
15 dd4b1106 Iustin Pop
  <!ENTITY footer SYSTEM "footer.sgml">
16 dd4b1106 Iustin Pop
]>
17 dd4b1106 Iustin Pop
18 dd4b1106 Iustin Pop
<refentry>
19 dd4b1106 Iustin Pop
  <refentryinfo>
20 dd4b1106 Iustin Pop
    <copyright>
21 dd4b1106 Iustin Pop
      <year>2007</year>
22 dd4b1106 Iustin Pop
      <holder>Google Inc.</holder>
23 dd4b1106 Iustin Pop
    </copyright>
24 dd4b1106 Iustin Pop
    &dhdate;
25 dd4b1106 Iustin Pop
  </refentryinfo>
26 dd4b1106 Iustin Pop
  <refmeta>
27 dd4b1106 Iustin Pop
    &dhucpackage;
28 dd4b1106 Iustin Pop
29 dd4b1106 Iustin Pop
    &dhsection;
30 dd4b1106 Iustin Pop
    <refmiscinfo>ganeti 1.2</refmiscinfo>
31 dd4b1106 Iustin Pop
  </refmeta>
32 dd4b1106 Iustin Pop
  <refnamediv>
33 dd4b1106 Iustin Pop
    <refname>&dhpackage;</refname>
34 dd4b1106 Iustin Pop
35 dd4b1106 Iustin Pop
    <refpurpose>ganeti instance import/export</refpurpose>
36 dd4b1106 Iustin Pop
  </refnamediv>
37 dd4b1106 Iustin Pop
  <refsynopsisdiv>
38 dd4b1106 Iustin Pop
    <cmdsynopsis>
39 dd4b1106 Iustin Pop
      <command>&dhpackage; </command>
40 dd4b1106 Iustin Pop
41 dd4b1106 Iustin Pop
      <arg choice="req">command</arg>
42 dd4b1106 Iustin Pop
      <arg>arguments...</arg>
43 dd4b1106 Iustin Pop
    </cmdsynopsis>
44 dd4b1106 Iustin Pop
  </refsynopsisdiv>
45 dd4b1106 Iustin Pop
  <refsect1>
46 dd4b1106 Iustin Pop
    <title>DESCRIPTION</title>
47 dd4b1106 Iustin Pop
48 dd4b1106 Iustin Pop
    <para>
49 dd4b1106 Iustin Pop
      The <command>&dhpackage;</command> is used for importing and exporting
50 dd4b1106 Iustin Pop
      instances and their configuration from a ganeti system. It is useful for
51 dd4b1106 Iustin Pop
      backing instances up and also to migrate them between clusters.
52 dd4b1106 Iustin Pop
    </para>
53 dd4b1106 Iustin Pop
54 dd4b1106 Iustin Pop
  </refsect1>
55 dd4b1106 Iustin Pop
  <refsect1>
56 dd4b1106 Iustin Pop
    <title>COMMANDS</title>
57 dd4b1106 Iustin Pop
58 dd4b1106 Iustin Pop
    <refsect2>
59 dd4b1106 Iustin Pop
      <title>EXPORT</title>
60 dd4b1106 Iustin Pop
61 dd4b1106 Iustin Pop
      <cmdsynopsis>
62 dd4b1106 Iustin Pop
        <command>export</command>
63 dd4b1106 Iustin Pop
        <arg choice="req">-n <replaceable>node</replaceable></arg>
64 dd4b1106 Iustin Pop
        <arg>--noshutdown</arg>
65 dd4b1106 Iustin Pop
        <arg choice="req"><replaceable>instance</replaceable></arg>
66 dd4b1106 Iustin Pop
      </cmdsynopsis>
67 dd4b1106 Iustin Pop
68 dd4b1106 Iustin Pop
      <para>
69 f69dab6d Iustin Pop
        Exports an instance to the target node. All the instance data
70 f69dab6d Iustin Pop
        and its configuration will be exported under the
71 f69dab6d Iustin Pop
        /srv/ganeti/exports/<replaceable>instance</replaceable>
72 f69dab6d Iustin Pop
        directory on the target node.
73 dd4b1106 Iustin Pop
      </para>
74 dd4b1106 Iustin Pop
75 dd4b1106 Iustin Pop
      <para>
76 dd4b1106 Iustin Pop
        The <option>--noshutdown</option> option will create a
77 dd4b1106 Iustin Pop
        snapshot disk of the instance without shutting it down first.
78 dd4b1106 Iustin Pop
        While this is faster and involves no downtime, it cannot be
79 dd4b1106 Iustin Pop
        guaranteed that the instance data will be in a consistent state
80 dd4b1106 Iustin Pop
        in the exported dump.
81 dd4b1106 Iustin Pop
      </para>
82 dd4b1106 Iustin Pop
83 dd4b1106 Iustin Pop
      <para>
84 dd4b1106 Iustin Pop
        Example:
85 dd4b1106 Iustin Pop
        <screen>
86 017778ac Guido Trotter
# gnt-backup export -n node1.example.com instance3.example.com
87 dd4b1106 Iustin Pop
        </screen>
88 dd4b1106 Iustin Pop
      </para>
89 dd4b1106 Iustin Pop
    </refsect2>
90 dd4b1106 Iustin Pop
91 dd4b1106 Iustin Pop
    <refsect2>
92 dd4b1106 Iustin Pop
      <title>IMPORT</title>
93 dd4b1106 Iustin Pop
      <cmdsynopsis>
94 dd4b1106 Iustin Pop
        <command>import</command>
95 a53a1b18 Michael Hanselmann
96 a53a1b18 Michael Hanselmann
        <group choice="req">
97 a53a1b18 Michael Hanselmann
          <arg>-n <replaceable>node<optional>:secondary-node</optional></replaceable></arg>
98 a53a1b18 Michael Hanselmann
          <arg>--iallocator <replaceable>name</replaceable></arg>
99 a53a1b18 Michael Hanselmann
        </group>
100 bdb7d4e8 Michael Hanselmann
        <sbr>
101 bdb7d4e8 Michael Hanselmann
102 a53a1b18 Michael Hanselmann
        <arg>-s <replaceable>disksize</replaceable></arg>
103 1e808cbf Guido Trotter
        <arg>--swap-size <replaceable>disksize</replaceable></arg>
104 dd4b1106 Iustin Pop
        <arg>-m <replaceable>memsize</replaceable></arg>
105 a53a1b18 Michael Hanselmann
        <sbr>
106 a53a1b18 Michael Hanselmann
107 dd4b1106 Iustin Pop
        <arg>-b <replaceable>bridge</replaceable></arg>
108 a53a1b18 Michael Hanselmann
        <arg choice="req">--src-node=<replaceable>source-node</replaceable></arg>
109 a53a1b18 Michael Hanselmann
        <arg choice="req">--src-dir=<replaceable>source-dir</replaceable></arg>
110 dd4b1106 Iustin Pop
        <sbr>
111 bdb7d4e8 Michael Hanselmann
112 dd4b1106 Iustin Pop
        <arg choice="req">-t<group>
113 dd4b1106 Iustin Pop
            <arg>diskless</arg>
114 dd4b1106 Iustin Pop
            <arg>plain</arg>
115 f69dab6d Iustin Pop
            <arg>drbd</arg>
116 bdb7d4e8 Michael Hanselmann
          </group></arg>
117 f69dab6d Iustin Pop
        <sbr>
118 bdb7d4e8 Michael Hanselmann
119 dd4b1106 Iustin Pop
        <arg choice="req"><replaceable>instance</replaceable></arg>
120 dd4b1106 Iustin Pop
      </cmdsynopsis>
121 dd4b1106 Iustin Pop
      <para>
122 dd4b1106 Iustin Pop
        Imports a new instance from an export residing on
123 dd4b1106 Iustin Pop
        <replaceable>source-node</replaceable> in
124 dd4b1106 Iustin Pop
        <replaceable>source-dir</replaceable>.
125 dd4b1106 Iustin Pop
        <replaceable>instance</replaceable> must be in DNS and
126 dd4b1106 Iustin Pop
        resolve to a IP in the same network as the nodes in the
127 dd4b1106 Iustin Pop
        cluster.
128 dd4b1106 Iustin Pop
      </para>
129 dd4b1106 Iustin Pop
130 dd4b1106 Iustin Pop
      <para>
131 dd4b1106 Iustin Pop
        The <option>-s</option> option specifies the disk size for
132 d5687e89 Guido Trotter
        the instance, in mebibytes (defaults to
133 d5687e89 Guido Trotter
        <constant>20480MiB</constant> =
134 d5687e89 Guido Trotter
        <constant>20GiB</constant>). You can also use one of the
135 d5687e89 Guido Trotter
        suffixes <literal>m</literal>, <literal>g</literal> or
136 d5687e89 Guido Trotter
        <literal>t</literal> to specificy the exact the units used;
137 d5687e89 Guido Trotter
        these suffixes map to mebibytes, gibibytes and tebibytes.
138 dd4b1106 Iustin Pop
      </para>
139 dd4b1106 Iustin Pop
140 dd4b1106 Iustin Pop
      <para>
141 1e808cbf Guido Trotter
        The <option>--swap-size</option> option specifies the swap
142 1e808cbf Guido Trotter
        disk size (in mebibytes) for the instance (the one presented
143 1e808cbf Guido Trotter
        as <filename class="devicefile">/dev/sdb</filename>). The
144 1e808cbf Guido Trotter
        default is <constant>4096MiB</constant>. As for the disk
145 1e808cbf Guido Trotter
        size, you can specify other suffixes.
146 1e808cbf Guido Trotter
      </para>
147 1e808cbf Guido Trotter
148 1e808cbf Guido Trotter
      <para>
149 dd4b1106 Iustin Pop
        The <option>-m</option> option specifies the memory size for
150 88269100 Guido Trotter
        the instance, in mebibytes (defaults to 128 MiB). Again, you
151 88269100 Guido Trotter
        can use other suffixes (e.g. <userinput>2g</userinput>).
152 dd4b1106 Iustin Pop
      </para>
153 dd4b1106 Iustin Pop
154 dd4b1106 Iustin Pop
      <para>
155 dd4b1106 Iustin Pop
        The <option>-b</option> option specifies the bridge to which the
156 dd4b1106 Iustin Pop
        instance will be connected. (defaults to the cluster-wide default
157 dd4b1106 Iustin Pop
        bridge specified at cluster intialization time).
158 dd4b1106 Iustin Pop
      </para>
159 dd4b1106 Iustin Pop
160 dd4b1106 Iustin Pop
      <para>
161 dd4b1106 Iustin Pop
        The <option>-t</option> options specifies the disk layout type for
162 dd4b1106 Iustin Pop
        the instance. The available choices are:
163 dd4b1106 Iustin Pop
        <variablelist>
164 dd4b1106 Iustin Pop
          <varlistentry>
165 dd4b1106 Iustin Pop
            <term>diskless</term>
166 dd4b1106 Iustin Pop
            <listitem>
167 dd4b1106 Iustin Pop
              <para>
168 dd4b1106 Iustin Pop
                This creates an instance with no disks. Its useful for
169 dd4b1106 Iustin Pop
                testing only (or other special cases).
170 dd4b1106 Iustin Pop
              </para>
171 dd4b1106 Iustin Pop
            </listitem>
172 dd4b1106 Iustin Pop
          </varlistentry>
173 dd4b1106 Iustin Pop
          <varlistentry>
174 dd4b1106 Iustin Pop
            <term>plain</term>
175 dd4b1106 Iustin Pop
            <listitem>
176 dd4b1106 Iustin Pop
              <para>Disk devices will be logical volumes.</para>
177 dd4b1106 Iustin Pop
            </listitem>
178 dd4b1106 Iustin Pop
          </varlistentry>
179 dd4b1106 Iustin Pop
          <varlistentry>
180 f69dab6d Iustin Pop
            <term>drbd</term>
181 f69dab6d Iustin Pop
            <listitem>
182 f69dab6d Iustin Pop
              <para>
183 f69dab6d Iustin Pop
                Disk devices will be drbd (version 8.x) on top of lvm
184 bd028152 Iustin Pop
                volumes.
185 f69dab6d Iustin Pop
              </para>
186 f69dab6d Iustin Pop
            </listitem>
187 f69dab6d Iustin Pop
          </varlistentry>
188 dd4b1106 Iustin Pop
        </variablelist>
189 dd4b1106 Iustin Pop
      </para>
190 dd4b1106 Iustin Pop
191 dd4b1106 Iustin Pop
      <para>
192 a53a1b18 Michael Hanselmann
        The <option>--iallocator</option> option specifies the instance
193 a53a1b18 Michael Hanselmann
        allocator plugin to use. If you pass in this option the allocator will
194 a53a1b18 Michael Hanselmann
        select nodes for this instance automatically, so you don't need to pass
195 a53a1b18 Michael Hanselmann
        them with the <option>-n</option> option. For more information please
196 a53a1b18 Michael Hanselmann
        refer to the instance allocator documentation.
197 a53a1b18 Michael Hanselmann
      </para>
198 a53a1b18 Michael Hanselmann
199 a53a1b18 Michael Hanselmann
      <para>
200 a53a1b18 Michael Hanselmann
        The optional second value of the <option>--node</option> is used for
201 a53a1b18 Michael Hanselmann
        the remote raid template type and specifies the remote node.
202 c234fe4c Guido Trotter
      </para>
203 c234fe4c Guido Trotter
204 c234fe4c Guido Trotter
      <para>
205 017778ac Guido Trotter
        If you do not want gnt-backup to wait for the disk mirror
206 dd4b1106 Iustin Pop
        to be synced, use the <option>--no-wait-for-sync</option>
207 dd4b1106 Iustin Pop
        option.
208 dd4b1106 Iustin Pop
      </para>
209 dd4b1106 Iustin Pop
210 dd4b1106 Iustin Pop
      <para>
211 dd4b1106 Iustin Pop
        Example:
212 dd4b1106 Iustin Pop
        <screen>
213 dd4b1106 Iustin Pop
# gnt-backup import -t plain -s 30 -m 512 -n node1.example.com \
214 dd4b1106 Iustin Pop
> --src-node=node2.example.com \
215 dd4b1106 Iustin Pop
> --src-dir=/srv/ganeti/exports/instance3.example.com \
216 dd4b1106 Iustin Pop
> instance3.example.com
217 dd4b1106 Iustin Pop
        </screen>
218 dd4b1106 Iustin Pop
      </para>
219 dd4b1106 Iustin Pop
220 dd4b1106 Iustin Pop
    </refsect2>
221 dd4b1106 Iustin Pop
222 dd4b1106 Iustin Pop
    <refsect2>
223 dd4b1106 Iustin Pop
      <title>LIST</title>
224 dd4b1106 Iustin Pop
225 dd4b1106 Iustin Pop
      <cmdsynopsis>
226 dd4b1106 Iustin Pop
        <command>list</command>
227 59885275 Guido Trotter
        <arg>--node=<replaceable>NODE</replaceable></arg>
228 dd4b1106 Iustin Pop
      </cmdsynopsis>
229 dd4b1106 Iustin Pop
230 dd4b1106 Iustin Pop
      <para>
231 f69dab6d Iustin Pop
        Lists the exports currently available in the default directory
232 f69dab6d Iustin Pop
        in all the nodes of the current cluster, or optionally only a
233 59885275 Guido Trotter
        subset of them specified using the <option>--node</option>
234 59885275 Guido Trotter
        option (which can be used multiple times)
235 dd4b1106 Iustin Pop
      </para>
236 dd4b1106 Iustin Pop
237 f69dab6d Iustin Pop
      <para>
238 f69dab6d Iustin Pop
      Example:
239 f69dab6d Iustin Pop
<screen>
240 f69dab6d Iustin Pop
# gnt-backup list --nodes node1 --nodes node2
241 f69dab6d Iustin Pop
</screen>
242 dd4b1106 Iustin Pop
    </refsect2>
243 dd4b1106 Iustin Pop
244 dd4b1106 Iustin Pop
  </refsect1>
245 dd4b1106 Iustin Pop
246 dd4b1106 Iustin Pop
  &footer;
247 dd4b1106 Iustin Pop
248 dd4b1106 Iustin Pop
</refentry>
249 dd4b1106 Iustin Pop
250 dd4b1106 Iustin Pop
<!-- Keep this comment at the end of the file
251 dd4b1106 Iustin Pop
Local variables:
252 dd4b1106 Iustin Pop
mode: sgml
253 dd4b1106 Iustin Pop
sgml-omittag:t
254 dd4b1106 Iustin Pop
sgml-shorttag:t
255 dd4b1106 Iustin Pop
sgml-minimize-attributes:nil
256 dd4b1106 Iustin Pop
sgml-always-quote-attributes:t
257 dd4b1106 Iustin Pop
sgml-indent-step:2
258 dd4b1106 Iustin Pop
sgml-indent-data:t
259 dd4b1106 Iustin Pop
sgml-parent-document:nil
260 dd4b1106 Iustin Pop
sgml-default-dtd-file:nil
261 dd4b1106 Iustin Pop
sgml-exposed-tags:nil
262 dd4b1106 Iustin Pop
sgml-local-catalogs:nil
263 dd4b1106 Iustin Pop
sgml-local-ecat-files:nil
264 dd4b1106 Iustin Pop
End:
265 dd4b1106 Iustin Pop
-->