Statistics
| Branch: | Tag: | Revision:

root / man / gnt-backup.sgml @ 59885275

History | View | Annotate | Download (7.8 kB)

1
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
2

    
3
  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
4
  <!-- Please adjust the date whenever revising the manpage. -->
5
  <!ENTITY dhdate      "<date>Jul 6, 2007</date>">
6
  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
7
       allowed: see man(7), man(1). -->
8
  <!ENTITY dhsection   "<manvolnum>8</manvolnum>">
9
  <!ENTITY dhucpackage "<refentrytitle>gnt-backup</refentrytitle>">
10
  <!ENTITY dhpackage   "gnt-backup">
11

    
12
  <!ENTITY debian      "<productname>Debian</productname>">
13
  <!ENTITY gnu         "<acronym>GNU</acronym>">
14
  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
15
  <!ENTITY footer SYSTEM "footer.sgml">
16
]>
17

    
18
<refentry>
19
  <refentryinfo>
20
    <copyright>
21
      <year>2007</year>
22
      <holder>Google Inc.</holder>
23
    </copyright>
24
    &dhdate;
25
  </refentryinfo>
26
  <refmeta>
27
    &dhucpackage;
28

    
29
    &dhsection;
30
    <refmiscinfo>ganeti 1.2</refmiscinfo>
31
  </refmeta>
32
  <refnamediv>
33
    <refname>&dhpackage;</refname>
34

    
35
    <refpurpose>ganeti instance import/export</refpurpose>
36
  </refnamediv>
37
  <refsynopsisdiv>
38
    <cmdsynopsis>
39
      <command>&dhpackage; </command>
40

    
41
      <arg choice="req">command</arg>
42
      <arg>arguments...</arg>
43
    </cmdsynopsis>
44
  </refsynopsisdiv>
45
  <refsect1>
46
    <title>DESCRIPTION</title>
47

    
48
    <para>
49
      The <command>&dhpackage;</command> is used for importing and exporting
50
      instances and their configuration from a ganeti system. It is useful for
51
      backing instances up and also to migrate them between clusters.
52
    </para>
53

    
54
  </refsect1>
55
  <refsect1>
56
    <title>COMMANDS</title>
57

    
58
    <refsect2>
59
      <title>EXPORT</title>
60

    
61
      <cmdsynopsis>
62
        <command>export</command>
63
        <arg choice="req">-n <replaceable>node</replaceable></arg>
64
        <arg>--noshutdown</arg>
65
        <arg choice="req"><replaceable>instance</replaceable></arg>
66
      </cmdsynopsis>
67

    
68
      <para>
69
        Exports an instance to the target node. All the instance data
70
        and its configuration will be exported under the
71
        /srv/ganeti/exports/<replaceable>instance</replaceable>
72
        directory on the target node.
73
      </para>
74

    
75
      <para>
76
        The <option>--noshutdown</option> option will create a
77
        snapshot disk of the instance without shutting it down first.
78
        While this is faster and involves no downtime, it cannot be
79
        guaranteed that the instance data will be in a consistent state
80
        in the exported dump.
81
      </para>
82

    
83
      <para>
84
        Example:
85
        <screen>
86
# gnt-backup export -n node1.example.com instance3.example.com
87
        </screen>
88
      </para>
89
    </refsect2>
90

    
91
    <refsect2>
92
      <title>IMPORT</title>
93
      <cmdsynopsis>
94
        <command>import</command>
95
        <arg choice="req">-n <replaceable>node<optional>:secondary-node</optional></replaceable></arg>
96
        <arg>-s <replaceable>disksize</replaceable></arg>
97
        <arg>-o <replaceable>os-type</replaceable></arg>
98
        <arg>-m <replaceable>memsize</replaceable></arg>
99
        <arg>-b <replaceable>bridge</replaceable></arg>
100
        <sbr>
101
        <arg choice="req">-t<group>
102
            <arg>diskless</arg>
103
            <arg>plain</arg>
104
            <arg>local_raid1</arg>
105
            <arg>remote_raid1</arg>
106
            <arg>drbd</arg>
107
          </group>
108
        </arg>
109
        <sbr>
110
        <arg choice="req">--src-node=<replaceable>source-node</replaceable></arg>
111
        <arg choice="req">--src-dir=<replaceable>source-dir</replaceable></arg>
112
        <arg choice="req"><replaceable>instance</replaceable></arg>
113
      </cmdsynopsis>
114
      <para>
115
        Imports a new instance from an export residing on
116
        <replaceable>source-node</replaceable> in
