]> git.proxmox.com Git - mirror_lxc.git/blame - doc/ja/lxc-clone.sgml.in
doc: Add the rename option to lxc-clone(1)
[mirror_lxc.git] / doc / ja / lxc-clone.sgml.in
CommitLineData
57da8c32
KY
1<!--
2
3lxc: linux Container library
4
5(C) Copyright IBM Corp. 2007, 2008
6
7Authors:
8Daniel Lezcano <daniel.lezcano at free.fr>
9Serge Hallyn <serge.hallyn at ubuntu.com>
10
11This library is free software; you can redistribute it and/or
12modify it under the terms of the GNU Lesser General Public
13License as published by the Free Software Foundation; either
14version 2.1 of the License, or (at your option) any later version.
15
16This library is distributed in the hope that it will be useful,
17but WITHOUT ANY WARRANTY; without even the implied warranty of
18MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19Lesser General Public License for more details.
20
21You should have received a copy of the GNU Lesser General Public
22License along with this library; if not, write to the Free Software
a5ba9671 23Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
57da8c32 24
8900b9eb 25Translated into Japanese
57da8c32
KY
26by KATOH Yasufumi <karma at jazz.email.ne.jp>
27
28-->
29
faefa7f8 30<!DOCTYPE refentry PUBLIC @docdtd@ [
57da8c32
KY
31
32<!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
33<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
34]>
35
36<refentry>
37
38 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
39
40 <refmeta>
41 <refentrytitle>lxc-clone</refentrytitle>
42 <manvolnum>1</manvolnum>
43 </refmeta>
44
45 <refnamediv>
46 <refname>lxc-clone</refname>
47
48 <refpurpose>
49 <!--
50 clone a new container from an existing one.
51 -->
6127da6b 52 既存のコンテナからの新しいコンテナのクローン
57da8c32
KY
53 </refpurpose>
54 </refnamediv>
55
56 <refsynopsisdiv>
57 <cmdsynopsis>
58 <command>lxc-clone</command>
a5ba9671
KY
59 <arg choice="opt">-s </arg>
60 <arg choice="opt">-K </arg>
61 <arg choice="opt">-M </arg>
62 <arg choice="opt">-H </arg>
63 <arg choice="opt">-B <replaceable>backingstore</replaceable></arg>
64 <arg choice="opt">-L <replaceable>fssize</replaceable></arg>
65 <arg choice="opt">-p <replaceable>lxcpath</replaceable></arg>
66 <arg choice="opt">-P <replaceable>newlxcpath</replaceable></arg>
585f3c6b 67 <arg choice="opt">-R </arg>
57da8c32
KY
68 <arg choice="req">-o <replaceable>orig</replaceable></arg>
69 <arg choice="req">-n <replaceable>new</replaceable></arg>
a5ba9671
KY
70 <arg choice="opt">-- hook arguments</arg>
71 </cmdsynopsis>
72 <cmdsynopsis>
73 <command>lxc-clone</command>
57da8c32 74 <arg choice="opt">-s </arg>
a5ba9671
KY
75 <arg choice="opt">-K </arg>
76 <arg choice="opt">-M </arg>
77 <arg choice="opt">-H </arg>
78 <arg choice="opt">-B <replaceable>backingstore</replaceable></arg>
57da8c32 79 <arg choice="opt">-L <replaceable>fssize</replaceable></arg>
a5ba9671
KY
80 <arg choice="opt">-p <replaceable>lxcpath</replaceable></arg>
81 <arg choice="opt">-P <replaceable>newlxcpath</replaceable></arg>
585f3c6b 82 <arg choice="opt">-R </arg>
a5ba9671
KY
83 <arg choice="req">orig</arg>
84 <arg choice="req">new</arg>
85 <arg choice="opt">-- hook arguments</arg>
57da8c32
KY
86 </cmdsynopsis>
87 </refsynopsisdiv>
88
89 <refsect1>
90 <title><!-- Description -->説明</title>
91
92 <para>
93 <!--
a5ba9671
KY
94 <command>lxc-clone</command> Creates a new container as a clone of an existing
95 container. Two types of clones are supported: copy and snapshot. A copy
96 clone copies the root filessytem from the original container to the new. A
97 snapshot filesystem uses the backing store's snapshot functionality to create
98 a very small copy-on-write snapshot of the original container. Snapshot
99 clones require the new container backing store to support snapshotting. Currently
48e49f08 100 this includes only aufs, btrfs, lvm, overlayfs and zfs. LVM devices do not support
99282c42 101 snapshots of snapshots.
57da8c32 102 -->
dc421f3a
KY
103 <command>lxc-clone</command> は、新しいコンテナを既に存在するコンテナのクローンとして作製します。
104 クローンは 2 つのタイプをサポートします: コピーとスナップショットです。
105 コピータイプのクローンは元のコンテナから新しいコンテナへ root ファイルシステムをコピーします。
106 スナップショットファイルシステムは、バッキングストアのスナップショット機能を使い、元のコンテナの非常に小さな copy-on-write でのスナップショットを作製します。
107 スナップショットでのクローンは、新しいコンテナのバッキングストアとしてスナップショット機能のサポートが必要になります。
108 現時点では、このようなバッキングストアとしては aufs, btrfs, lvm, overlayfs, zfs のみをサポートします。
109 LVM デバイスはスナップショットのスナップショットはサポートしていません。
a5ba9671
KY
110 </para>
111
112 <para>
113 <!--
114 The backing store of the new container will be the same type as the
e8ea3116
KY
115 original container, with one exception, overlay containers.
116 aufs and overlayfs snapshots can be created of directory backed
117 containers. This can be requested by using (for overlayfs) the
118 <replaceable>-B overlayfs</replaceable> arguments.
a5ba9671 119 -->
dc421f3a
KY
120 新しいコンテナのバッキングストアは、オーバーレイタイプのコンテナを除いては元のコンテナのタイプと同じになります。
121 ディレクトリバックエンドのコンテナのスナップショットを aufs もしくは overlayfs で作成することは可能です。
122 例えば、overlayfs の場合は <replaceable>-B overlayfs</replaceable> という引数を使って指定することが可能です。
a5ba9671
KY
123 </para>
124
125 <para>
126 <!--
127 The names of the original and new container can be given (in that order)
128 after all options, or can be specified with the
129 <replaceable>-o</replaceable> and <replaceable>-n</replaceable> options,
130 respectively.
131 -->
dc421f3a 132 元のコンテナと新しいコンテナの名前は、全てのオプションの後に順番に与えることも、<replaceable>-o</replaceable> と <replaceable>-n</replaceable> オプションを使ってそれぞれ指定することも可能です。
57da8c32
KY
133 </para>
134
135 </refsect1>
136
137 <refsect1>
138
139 <title><!-- Options -->オプション</title>
140
141 <variablelist>
142
143 <varlistentry>
144 <term>
a5ba9671 145 <option>-s, --snapshot</option>
57da8c32
KY
146 </term>
147 <listitem>
148 <para>
149 <!--
65f8fdda
KY
150 The new container's rootfs will be a snapshot of the original. This option can be specified when the backing store is LVM, btrfs or zfs, and must be specified when you want to snapshot using aufs or overlayfs.
151 -->
152 新しいコンテナの rootfs はオリジナルのスナップショットとなります。
153 このオプションはバッキングストアが LVM か btrfs か zfs の時に使用できます。
154 また、スナップショットを aufs か overlayfs で取得したい場合は指定する必要があります。
57da8c32
KY
155 </para>
156 </listitem>
157 </varlistentry>
158
159 <varlistentry>
160 <term>
a5ba9671 161 <option>-K, --keepname</option>
57da8c32
KY
162 </term>
163 <listitem>
164 <para>
165 <!--
a5ba9671
KY
166 Do not change the hostname of the container (in the root
167 filesystem).
57da8c32 168 -->
dc421f3a 169 (root ファイルシステム内では) コンテナのホスト名を変更しません。
57da8c32
KY
170 </para>
171 </listitem>
172 </varlistentry>
173
174 <varlistentry>
175 <term>
a5ba9671
KY
176 <option>-M, --keepmac</option>
177 </term>
178 <listitem>
179 <para>
180 <!--
99282c42 181 Use the same MAC address as the original container, rather than
a5ba9671
KY
182 generating a new random one.
183 -->
dc421f3a 184 新しい MAC アドレスをランダムに生成せずに、元のコンテナと同じ MAC アドレスを使用します。
a5ba9671
KY
185 </para>
186 </listitem>
187 </varlistentry>
188
189 <varlistentry>
190 <term>
191 <option>-H, --copyhooks</option>
57da8c32
KY
192 </term>
193 <listitem>
194 <para>
195 <!--
a5ba9671
KY
196 Copy all mount hooks into the new container's directory, and
197 update any lxcpaths and container names as needed.
57da8c32 198 -->
dc421f3a
KY
199 全てのマウントフックを新しいコンテナのディレクトリにコピーします。
200 そして、lxcpath とコンテナ名を必要に応じて更新します。
57da8c32
KY
201 </para>
202 </listitem>
203 </varlistentry>
204
205 <varlistentry>
206 <term>
207 <option>-L, --fssize <replaceable>fssize</replaceable></option>
208 </term>
209 <listitem>
210 <para>
211 <!--
a5ba9671 212 In the case of a block device backed container, a size for the new
57da8c32
KY
213 block device. By default, the new device will be made the
214 same size as the original.
215 -->
dc421f3a
KY
216 ブロックデバイスのバックエンドのコンテナの場合、新しいブロックデバイスのサイズ。
217 デフォルトでは、新しいデバイスは元のデバイスと同じサイズとなります。
a5ba9671
KY
218 </para>
219 </listitem>
220 </varlistentry>
221
222 <varlistentry>
223 <term>
63e6a3de 224 <option>-p, --lxcpath <replaceable>lxcpath</replaceable></option>
a5ba9671
KY
225 </term>
226 <listitem>
227 <para>
228 <!--
229 The lxcpath of the original container. By default, the system
230 wide configured lxcpath will be used.
231 -->
dc421f3a 232 オリジナルのコンテナの lxcpath。デフォルトでは、システム全体で設定された lxcpath が使われます。
57da8c32
KY
233 </para>
234 </listitem>
235 </varlistentry>
236
237 <varlistentry>
238 <term>
63e6a3de 239 <option>-P, --newpath <replaceable>newlxcpath</replaceable></option>
57da8c32
KY
240 </term>
241 <listitem>
242 <para>
243 <!--
a5ba9671
KY
244 The lxcpath for the new container. By default the same lxcpath
245 as the original will be used. Note that with btrfs snapshots,
246 changing lxcpaths may not be possible, as subvolume snapshots
247 must be in the same btrfs filesystem.
57da8c32 248 -->
dc421f3a
KY
249 新しいコンテナの lxcpath。
250 デフォルトでは、オリジナルの lxcpath と同じものが使われます。
251 btrfs のスナップショットの場合は注意が必要で、lxcpath の変更はできない可能性があります。
252 これは subvolume のスナップショットが、同じ btrfs ファイルシステム上に存在しなければならないからです。
57da8c32
KY
253 </para>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry>
258 <term>
63e6a3de 259 <option>-B, --backingstore <replaceable>backingstore</replaceable></option>
57da8c32
KY
260 </term>
261 <listitem>
262 <para>
263 <!--
a5ba9671
KY
264 Select a different backing store for the new container. By
265 default the same as the original container's is used. Note that
266 currently changing the backingstore is only supported for
48e49f08
KY
267 aufs and overlayfs snapshots of directory backed containers. Valid
268 backing stores include dir (directory), aufs, btrfs, lvm, zfs, loop
a5ba9671 269 and overlayfs.
57da8c32 270 -->
dc421f3a
KY
271 新しいコンテナで元のコンテナと違うバッキングストアを使う場合のバッキングストアを選択します。
272 デフォルトでは元のコンテナと同じものが使われます。
273 現時点では、バッキングストアの変更は、ディレクトリバックエンドのコンテナに対する aufs と overlayfs のスナップショットに対してのみサポートされます。
274 有効なバッキングストアは dir(directory), aufs, btrfs, lvm, zfs, loop, overlayfs です。
57da8c32
KY
275 </para>
276 </listitem>
277 </varlistentry>
278
585f3c6b
KY
279 <varlistentry>
280 <term>
281 <option>-R, --rename</option>
282 </term>
283 <listitem>
284 <para>
285 <!--
286 Rename an existing container.
287 <replaceable>orig</replaceable> is renamed <replaceable>new</replaceable>.
288 -->
289 コンテナの名前を変更します。<replaceable>orig</replaceable> を <replaceable>new</replaceable> という名前に変更します。
290 </para>
291 </listitem>
292 </varlistentry>
293
57da8c32
KY
294 <varlistentry>
295 <term>
a5ba9671 296 <option>-o, --orig <replaceable>orig</replaceable></option>
57da8c32
KY
297 </term>
298 <listitem>
299 <para>
300 <!--
a5ba9671 301 The name of the original container to clone.
57da8c32 302 -->
dc421f3a 303 クローンしたい元のコンテナの名前。
57da8c32
KY
304 </para>
305 </listitem>
306 </varlistentry>
307
a5ba9671
KY
308 <varlistentry>
309 <term>
310 <option>-n, --new <replaceable>new</replaceable></option>
311 </term>
312 <listitem>
313 <para>
314 <!--
315 The name of the new container to create.
316 -->
dc421f3a 317 作製する新しいコンテナの名前。
a5ba9671
KY
318 </para>
319 </listitem>
320 </varlistentry>
321
322
57da8c32
KY
323 </variablelist>
324
325 </refsect1>
326
a5ba9671
KY
327 <refsect1>
328 <title>Clone hook</title>
329 <para>
330 <!--
331 If the container being cloned has one or more <filename>lxc.hook.clone</filename>
332 specified, then the specified hooks will be called for the new container. The
333 first 3 arguments passed to the clone hook will be the container name, a section
334 ('lxc'), and the hook type ('clone'). Extra arguments passed
335 <command>lxc-clone</command> will be passed to the hook program starting at
336 argument 4. The <filename>LXC_ROOTFS_MOUNT</filename> environment variable gives
337 the path under which the container's root filesystem is mounted. The
338 configuration file pathname is stored in <filename>LXC_CONFIG_FILE</filename>, the
339 new container name in <filename>LXC_NAME</filename>, the old container name in
340 <filename>LXC_SRC_NAME</filename>, and the path or device on which
341 the rootfs is located is in <filename>LXC_ROOTFS_PATH</filename>.
342 -->
dc421f3a
KY
343 クローンされるコンテナに 1 つ以上の <filename>lxc.hook.clone</filename> の指定が存在する場合、指定されたフックは新しいコンテナに対して呼ばれます。
344 クローンフックに渡される最初の 3 つの引数は、コンテナ名、セクション ('lxc')、フックタイプ ('clone') となります。
345 <command>lxc-clone</command> に渡される追加の引数は、フックプログラムに渡される引数の 4 番目以降となります。
346 <filename>LXC_ROOTFS_MOUNT</filename> 環境変数には、コンテナの root ファイルシステムがマウントされるパスが与えられます。
347 設定ファイルのパス名は <filename>LXC_CONFIG_FILE</filename> に、新しいコンテナ名は <filename>LXC_NAME</filename>、古いコンテナ名は <filename>LXC_SRC_NAME</filename> に、rootfs のあるパスまたはデバイスは <filename>LXC_ROOTFS_PATH</filename> に保存されます。
a5ba9671
KY
348 </para>
349 </refsect1>
350
57da8c32
KY
351 &seealso;
352
353 <refsect1>
354 <title><!-- Author -->作者</title>
355 <para>Serge Hallyn <email>serge.hallyn@ubuntu.com</email></para>
356 </refsect1>
357
358</refentry>
359
360<!-- Keep this comment at the end of the file
361Local variables:
362mode: sgml
363sgml-omittag:t
364sgml-shorttag:t
365sgml-minimize-attributes:nil
366sgml-always-quote-attributes:t
367sgml-indent-step:2
368sgml-indent-data:t
369sgml-parent-document:nil
370sgml-default-dtd-file:nil
371sgml-exposed-tags:nil
372sgml-local-catalogs:nil
373sgml-local-ecat-files:nil
374End:
375-->