xref: /titanic_41/usr/src/cmd/lvm/metassist/sysfiles/volume-config.dtd (revision 70025d765b044c6d8594bb965a2247a61e991a99)
1<?xml version="1.0" encoding="utf-8" ?>
2
3<!--
4    CDDL HEADER START
5
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.
10
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.
15
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]
21
22    CDDL HEADER END
23
24   * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
25   * Use is subject to license terms.
26   *
27   * ident	"%Z%%M%	%I%	%E% SMI"
28   *
29   * Describes a storage configuration used by metassist(1M).
30   *
31   * See volume-config(4) for a detailed description of the syntax.
32   -->
33<!ELEMENT volume-config (diskset,disk*,slice*,hsp*,(concat|stripe)*,mirror*)>
34
35<!-- The existing disk set to use -->
36<!ELEMENT diskset EMPTY>
37<!ATTLIST diskset name CDATA #REQUIRED>
38
39<!--
40   *****************************************************************
41   *
42   * Disk definition
43   *
44   *****************************************************************
45   -->
46
47<!-- Describes a disk that should be added to the disk set -->
48<!ELEMENT disk EMPTY>
49
50<!-- The full name of the disk -->
51<!ATTLIST disk name CDATA #REQUIRED>
52
53<!--
54   *****************************************************************
55   *
56   * Slice/soft partition definitions
57   *
58   *****************************************************************
59   -->
60
61<!--
62   * Describes a newly-defined or existing slice.
63   *
64   * If existing, only the name is required.
65   *
66   * If newly-defined, the start sector and size are also required.
67   -->
68<!ELEMENT slice EMPTY>
69
70<!-- The full name of the slice -->
71<!ATTLIST slice name CDATA #REQUIRED>
72
73<!-- The starting sector for this slice -->
74<!ATTLIST slice startsector CDATA #IMPLIED>
75
76<!--
77   * The size of this slice in blocks or sectors.
78   -->
79<!ATTLIST slice sizeinblocks CDATA #IMPLIED>
80
81
82<!--
83   *****************************************************************
84   *
85   * HSP definition
86   *
87   *****************************************************************
88   -->
89
90<!--
91   * Describes a new or existing HSP
92   *
93   * The slices defined within will be added to this HSP.
94   -->
95<!ELEMENT hsp (slice*)>
96<!ATTLIST hsp name CDATA #REQUIRED>
97
98
99<!--
100   *****************************************************************
101   *
102   * Concat definition
103   *
104   *****************************************************************
105   -->
106
107<!--
108   * Describes a new or existing concat
109   *
110   * If existing, only the name is required.
111   *
112   * If new, the underlying slices and soft partitions are also
113   * required.  The HSP definition is optional.
114   -->
115<!ELEMENT concat (slice*,hsp?)>
116<!ATTLIST concat name CDATA #REQUIRED>
117
118<!--
119   *****************************************************************
120   *
121   * Stripe definition
122   *
123   *****************************************************************
124   -->
125
126<!--
127   * Describes a new or existing stripe
128   *
129   * If existing, only the name is required.
130   *
131   * If new, the underlying slices and soft partitions are also
132   * required.  The interlace and HSP definitions are optional.
133   -->
134<!ELEMENT stripe (slice*,hsp?)>
135<!ATTLIST stripe name CDATA #REQUIRED>
136
137<!--
138   * The interlace of this stripe, in the format <value><units>,
139   * where <units> is "BLOCKS", "KB", or "MB", and <value> is the
140   * multiplier of the units.
141   -->
142<!ATTLIST stripe interlace CDATA #IMPLIED>
143
144
145<!--
146   *****************************************************************
147   *
148   * Mirror definition
149   *
150   *****************************************************************
151   -->
152
153<!--
154   * Describes a new mirror
155   *
156   * The name of the mirror, and the underlying submirrors are
157   * required.  The remaining attributes are optional.
158   -->
159<!ELEMENT mirror ((concat|stripe)+)>
160<!ATTLIST mirror name CDATA #REQUIRED>
161<!ATTLIST mirror read (ROUNDROBIN|GEOMETRIC|FIRST) #IMPLIED>
162<!ATTLIST mirror write (PARALLEL|SERIAL) #IMPLIED>
163<!ATTLIST mirror passnum CDATA #IMPLIED>
164