]> git.proxmox.com Git - mirror_lxc.git/blob - doc/ko/lxc-clone.sgml.in
Merge pull request #832 from stgraber/master
[mirror_lxc.git] / doc / ko / lxc-clone.sgml.in
1 <!--
2
3 lxc: linux Container library
4
5 (C) Copyright IBM Corp. 2007, 2008
6
7 Authors:
8 Daniel Lezcano <daniel.lezcano at free.fr>
9 Serge Hallyn <serge.hallyn at ubuntu.com>
10
11 This library is free software; you can redistribute it and/or
12 modify it under the terms of the GNU Lesser General Public
13 License as published by the Free Software Foundation; either
14 version 2.1 of the License, or (at your option) any later version.
15
16 This library is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Lesser General Public License for more details.
20
21 You should have received a copy of the GNU Lesser General Public
22 License along with this library; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24
25 Translated into Korean
26 by Sungbae Yoo <sungbae.yoo at samsung.com>
27
28 -->
29
30 <!DOCTYPE refentry PUBLIC @docdtd@ [
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 -->
52 존재하는 컨테이너를 새로운 컨테이너로 복제
53 </refpurpose>
54 </refnamediv>
55
56 <refsynopsisdiv>
57 <cmdsynopsis>
58 <command>lxc-clone</command>
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>
67 <arg choice="opt">-R </arg>
68 <arg choice="req">-o <replaceable>orig</replaceable></arg>
69 <arg choice="req">-n <replaceable>new</replaceable></arg>
70 <arg choice="opt">-- hook arguments</arg>
71 </cmdsynopsis>
72 <cmdsynopsis>
73 <command>lxc-clone</command>
74 <arg choice="opt">-s </arg>
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>
79 <arg choice="opt">-L <replaceable>fssize</replaceable></arg>
80 <arg choice="opt">-p <replaceable>lxcpath</replaceable></arg>
81 <arg choice="opt">-P <replaceable>newlxcpath</replaceable></arg>
82 <arg choice="opt">-R </arg>
83 <arg choice="req">orig</arg>
84 <arg choice="req">new</arg>
85 <arg choice="opt">-- hook arguments</arg>
86 </cmdsynopsis>
87 </refsynopsisdiv>
88
89 <refsect1>
90 <title><!-- Description -->설명</title>
91
92 <para>
93 <!--
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
100 this includes only aufs, btrfs, lvm, overlayfs and zfs. LVM devices do not support
101 snapshots of snapshots.
102 -->
103 <command>lxc-clone</command>는 존재하는 컨테이너를 복제하여 새로운 컨테이너를 생성한다. 복사, 스냅샷의 두가지 형태의 복제가 지원된다.
104 복사는 원본 컨테이너의 루트 파일시스템을 그대로 새 컨테이너로 복사한다..
105 스냅샷은 저장소의 스냅샷 기능을 이용하여 원본 컨테이너의 copy-on-write 형태로 매우 작은 스냅샷을 생성한다. 스냅샷을 사용하기 위해서는 새 컨테이너의 저장소가 스냅샷 기능을 지원하여야 한다. 현재 스냅샷 기능을 지원하는 것은 aufs, btrfs, lvm, overlayfs, zfs 정도이다. lvm은 스냅샷의 스냅샷은 지원하지 않는다.
106 </para>
107
108 <para>
109 <!--
110 The backing store of the new container will be the same type as the
111 original container, with one exception, overlay containers.
112 aufs and overlayfs snapshots can be created of directory backed
113 containers. This can be requested by using (for overlayfs) the
114 <replaceable>-B overlayfs</replaceable> arguments.
115 -->
116 오버레이 컨테이너들을 제외하면, 새 컨테이너의 저장소는 원본과 같은 종류를 사용한다.
117 aufs와 overlayfs의 스냅샷은 디렉토리로 구성된 컨테이너로 생성할 수 있다. overlayfs의 경우 <replaceable>-B overlayfs</replaceable> 인수를 통해 이를 지정할 수 있다.
118 </para>
119
120 <para>
121 <!--
122 The names of the original and new container can be given (in that order)
123 after all options, or can be specified with the
124 <replaceable>-o</replaceable> and <replaceable>-n</replaceable> options,
125 respectively.
126 -->
127 원본 컨테이너와 새 컨테이너의 이름은 모든 옵션 뒤에 원본, 새 컨테이너 순으로 지정할 수 있다. 또는 <replaceable>-o</replaceable>과 <replaceable>-n</replaceable> 옵션을 사용하여 지정할 수 있다.
128 </para>
129
130 </refsect1>
131
132 <refsect1>
133
134 <title><!-- Options -->옵션</title>
135
136 <variablelist>
137
138 <varlistentry>
139 <term>
140 <option>-s, --snapshot</option>
141 </term>
142 <listitem>
143 <para>
144 <!--
145 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.
146 -->
147 새로 생성하는 컨테이너의 루트 파일시스템은 원본의 스냅샷으로 한다. 이 옵션은 저장소가 lvm, btrfs, zfs 일때 지정할 수 있다. 또한 aufs나 overlayfs를 이용한 스냅샷을 원할때만 지정해야 한다.
148 </para>
149 </listitem>
150 </varlistentry>
151
152 <varlistentry>
153 <term>
154 <option>-K, --keepname</option>
155 </term>
156 <listitem>
157 <para>
158 <!--
159 Do not change the hostname of the container (in the root
160 filesystem).
161 -->
162 (루트 파일시스템에서) 컨테이너의 호스트 이름을 변경하지 않는다.
163 </para>
164 </listitem>
165 </varlistentry>
166
167 <varlistentry>
168 <term>
169 <option>-M, --keepmac</option>
170 </term>
171 <listitem>
172 <para>
173 <!--
174 Use the same MAC address as the original container, rather than
175 generating a new random one.
176 -->
177 새로 무작위한 주소를 만들지 않고, 원본과 같은 MAC 주소를 사용한다.
178 </para>
179 </listitem>
180 </varlistentry>
181
182 <varlistentry>
183 <term>
184 <option>-H, --copyhooks</option>
185 </term>
186 <listitem>
187 <para>
188 <!--
189 Copy all mount hooks into the new container's directory, and
190 update any lxcpaths and container names as needed.
191 -->
192 모든 마운트 훅들을 새 컨테이너의 디렉토리로 복사한다. 그리고 lxcpath와 컨테이너 이름을 필요에 따라 갱신한다.
193 </para>
194 </listitem>
195 </varlistentry>
196
197 <varlistentry>
198 <term>
199 <option>-L, --fssize <replaceable>fssize</replaceable></option>
200 </term>
201 <listitem>
202 <para>
203 <!--
204 In the case of a block device backed container, a size for the new
205 block device. By default, the new device will be made the
206 same size as the original.
207 -->
208 블록장치로 구성된 컨테이너의 경우, 새로운 블록 장치의 크기.
209 기본으로 새 디바이스는 원본과 같은 크기로 만들어진다.
210 </para>
211 </listitem>
212 </varlistentry>
213
214 <varlistentry>
215 <term>
216 <option>-p, --lxcpath <replaceable>lxcpath</replaceable></option>
217 </term>
218 <listitem>
219 <para>
220 <!--
221 The lxcpath of the original container. By default, the system
222 wide configured lxcpath will be used.
223 -->
224 원본 컨테이너의 lxcpath. 기본값은 시스템 전역으로 설정되어 잇는 lxcpath를 사용한다.
225 </para>
226 </listitem>
227 </varlistentry>
228
229 <varlistentry>
230 <term>
231 <option>-P, --newpath <replaceable>newlxcpath</replaceable></option>
232 </term>
233 <listitem>
234 <para>
235 <!--
236 The lxcpath for the new container. By default the same lxcpath
237 as the original will be used. Note that with btrfs snapshots,
238 changing lxcpaths may not be possible, as subvolume snapshots
239 must be in the same btrfs filesystem.
240 -->
241 새로 생성될 컨테이너의 lxcpath.
242 기본값은 원본 컨테이너의 lxcpath와 같다.
243 btrfs의 스냅샷의 경우 lxcpath 변경이 불가능 할 수 있음을 주의해야 한다. 왜냐하면 서브볼륨 스냅샷이 같은 btrfs 파일시스템 내에 있어야 하기 때문이다.
244 </para>
245 </listitem>
246 </varlistentry>
247
248 <varlistentry>
249 <term>
250 <option>-B, --backingstore <replaceable>backingstore</replaceable></option>
251 </term>
252 <listitem>
253 <para>
254 <!--
255 Select a different backing store for the new container. By
256 default the same as the original container's is used. Note that
257 currently changing the backingstore is only supported for
258 aufs and overlayfs snapshots of directory backed containers. Valid
259 backing stores include dir (directory), aufs, btrfs, lvm, zfs, loop
260 and overlayfs.
261 -->
262 새 컨테이너의 저장소를 선택한다.
263 기본 값은 원본 컨테이너가 쓰던 것과 같은 것으로 되어 있다.
264 현재 저장소를 다른 것으로 변경하는 것은 디렉토리로 구성된 컨테이너의 aufs와 overlayfs 스냅샷에서만 지원된다.
265 가능한 값은 dir(디렉토리), aufs, btrfs, lvm zfs, loop 그리고 ovelayfs 이다.
266 </para>
267 </listitem>
268 </varlistentry>
269
270 <varlistentry>
271 <term>
272 <option>-R, --rename</option>
273 </term>
274 <listitem>
275 <para>
276 <!--
277 Rename an existing container.
278 <replaceable>orig</replaceable> is renamed <replaceable>new</replaceable>.
279 -->
280 컨테이너의 이름을 변경한다. <replaceable>orig</replaceable>를 <replaceable>new</replaceable>로 이름을 바꾼다.
281 </para>
282 </listitem>
283 </varlistentry>
284
285 <varlistentry>
286 <term>
287
288 <option>-o, --orig <replaceable>orig</replaceable></option>
289 </term>
290 <listitem>
291 <para>
292 <!--
293 The name of the original container to clone.
294 -->
295 복제할 원본 컨테이너의 이름.
296 </para>
297 </listitem>
298 </varlistentry>
299
300 <varlistentry>
301 <term>
302 <option>-n, --new <replaceable>new</replaceable></option>
303 </term>
304 <listitem>
305 <para>
306 <!--
307 The name of the new container to create.
308 -->
309 생성할 새 컨테이너의 이름.
310 </para>
311 </listitem>
312 </varlistentry>
313
314
315 </variablelist>
316
317 </refsect1>
318
319 <refsect1>
320 <title>Clone hook</title>
321 <para>
322 <!--
323 If the container being cloned has one or more <filename>lxc.hook.clone</filename>
324 specified, then the specified hooks will be called for the new container. The
325 first 3 arguments passed to the clone hook will be the container name, a section
326 ('lxc'), and the hook type ('clone'). Extra arguments passed
327 <command>lxc-clone</command> will be passed to the hook program starting at
328 argument 4. The <filename>LXC_ROOTFS_MOUNT</filename> environment variable gives
329 the path under which the container's root filesystem is mounted. The
330 configuration file pathname is stored in <filename>LXC_CONFIG_FILE</filename>, the
331 new container name in <filename>LXC_NAME</filename>, the old container name in
332 <filename>LXC_SRC_NAME</filename>, and the path or device on which
333 the rootfs is located is in <filename>LXC_ROOTFS_PATH</filename>.
334 -->
335 만약 복제되는 컨테이너가 1개 이상의 <filename>lxc.hook.clone</filename>을 지정했다면, 지정된 훅은 새 컨테이너가 생성될 때 실행될 것이다.
336 먼저 컨테이너 이름, 섹션('lxc'), 훅 종류('clone') 3개의 인수가 복제 훅에 전달 된다. 그리고 4번째 인수 부터는 <command>lxc-clone</command>로 넘겨줄 수 있다.
337 <filename>LXC_ROOTFS_MOUNT</filename> 환경변수는 컨테이너의 루트 파일시스템이 마운트되어 있는 경로를 넘겨준다.
338 새 컨테이너의 이름은 <filename>LXC_NAME</filename> 변수에, 이전 컨테이너의 이름은 <filename>LXC_SRC_NAME</filename> 환경변수에 담겨 있다. 그리고 루트 파일시스템이 위치하고 있는 곳은 <filename>LXC_ROOTFS_PATH</filename>로 넘겨준다.
339 </para>
340 </refsect1>
341
342 &seealso;
343
344 <refsect1>
345 <title><!-- Author -->저자</title>
346 <para>Serge Hallyn <email>serge.hallyn@ubuntu.com</email></para>
347 </refsect1>
348
349 </refentry>
350
351 <!-- Keep this comment at the end of the file
352 Local variables:
353 mode: sgml
354 sgml-omittag:t
355 sgml-shorttag:t
356 sgml-minimize-attributes:nil
357 sgml-always-quote-attributes:t
358 sgml-indent-step:2
359 sgml-indent-data:t
360 sgml-parent-document:nil
361 sgml-default-dtd-file:nil
362 sgml-exposed-tags:nil
363 sgml-local-catalogs:nil
364 sgml-local-ecat-files:nil
365 End:
366 -->