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