This file is indexed.

/usr/share/doc/HOWTO/ja-html/LVM-HOWTO-3.html is in doc-linux-ja-html 2006.05.25-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
 <TITLE>Logical Volume Manager HOWTO: $B4pK\E*$J86B'(B</TITLE>
 <LINK HREF="LVM-HOWTO-4.html" REL=next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$5$l$^$9!#(B

  +------[ $B%\%j%e!<%`!&%0%k!<%W(B ]---------+
  |  +--[PV]--------+  +--[PV]---------+  | 
  |  | PE | PE | PE |  | PE | PE | PE  |  |
  |  +--------------+  +---------------+  |
  +---------------------------------------+ 

$B$b$C$H9-$2$F$_$k$H!"$3$&$J$j$^$9!#(B

  +------[ $B%\%j%e!<%`!&%0%k!<%W(B ]---------+
  |  +--[PV]--------+  +--[PV]---------+  |
  |  | PE | PE | PE |  | PE | PE | PE  |  |
  |  +--+---+---+---+  +-+----+----+---+  |
  |     |   |   | +-----/     |    |      |
  |     |   |   | |           |    |      |
  |   +-+---+---+-+      +----+----+--+   |
  |   | $BO@M}(B      |      | $BO@M}(B       |   |
  |   | $B%\%j%e!<%`(B|      | $B%\%j%e!<%`(B |   |
  |   |           |      |            |   |
  |   |  /home    |      |    /var    |   |
  |   +-----------+      +------------+   |
  +---------------------------------------+
</PRE>
</P>
<P>$B$3$N?^$G$O!"(B2 $B$D$N%U%!%$%k%7%9%F%`$,$"$j!"(B2 $B$D$N%G%#%9%/$K$^$?$,$C$F$$$^$9!#(B
/home $B%U%!%$%k%7%9%F%`$O(B 4 $B$D!"(B/var $B$O(B 2 $B$D$NJ*M}%(%/%9%F%s%H$+$i9=@.$5$l$F(B
$B$$$^$9!#(B</P>
<P>bert hubert $B;a$O(B LVM $B$r$h$j;k3PE*$KI=<($9$k(B 
<A HREF="http://ds9a.nl/lvm-viewer">$B%D!<%k(B</A> $B$r:n@.$7$F$$$^$9!#(B
<A HREF="http://ds9a.nl/lvm-howto/screenshot.gif">$B%9%/%j!<%s%7%g%C%H(B</A> 
$B$,8+$i$l$^$9!#;d$N(B ASCII $BJ8;zAO:nIJ$h$j8+1I$($,$7$^$9!#(B</P>

<H2><A NAME="ss3.1">3.1</A> <A HREF="LVM-HOWTO.html#toc3.1">$B<BNc$r8+$J$,$i$N2r@b(B</A>
</H2>

<P>$B$=$&$J$s$G$9!#(BLVM $B$O$H$F$bF,$NCf$G>C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63 sectors, 623 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1             1         2     16033+  83  Linux
/dev/hda2             3       600   4803435   83  Linux
/dev/hda3           601       607     56227+  83  Linux
/dev/hda4           608       614     56227+  83  Linux

Command (m for help): t
Partition number (1-4): 3
Hex code (type L to list codes): 8e

Command (m for help): p

Disk /dev/hda: 255 heads, 63 sectors, 623 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1             1         2     16033+  83  Linux
/dev/hda2             3       600   4803435   83  Linux
/dev/hda3           601       607     56227+  8e  Unknown
/dev/hda4           608       614     56227+  83  Linux

Command (m for help): w
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>/dev/hdb2 $B$KBP$7$F$bF1MM$JA`:n$r$7$F$_$^$9$,!"$3$3$G$O$=$N7k2L$rI=<($7$^$;$s!#(B
$B$3$NA`:n$O!"9=@.$r<:$C$?>l9g$K(B LVM $B$r:F9=C[$9$k$N$KI,MW$G$9!#(B</P>
<P>$BI,$:$7$bA4$F$N%3%s%T%e!<%?$G$O$"$j$^$;$s$,!"$3$3$G%j%V!<%H$,I,MW$K$J$k>l9g(B
$B$b$"$j$^$9!#<!$NNc$,$&$^$/$$$+$J$$$h$&$J$i!"%j%V!<%H$7$F$_$F$/$@$5$$!#(B</P>
<P>$B2<5-$N$h$&$K$9$l$P!"J*M}%\%j%e!<%`$,:n@.$G$-$^$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
# pvcreate  /dev/hda3
pvcreate -- physical volume "/dev/hda3" successfully created
# pvcreate  /dev/hdb2
pvcreate -- physical volume "/dev/hdb2" successfully created
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B$G$O!"(B2 $B$D$NJ*M}%\%j%e!<%`$r!V(Btest$B!W$H$$$&%\%j%e!<%`!&%0%k!<%W$KDI2C$7$F(B
$B$_$^$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
# vgcreate test /dev/hdb2 /dev/hda3
vgcreate -- INFO: using default physical extent size 4 MB
vgcreate -- INFO: maximum logical volume size is 255.99 Gigabyte
vgcreate -- doing automatic backup of volume group "test"
vgcreate -- volume group "test" successfully created and activated
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B$3$l$GL$;HMQ$N%\%j%e!<%`!&%0%k!<%W$,(B 1 $B$D$G$-$"$,$j$^$7$?!#$A$g$C$HD4$Y$F(B
$B$_$^$7$g$&!#(B</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
# vgdisplay -v test
--- Volume group ---
VG Name               test
VG Access             read/write
VG Status             available/resizable
VG #                  0
MAX LV                256
Cur LV                0
Open LV               0
MAX LV Size           255.99 GB
Max PV                256
Cur PV                2
Act PV                2
VG Size               184 MB
PE Size               4 MB
Total PE              46
Alloc PE / Size       0 / 0
Free  PE / Size       46 / 184 MB

--- No logical volumes defined in test ---


--- Physical volumes ---
PV Name (#)           /dev/hda3 (2)
PV Status             available / allocatable
Total PE / Free PE    13 / 13

PV Name (#)           /dev/hdb2 (1)
PV Status             available / allocatable
Total PE / Free PE    33 / 33
</PRE>
</CODE></BLOCKQUOTE>

$B>pJs$,$:$i$:$iJB$s$G$$$^$9$,!":#$N$H$3$m$OBgItJ,$rM}2r$G$-$J$$$O$:$G$9!#(B
$B$^$@O@M}%\%j%e!<%`$rDj5A$7$F$$$^$;$s$+$i!"$3$l$r=$@5$9$kI,MW$,$"$j$^$9!#(B
50 MB $B$N!V(BHOWTO$B!W$H$$$&%\%j%e!<%`$r!V(Btest$B!W%\%j%e!<%`!&%0%k!<%W$K:n$C$F$_(B
$B$^$9!#(B</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
# lvcreate -L 50M -n HOWTO test 
lvcreate -- rounding up size to physical extent boundary "52 MB"
lvcreate -- doing automatic backup of "test"
lvcreate -- logical volume "/dev/test/HOWTO" successfully created
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B$3$l$G!"$"$H>/$7$H$$$&$H$3$m$^$G$-$^$7$?$N$G!"<!$O%U%!%$%k%7%9%F%`$r:n@.(B
$B$7$^$7$g$&!#(B</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
# mke2fs /dev/test/HOWTO 
mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
13328 inodes, 53248 blocks
2662 blocks (5.00%) reserved for the super user
First data block=1
7 block groups
8192 blocks per group, 8192 fragments per group
1904 inodes per group
Superblock backups stored on blocks: 
        8193, 24577, 40961

Writing inode tables: done                            
Writing superblocks and filesystem accounting information: done
# mount /dev/test/HOWTO /mnt
# ls /mnt
lost+found
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B$3$l$G40N;$G$9!*(B $B:n@.$7$?%\%j%e!<%`!&%0%k!<%W$r8+D>$7$F$_$^$7$g$&!#$b$&(B
$B$3$l$G%\%j%e!<%`!&%0%k!<%W$r%G!<%?$GKd$a$D$/$;$k$h$&$K$J$C$F$$$k$O$:$G$9(B
$B$+$i!#(B</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
# vgdisplay test -v
--- Volume group ---
VG Name               test
VG Access             read/write
VG Status             available/resizable
VG #                  0
MAX LV                256
Cur LV                1
Open LV               1
MAX LV Size           255.99 GB
Max PV                256
Cur PV                2
Act PV                2
VG Size               184 MB
PE Size               4 MB
Total PE              46
Alloc PE / Size       13 / 52 MB
Free  PE / Size       33 / 132 MB

--- Logical volume ---
LV Name               /dev/test/HOWTO
VG Name               test
LV Write Access       read/write
LV Status             available
LV #                  1
# open                1
LV Size               52 MB
Current LE            13
Allocated LE          13
Allocation            next free
Read ahead sectors    120
Block device          58:0


--- Physical volumes ---
PV Name (#)           /dev/hda3 (2)
PV Status             available / allocatable
Total PE / Free PE    13 / 13

PV Name (#)           /dev/hdb2 (1)
PV Status             available / allocatable
Total PE / Free PE    33 / 20
</PRE>
</CODE></BLOCKQUOTE>
</P>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