7712 mandoc -Tlint does always exit with error code 0
[unleashed.git] / usr / src / cmd / lvm / metassist / sysfiles / volume-request.dtd
blobf4b3f9e68f6f940ee797975f5d050ec7c9c2ef6f
1 <?xml version="1.0" encoding="utf-8" ?>
3 <!--
4 CDDL HEADER START
6 The contents of this file are subject to the terms of the
7 Common Development and Distribution License, Version 1.0 only
8 (the "License"). You may not use this file except in compliance
9 with the License.
11 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
12 or http://www.opensolaris.org/os/licensing.
13 See the License for the specific language governing permissions
14 and limitations under the License.
16 When distributing Covered Code, include this CDDL HEADER in each
17 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
18 If applicable, add the following below this CDDL HEADER, with the
19 fields enclosed by brackets "[]" replaced with your own identifying
20 information: Portions Copyright [yyyy] [name of copyright owner]
22 CDDL HEADER END
24 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
25 * Use is subject to license terms.
27 * ident "%Z%%M% %I% %E% SMI"
29 * Describes the request for a new volume configuration used by
30 * metassist(1M).
32 * See volume-request(4) for a detailed description of the syntax.
33 -->
34 <!ELEMENT volume-request (diskset,(available|unavailable)*,hsp?,(concat|stripe|mirror|volume)*)>
36 <!--
37 *****************************************************************
39 * Disk set definition
41 *****************************************************************
42 -->
44 <!--
45 * The new or existing disk set to use. If the disk set does not
46 * exist, it will be created.
47 -->
48 <!ELEMENT diskset EMPTY>
49 <!ATTLIST diskset name CDATA #REQUIRED>
52 <!--
53 *****************************************************************
55 * Available devices definition
57 *****************************************************************
58 -->
60 <!--
61 * Specify a controller, target, disk, or slice that may be used in
62 * the construction of new SVM configuration.
64 * Disks specified herein should be:
66 * 1. part of the disk set named above
68 * or
70 * 2. unused and not belong to any disk set
72 * If a controller is specified, all slices on all disks on the
73 * controller which match the above criteria are considered
74 * available.
76 * If a target is specified, all slices on all disks on the target
77 * which match the above criteria are considered available.
79 * If no available devices are specified, all disks on the system
80 * which match the above criteria are considered available.
81 -->
82 <!ELEMENT available EMPTY>
83 <!ATTLIST available name CDATA #REQUIRED>
85 <!--
86 * Specify a controller, target, disk, or slice to exclude from the
87 * available pool.
88 -->
89 <!ELEMENT unavailable EMPTY>
90 <!ATTLIST unavailable name CDATA #REQUIRED>
93 <!--
94 *****************************************************************
96 * Hot spare pool definition
98 *****************************************************************
99 -->
101 <!--
102 * Specify a new or existing hot spare pool for submirrors defined
103 * in this request. If a HSP is required by this request, and no
104 * HSP is specified here, the first existing HSP in the above disk
105 * set will be used instead. If no HSPs exist, a new HSP will be
106 * created.
108 * Optionally specify disks that can be used/excluded if new hot
109 * spares must be created.
111 <!ELEMENT hsp ((available|unavailable)*)>
113 <!--
114 * The name to assign to this hot spare pool. If no name is
115 * specified, a name will be chosen automatically. No guarantees
116 * are made about the algorithm used, except that the resulting name
117 * will be one that is not currently in use.
119 <!ATTLIST hsp name CDATA #IMPLIED>
121 <!--
122 *****************************************************************
124 * Slice definition
126 *****************************************************************
129 <!ELEMENT slice EMPTY>
130 <!ATTLIST slice name CDATA #REQUIRED>
133 <!--
134 *****************************************************************
136 * Stripe definition
138 *****************************************************************
141 <!--
142 * the following line should work, but fails xmllint for some reason
144 * <!ELEMENT stripe (slice*|(available|unavailable)*)>
147 <!--
148 * Create a new top-level stripe either by specifying the underlying
149 * components (slices and soft partitions) or by specifying the
150 * required size and optional available/unavailable resources.
152 <!ELEMENT stripe ((available|unavailable)*,slice*)>
154 <!--
155 * The volume name to assign to this stripe. If no name is
156 * specified, a name will be chosen automatically. No guarantees
157 * are made about the algorithm used, except that the resulting name
158 * will be one that is not currently in use.
160 <!ATTLIST stripe name CDATA #IMPLIED>
162 <!--
163 * The size of this stripe, in the format <value><units>, where
164 * <units> is "KB", "MB", "GB", or "TB", and <value> is the
165 * multiplier of the units.
167 * This attribute is ignored if the underlying components are
168 * explicitly specified.
170 <!ATTLIST stripe size CDATA #IMPLIED>
172 <!--
173 * Specify the minimum and maximum number of components (slices and
174 * soft partitions) to use when constructing this stripe.
176 * The default value for mincomp is 4.
178 * The default value for maxcomp is 10.
180 * These attributes should not be specified if the underlying
181 * components are explicitly specified.
183 <!ATTLIST stripe mincomp CDATA #IMPLIED>
184 <!ATTLIST stripe maxcomp CDATA #IMPLIED>
186 <!--
187 * The interlace of this stripe, in the format <value><units>, where
188 * <units> is "BLOCKS", "KB", or "MB", and <value> is the multiplier
189 * of the units.
191 * The default value is 64KB.
193 <!ATTLIST stripe interlace CDATA #IMPLIED>
195 <!--
196 * Boolean (TRUE or FALSE) indicating whether to use a HSP.
198 * This is only relevant if this stripe is a submirror, i.e. it is
199 * defined within a <mirror> element. If not, this attribute is
200 * ignored.
202 * The default value is FALSE.
204 <!ATTLIST stripe usehsp (TRUE|FALSE) #IMPLIED>
207 <!--
208 *****************************************************************
210 * Concat definition
212 *****************************************************************
215 <!--
216 * the following line should work, but fails xmllint for some reason
218 * <!ELEMENT concat (slice+|(available|unavailable)*)>
221 <!--
222 * Create a new concat either by specifying the underlying slices
223 * and soft partitions or by specifying the required size and
224 * optional available/unavailable resources.
226 <!ELEMENT concat ((available|unavailable)*,slice*)>
228 <!--
229 * The volume name to assign to this concat. If no name is
230 * specified, a name will be chosen automatically. No guarantees
231 * are made about the algorithm used, except that the resulting name
232 * will be one that is not currently in use.
234 <!ATTLIST concat name CDATA #IMPLIED>
236 <!--
237 * The size of this concat, in the format <value><units>, where
238 * <units> is "KB", "MB", "GB", or "TB", and <value> is the
239 * multiplier of the units.
241 * This attribute is ignored if the underlying slices/soft
242 * partitions are explicitly specified.
244 <!ATTLIST concat size CDATA #IMPLIED>
246 <!--
247 * Boolean (TRUE or FALSE) indicating whether to use a HSP.
249 * This is only relevant if this concat is a submirror, i.e. it is
250 * defined within a <mirror> element. If not, this attribute is
251 * ignored.
253 * The default value is FALSE.
255 <!ATTLIST concat usehsp (TRUE|FALSE) #IMPLIED>
258 <!--
259 *****************************************************************
261 * Mirror definition
263 *****************************************************************
266 <!--
267 * Create a new mirror either by specifying the underlying
268 * submirrors or by specifying the required size and optional
269 * available/unavailable resources.
271 <!ELEMENT mirror ((available|unavailable)*,(stripe|concat)*)>
273 <!--
274 * The volume name to assign to this mirror. If no name is
275 * specified, a name will be chosen automatically. No guarantees
276 * are made about the algorithm used, except that the resulting name
277 * will be one that is not currently in use.
279 <!ATTLIST mirror name CDATA #IMPLIED>
281 <!--
282 * The number of submirrors under this mirror. If this number
283 * exceeds the number of explicitly specified submirrors, the
284 * remaining submirrors will be created from the available
285 * resources.
287 * The default value is 2.
289 <!ATTLIST mirror nsubmirrors CDATA #IMPLIED>
291 <!--
292 * The size of this mirror, in the format <value><units>, where
293 * <units> is "KB", "MB", "GB", or "TB", and <value> is the
294 * multiplier of the units.
296 * This attribute is required if no submirrors are defined.
298 <!ATTLIST mirror size CDATA #IMPLIED>
300 <!--
301 * Specify values for common mirror options.
303 * The default values are described in the metainint(1M) man page.
305 <!ATTLIST mirror read (ROUNDROBIN|GEOMETRIC|FIRST) #IMPLIED>
306 <!ATTLIST mirror write (PARALLEL|SERIAL) #IMPLIED>
307 <!ATTLIST mirror passnum CDATA #IMPLIED>
309 <!--
310 * Boolean (TRUE or FALSE) indicating whether to use a HSP for each
311 * submirror. This can be overridden using the submirror's usehsp
312 * attribute.
314 * The default value is FALSE.
316 <!ATTLIST mirror usehsp (TRUE|FALSE) #IMPLIED>
320 <!--
321 *****************************************************************
323 * QoS volume definition
325 *****************************************************************
328 <!--
329 * Create a volume defined by Quality of Service attributes. The
330 * default is to create a non-redundant volume. In any case, high
331 * performance is attempted.
333 * Translates to a stripe (non-redundant) or mirror of stripes
334 * (redundant) for SVM.
336 <!ELEMENT volume ((available|unavailable)*)>
338 <!--
339 * The name to assign to this volume. If no name is specified, a
340 * name will be chosen automatically. No guarantees are made about
341 * the algorithm used, except that the resulting name will be one
342 * that is not currently in use.
344 <!ATTLIST volume name CDATA #IMPLIED>
346 <!--
347 * The size of this mirror, in the format <value><units>, where
348 * <units> is "KB", "MB", "GB", or "TB", and <value> is the
349 * multiplier of the units.
351 * This attribute is required if no submirrors are defined.
353 <!ATTLIST volume size CDATA #REQUIRED>
355 <!--
356 * Specify the redundancy level (0-4) of the data.
358 * If redundancy is 0, a stripe will be created.
360 * If redundancy is > 0, a mirror with this number of submirrors
361 * will be created. In this case, the volume can suffer a disk
362 * failure on <n-1> copies without data loss. With the use of HSPs
363 * (see the "faultrecovery" attribute), a volume can suffer a disk
364 * failure on <n+hsps-1> volumes without data loss, assuming non-
365 * concurrent failures.
367 * The default value is 0.
369 <!ATTLIST volume redundancy CDATA #IMPLIED>
371 <!--
372 * Boolean (TRUE or FALSE) indicating whether to include fault
373 * recovery.
375 * If this attribute is TRUE, a mirror will be created and its
376 * submirror(s) will be associated with a HSP.
378 * The default value is FALSE.
380 <!ATTLIST volume faultrecovery (TRUE|FALSE) #IMPLIED>
382 <!--
383 * Number of data paths through which to ensure the volume is
384 * reachable.
386 * The default value is 1.
388 <!ATTLIST volume datapaths CDATA #IMPLIED>