117
        <replaceable>source-dir</replaceable>.
118
        <replaceable>instance</replaceable> must be in DNS and
119
        resolve to a IP in the same network as the nodes in the
120
        cluster.
121
      </para>
122

    
123
      <para>
124
        The <option>-s</option> option specifies the disk size for
125
        the instance, in gibibytes (defaults to 20 GiB).
126
      </para>
127

    
128
      <para>
129
        The <option>-o</option> options specifies the operating
130
        system to be installed. The available operating systems can
131
        be listed with <command>gnt-os list</command>.
132
      </para>
133

    
134
      <para>
135
        The <option>-m</option> option specifies the memory size for
136
        the instance, in mebibytes (defaults to 128 MiB).
137
      </para>
138

    
139
      <para>
140
        The <option>-b</option> option specifies the bridge to which the
141
        instance will be connected. (defaults to the cluster-wide default
142
        bridge specified at cluster intialization time).
143
      </para>
144

    
145
      <para>
146
        The <option>-t</option> options specifies the disk layout type for
147
        the instance. The available choices are:
148
        <variablelist>
149
          <varlistentry>
150
            <term>diskless</term>
151
            <listitem>
152
              <para>
153
                This creates an instance with no disks. Its useful for
154
                testing only (or other special cases).
155
              </para>
156
            </listitem>
157
          </varlistentry>
158
          <varlistentry>
159
            <term>plain</term>
160
            <listitem>
161
              <para>Disk devices will be logical volumes.</para>
162
            </listitem>
163
          </varlistentry>
164
          <varlistentry>
165
            <term>local_raid1</term>
166
            <listitem>
167
              <para>
168
                Disk devices will be md raid1 arrays over two local
169
                logical volumes.
170
              </para>
171
            </listitem>
172
          </varlistentry>
173
          <varlistentry>
174
            <term>remote_raid1</term>
175
            <listitem>
176
              <para>
177
                Disk devices will be md raid1 arrays with one
178
                component (so it's not actually raid1): a drbd (0.7.x)
179
                device between the instance's primary node and the
180
                node given by the second value of the
181
                <option>--node</option> option.
182
              </para>
183
            </listitem>
184
          </varlistentry>
185
          <varlistentry>
186
            <term>drbd</term>
187
            <listitem>
188
              <para>
189
                Disk devices will be drbd (version 8.x) on top of lvm
190
                volumes. They are equivalent in functionality to
191
                <replaceable>remote_raid1</replaceable>, but are
192
                recommended for new instances (if you have drbd 8.x
193
                installed).
194
              </para>
195
            </listitem>
196
          </varlistentry>
197
        </variablelist>
198
      </para>
199

    
200
      <para>
201
        If you do not want gnt-backup to wait for the disk mirror
202
        to be synced, use the <option>--no-wait-for-sync</option>
203
        option.
204
      </para>
205

    
206
      <para>
207
        Example:
208
        <screen>
209
# gnt-backup import -t plain -s 30 -m 512 -n node1.example.com \
210
> --src-node=node2.example.com \
211
> --src-dir=/srv/ganeti/exports/instance3.example.com \
212
> instance3.example.com
213
        </screen>
214
      </para>
215

    
216
    </refsect2>
217

    
218
    <refsect2>
219
      <title>LIST</title>
220

    
221
      <cmdsynopsis>
222
        <command>list</command>
223
        <arg>--node=<replaceable>NODE</replaceable></arg>
224
      </cmdsynopsis>
225

    
226
      <para>
227
        Lists the exports currently available in the default directory
228
        in all the nodes of the current cluster, or optionally only a
229
        subset of them specified using the <option>--node</option>
230
        option (which can be used multiple times)
231
      </para>
232

    
233
      <para>
234
      Example:
235
<screen>
236
# gnt-backup list --nodes node1 --nodes node2
237
</screen>
238
    </refsect2>
239

    
240
  </refsect1>
241

    
242
  &footer;
243

    
244
</refentry>
245

    
246
<!-- Keep this comment at the end of the file
247
Local variables:
248
mode: sgml
249
sgml-omittag:t
250
sgml-shorttag:t
251
sgml-minimize-attributes:nil
252
sgml-always-quote-attributes:t
253
sgml-indent-step:2
254
sgml-indent-data:t
255
sgml-parent-document:nil
256
sgml-default-dtd-file:nil
257
sgml-exposed-tags:nil
258
sgml-local-catalogs:nil
259
sgml-local-ecat-files:nil
260
End:
261
-->