/usr/share/doc/HOWTO/ja-html/The-Software-RAID-HOWTO-4.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 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>The Software-RAID HOWTO: RAID $B%;%C%H%"%C%W(B</TITLE>
<LINK HREF="The-Software-RAID-HOWTO-5.html" REL=next>
<LINK HREF="The-Software-RAID-HOWTO-3.html" REL=previous>
<LINK HREF="The-Software-RAID-HOWTO.html#toc4" REL=contents>
</HEAD>
<BODY>
<A HREF="The-Software-RAID-HOWTO-5.html">$B<!$N%Z!<%8(B</A>
<A HREF="The-Software-RAID-HOWTO-3.html">$BA0$N%Z!<%8(B</A>
<A HREF="The-Software-RAID-HOWTO.html#toc4">$BL\<!$X(B</A>
<HR>
<H2><A NAME="s4">4. RAID $B%;%C%H%"%C%W(B</A></H2>
<P>
<H2><A NAME="ss4.1">4.1 $B0lHLE*$J%;%C%H%"%C%W(B</A>
</H2>
<P>$B<!$N$b$N$O!"$I$N(B RAID $B%l%Y%k$G$bI,MW$H$9$k$b$N$G$9!](B
<UL>
<LI>$B%+!<%M%k!#0BDjHG$N(B 2.2.X $B$^$?$O:G?7$N(B 2.0.X. $B$,$$$$$G$7$g$&!#(B</LI>
<LI>RAID $B%Q%C%A!#:G6a$N%+!<%M%k$KMxMQ$G$-$k%Q%C%A$,!"BgDq$N>l9g$"$j$^$9!#(B</LI>
<LI>RAID tools</LI>
<LI>$BG&BQ!"%T%6!"$*5$$KF~$j$N%+%U%'%$%s0{NA(B</LI>
</UL>
<P>$B$3$l$iA4$F$N%=%U%H%&%'%"$O(B <CODE>ftp://ftp.fi.kernel.org/pub/linux</CODE> $B$G8+$D$1$i$l$^$9!#(BRAID tools $B$H%Q%C%A$O(B <CODE>daemons/raid/alpha</CODE> $B%5%V%G%#%l%/%H%j$K$"$j$^$9!#%+!<%M%k$O(B <CODE>kernel</CODE> $B%5%V%G%#%l%/%H%j$G8+$D$1$i$l$^$9!#(B
<P>$B%+!<%M%k$K%Q%C%A$rEv$F!";H$$$?$$%l%Y%k$N(B RAID $B%5%]!<%H$r4^$a$k$h$&$K9=@.$7$^$9!#$=$7$F%3%s%Q%$%k$7!"%$%s%9%H!<%k$r9T$J$$$^$9!#(B
<P>$B<!$K!"(BRAID tools $B$rE83+$7$F@_Dj$7!"%3%s%Q%$%k!"%$%s%9%H!<%k$r9T$J$$$^$9!#!JLuCm!'(Bconfigure, make, make install $B$@$1$G;d$N>l9g$O(B OK $B$G$7$?!K(B
<P>$B$3$N;~E@$G%j%V!<%H$9$k$H(B <CODE>/proc/mdstat</CODE> $B$H$$$&%U%!%$%k$,3NG'$G$-$k$O$:$G$9!#$=$N%U%!%$%k$O$"$J$?$N!V$*M'C#!W$@$H$$$&$3$H$r21$($F$*$$$F$/$@$5$$!#(B<CODE>cat </CODE><CODE>/proc/mdstat</CODE> $B$r<B9T$7$FFbMF$r3NG'$7$F$_$k$H!"EPO?$5$l$F$$$k(B RAID $B$NFC@-$,$o$+$j$^$9!JNc$($P(B RAID $B%b!<%I!K!#$^$@(B RAID $B%G%P%$%9$OB8:_$7$J$$$O$:$G$9!#(B
<P>RAID $B$K4^$a$?$$%Q!<%F%#%7%g%s$r$D$/$j$^$9!#(B
<P>$B$3$3$+$i@h$O%b!<%I$KFC2=$7$?FbMF$K$J$j$^$9!#(B
<P>
<P>
<H2><A NAME="ss4.2">4.2 $B%j%K%"%b!<%I(B</A>
</H2>
<P>$B$G$O!"$^$:>/$J$/$H$b(B 2 $B$D$N%Q!<%F%#%7%g%s$rMQ0U$7$^$9!#$=$l$>$l$OF1$8Bg$-$5$G$"$kI,MW$O$"$j$^$;$s!J$?$@!"$G$-$l$PF1$8$K!K!#$=$l$i$r$*8_$$$K$/$C$D$1$?$$$o$1$G$9!#(B
<P><CODE>/etc/raidtab</CODE> $B%U%!%$%k$r@_Dj$7$^$9!#;d$O(B raidtab $B$K%j%K%"%b!<%I$G(B 2 $BBf$N%G%#%9%/$GF0:n$5$;$k$?$a$N@_Dj$r9T$J$$$^$7$?!#FbMF$O0J2<$NDL$j$G$9!](B
<P>
<PRE>
raiddev /dev/md0
raid-level linear
nr-raid-disks 2
persistent-superblock 1
device /dev/sdb6
raid-disk 0
device /dev/sdc5
raid-disk 1
</PRE>
$BM=Hw%G%#%9%/$O$3$3$G$O%5%]!<%H$5$l$^$;$s!#%G%#%9%/$,;`$s$@$i!"%"%l%$$bF;O"$l$K$J$j$^$9!#M=Hw%G%#%9%/$KCV$/>pJs$O$"$j$^$;$s!#(B
<P>$B$G$O!"%"%l%$$r:n$j$^$7$g$&!#%3%^%s%I$rBG$A9~$_$^$9!#(B
<PRE>
mkraid /dev/md0
</PRE>
<P>$B$3$l$G%"%l%$$r=i4|2=$7$F(B persistent superblock $B$r=q$-!"%"%l%$$r;OF0$7$^$9!#(B
<P><CODE>/proc/mdstat</CODE> $B$r8+$F$/$@$5$$!#%"%l%$$,Av$C$F$$$kMM;R$,J,$+$j$^$9!#(B
<P>$B$3$l$G%U%!%$%k%7%9%F%`$r:n@.$9$k$3$H$,$G$-$^$9!#%^%&%s%H$d(B fstab $B$K5-=R$J$I!"B>$N%G%P%$%9$HF1MM$N;v$,$G$-$^$9!#(B
<P>
<P>
<H2><A NAME="ss4.3">4.3 RAID-0</A>
</H2>
<P>$B$[$\F1$8%5%$%:$N(B 2 $BBf0J>e$N%G%P%$%9$rMQ0U$7$^$9!#$=$l$i$NMFNL$N7k9g$d!"JBNs$K%"%/%;%9$9$k$3$H$K$h$C$F@-G=8~>e$b?^$k$o$1$G$9!#(B
<P><CODE>/etc/raidtab</CODE> $B%U%!%$%k$r@_Dj$7$^$9!#0J2<$O$=$N0lNc$G$9!](B
<PRE>
raiddev /dev/md0
raid-level 0
nr-raid-disks 2
persistent-superblock 1
chunk-size 4
device /dev/sdb6
raid-disk 0
device /dev/sdc5
raid-disk 1
</PRE>
$B%j%K%"%b!<%I$HF1MM$K!"M=Hw%G%#%9%/$O%5%]!<%H$5$l$^$;$s!#(BRAID-0 $B$K$O>iD9@-$,$J$$$N$G!"%G%#%9%/$,;`$L$H%"%l%$$bF;O"$l$K$J$j$^$9!#(B
<P>$B%"%l%$$r=i4|2=$9$k$?$a$K0J2<$N%3%^%s%I$rBG$A9~$_$^$9!#(B
<PRE>
mkraid /dev/md0
</PRE>
$B%9!<%Q!<%V%m%C%/$r=i4|2=$7!"(BRAID $B%G%P%$%9$r;OF0$9$k$o$1$G$9!#2?$,5/$3$C$F$$$k$N$+$O(B <CODE>/proc/mdstat</CODE> $B$r8+$F$/$@$5$$!#%G%P%$%9$,F0$$$F$$$k$3$H$,J,$+$k$O$:$G$9!#(B
<P>$B$3$l$G(B /dev/md0 $B$r%U%)!<%^%C%H$d%^%&%s%H!"$0$A$c$0$A$cMpMQ$9$k;v$b$G$-$k$h$&$K$J$j$^$7$?!#(B
<P>
<P>
<H2><A NAME="ss4.4">4.4 RAID-1</A>
</H2>
<P>$B$[$\F1$8%5%$%:$N(B 2 $BBf$N%G%P%$%9$rMQ0U$7$^$9!"$*8_$$$K%_%i!<$7$?$$$o$1$G$9!#$G$-$l$P$b$&(B 1 $BBf%G%P%$%9$rMQ0U$7$^$7$g$&!#$=$l$rBT5!MQ$NM=Hw%G%#%9%/$H$7$^$9!#M=Hw%G%#%9%/$O%"%/%F%#%V$J%G%P%$%9$,2u$l$?;~$K!"<+F0E*$K%_%i!<$rJd$C$F$/$l$^$9!#(B
<P><CODE>/etc/raidtab</CODE> $B%U%!%$%k$r@_Dj$7$^$9!](B
<PRE>
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
persistent-superblock 1
device /dev/sdb6
raid-disk 0
device /dev/sdc5
raid-disk 1
</PRE>
$BM=Hw%G%#%9%/$,$"$k>l9g!"<!$N$h$&$J;XDj$r9T$J$$%G%P%$%9$rDI2C$9$k$3$H$,$G$-$^$9!#(B
<PRE>
device /dev/sdd5
spare-disk 0
</PRE>
$B$3$N>l9g$O(B nr-spare-disks $B%(%s%H%j$r(B 1 $B$K@_Dj$9$k$N$rK:$l$J$$$h$&$K!#(B
<P>$B$5$F!"(BRAID $B$r=i4|2=$9$kMQ0U$,@0$$$^$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O$"$/$^$GM=A[$G$"$j!"<B:]$KAv$i$;$?$3$H$O$"$j$^$;$s!#(B
<P>3 $BBf0J>e$N$[$\F1$8%5%$%:$N%G%P%$%9$rMQ0U$7$^$9!#(B1 $B$D$@$1$,Ht$SH4$1$FB.$$$N$,$$$$$G$9$M!#$3$l$i$r7k9g$7$F(B 1 $B$D$NBg$-$J%G%P%$%9$H$7!">iD9@-$b;}$?$;$?$$$o$1$G$9!#(B
<P>/etc/raidtab $B%U%!%$%k$r@_Dj$7$^$9!](B
<PRE>
raiddev /dev/md0
raid-level 4
nr-raid-disks 4
nr-spare-disks 0
persistent-superblock 1
chunk-size 32
device /dev/sdb1
raid-disk 0
device /dev/sdc1
raid-disk 1
device /dev/sdd1
raid-disk 2
device /dev/sde1
raid-disk 3
</PRE>
$BM=Hw%G%#%9%/$,$"$l$PF1MM$KF~$l$F$/$@$5$$!#0J2<$N$h$&$K!](B
<PRE>
device /dev/sdf1
spare-disk 0
</PRE>
<P>$B$3$l$G%"%l%$$N=i4|2=$,$G$-$^$9!#$$$D$bDL$j!"<!$N%3%^%s%I$rBG$A9~$s$G$/$@$5$$!#(B
<PRE>
mkraid /dev/md0
</PRE>
<P>$B%G%P%$%9$r%U%)!<%^%C%H$9$kA0$K(B
<A HREF="#mke2fs">mke2fs $B$N$?$a$N%*%W%7%g%s(B</A> $B%;%/%7%g%s$r8+$F$/$@$5$$!#(B
<P>
<H2><A NAME="ss4.6">4.6 RAID-5</A>
</H2>
<P>3 $BBf0J>e$N$[$\F1$8%5%$%:$N%G%P%$%9$rMQ0U$7$^$9!#$3$l$i$r7k9g$7!">iD9@-$bJ;$;;}$C$?>uBV$G;H$&$o$1$G$9!#M=Hw%G%#%9%/$b$"$C$?J}$,$$$$$G$7$g$&!#$3$N%G%#%9%/$OB>$N%G%P%$%9$,8N>c$9$k$^$G$O;H$o$l$^$;$s!#(B
<P>N $BBf$N%G%P%$%9$r;H$&$H$7$F!":G$b>.$5$$$b$N$N%5%$%:$r(B S $B$H$9$k$H!"%"%l%$$N%5%$%:$O(B $B!J(BN - 1) * S $B$H$J$j$^$9!#$3$N!V<:$o$l$?!W%9%Z!<%9$,!"%Q%j%F%#!J>iD9@-!K>pJs$N$?$a$K;H$o$l$k$o$1$G$9!#$I$N%G%#%9%/$,8N>c$7$F$bA4$F$N%G!<%?$O40A4$J$^$^$G$9!#$7$+$7(B 2 $BBf$N%G%#%9%/$,8N>c$7$F$7$^$C$?$i!"A4$F$N%G!<%?$,>C<:$9$k$3$H$K$J$j$^$9!#(B
<P>/etc/raidtab $B%U%!%$%k$r@_Dj$7$^$9!](B
<PRE>
raiddev /dev/md0
raid-level 5
nr-raid-disks 7
nr-spare-disks 0
persistent-superblock 1
parity-algorithm left-symmetric
chunk-size 32
device /dev/sda3
raid-disk 0
device /dev/sdb1
raid-disk 1
device /dev/sdc1
raid-disk 2
device /dev/sdd1
raid-disk 3
device /dev/sde1
raid-disk 4
device /dev/sdf1
raid-disk 5
device /dev/sdg1
raid-disk 6
</PRE>
$BM=Hw%G%#%9%/$,$"$k>l9g$OF1MM$K!](B
<PRE>
device /dev/sdh1
spare-disk 0
</PRE>
$B$J$I$H$9$k$o$1$G$9!#(B
<P>chunk-size $B$N(B 32 KB $B$H$$$&CM$O!"$3$N%5%$%:$NIaDL$N%U%!%$%k%7%9%F%`$N$?$a$N%G%U%)%k%H$H$7$F$OE,@Z$JCM$G$7$g$&!#>e5-$N(B raidtab $B$G@_Dj$5$l$?%"%l%$$N%5%$%:$O(B 6 $B!_(B 6 GB = 36 GB $B$H$J$j$^$9!J$D$^$j(B (N - 1) * S = (7 - 1) * 6 = 36 $B$C$F$3$H$G$9!K!#%U%!%$%k%7%9%F%`$O(B ext2 $B$G%V%m%C%/!&%5%$%:$O(B 4 KB $B$H$7$^$7$?!#%U%!%$%k%7%9%F%`$,Hs>o$KBg$-$$$+!"Hs>o$KBg$-$$%U%!%$%k$r<}MF$9$k$J$i!"%"%l%$$N(B chunk-size $B$H%U%!%$%k%7%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4.7 The Persistent Superblock</A>
</H2>
<P>$B8E$-NI$-;~Be!V(BGood Old Days$B!W(B(TM)$B$G$O!"(Braidtools $B$O(B <CODE>/etc/raidtab</CODE> $B$rFI$_9~$s$G%"%l%$$r=i4|2=$7$F$$$^$7$?!#$7$+$7$3$l$O(B <CODE>/etc/raidtab</CODE> $B%U%!%$%k$,B8:_$9$k%U%!%$%k%7%9%F%`$,%^%&%s%H$5$l$F$$$k$3$H$,A0Ds$H$J$j$^$9!#(BRAID $B$+$i%V!<%H$7$?$$$J$I$H$$$&>l9g$O!"$3$l$O$h$m$7$/$J$$$G$7$g$&!#(B
<P>$B99$K(B RAID $B%G%P%$%9>e$N%U%!%$%k%7%9%F%`$r%^%&%s%H$9$k$H$-$N!"8E$$%"%W%m!<%A$O>/!9J#;($G$7$?!#DL>o$N$h$&$K(B <CODE>/etc/fstab</CODE> $B$K=q$$$F$*$1$PNI$$$N$G$O$J$/!"=i4|2=%9%/%j%W%H$G%^%&%s%H$7$J$1$l$P$J$i$J$+$C$?$N$G$9!#(B
<P>persistent superblock $B$O$3$l$i$NLdBj$r2r7h$7$F$/$l$^$9!#(B<CODE>/etc/raidtab</CODE> $BCf$N(B <CODE>persistent-superblock</CODE> $B%*%W%7%g%sIU$-$G%"%l%$$r=i4|2=$9$k$H!"FCJL$J%9!<%Q!<%V%m%C%/$,%"%l%$$K;22C$7$F$$$kA4$F$N%G%#%9%/$N@hF,ItJ,$K=q$-$3$^$l$^$9!#$3$l$K$h$j%+!<%M%k$O!"(BRAID$B%G%P%$%9$N9=@.$rD>@\%G%#%9%/$+$iFI$a$k$h$&$K$J$j$^$9!#IaDL$N9=@.%U%!%$%k$@$C$?$i$$$D$G$bFI$a$k$o$1$8$c$"$j$^$;$s!#(B
<P>$B$G$b(B <CODE>/etc/raidtab</CODE> $B%U%!%$%k$O$=$N$^$^$K$7$F$*$-$^$7$g$&!#8e$G%"%l%$$r:F9=C[$9$k:]$KI,MW$K$J$k$+$b$7$l$^$;$s!#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B!W$K$9$k!K$K%;%C%H$7$^$9!#(B</LI>
</OL>
<P>NOTE: $B%Q!<%F%#%7%g%s%?%$%W$rJQ$($kA0$K!"(BRAID $B$,F0$$$F$$$J$$$3$H$r3NG'$7$F$/$@$5$$!#%G%P%$%9$r;_$a$k$K$O(B <CODE>raidstop /dev/md0</CODE> $B$r;H$C$F$/$@$5$$!#(B
<P>$B>e5-(B 1, 2, 3 $B$r@_Dj$9$l$P<+F08!=P$N@_Dj$O=*$o$j$G$9!#%j%V!<%H$7$F$_$F$/$@$5$$!#%7%9%F%`$,N)$A>e$,$k$H$-!"(Bcat <CODE>/proc/mdstat</CODE> $B$G(B RAID $B$,Av$C$F$$$kMM;R$,$o$+$j$^$9!#(B
<P>$B%V!<%H$N4V!"$3$N$h$&$J46$8$N%a%C%;!<%8$,I=<($5$l$^$9!](B
<PRE>
Oct 22 00:51:59 malthe kernel: SCSI device sdg: hdwr sector= 512
bytes. Sectors= 12657717 [6180 MB] [6.2 GB]
Oct 22 00:51:59 malthe kernel: Partition check:
Oct 22 00:51:59 malthe kernel: sda: sda1 sda2 sda3 sda4
Oct 22 00:51:59 malthe kernel: sdb: sdb1 sdb2
Oct 22 00:51:59 malthe kernel: sdc: sdc1 sdc2
Oct 22 00:51:59 malthe kernel: sdd: sdd1 sdd2
Oct 22 00:51:59 malthe kernel: sde: sde1 sde2
Oct 22 00:51:59 malthe kernel: sdf: sdf1 sdf2
Oct 22 00:51:59 malthe kernel: sdg: sdg1 sdg2
Oct 22 00:51:59 malthe kernel: autodetecting RAID arrays
Oct 22 00:51:59 malthe kernel: (read) sdb1's sb offset: 6199872
Oct 22 00:51:59 malthe kernel: bind<sdb1,1>
Oct 22 00:51:59 malthe kernel: (read) sdc1's sb offset: 6199872
Oct 22 00:51:59 malthe kernel: bind<sdc1,2>
Oct 22 00:51:59 malthe kernel: (read) sdd1's sb offset: 6199872
Oct 22 00:51:59 malthe kernel: bind<sdd1,3>
Oct 22 00:51:59 malthe kernel: (read) sde1's sb offset: 6199872
Oct 22 00:51:59 malthe kernel: bind<sde1,4>
Oct 22 00:51:59 malthe kernel: (read) sdf1's sb offset: 6205376
Oct 22 00:51:59 malthe kernel: bind<sdf1,5>
Oct 22 00:51:59 malthe kernel: (read) sdg1's sb offset: 6205376
Oct 22 00:51:59 malthe kernel: bind<sdg1,6>
Oct 22 00:51:59 malthe kernel: autorunning md0
Oct 22 00:51:59 malthe kernel: running: <sdg1><sdf1><sde1><sdd1><sdc1><sdb1>
Oct 22 00:51:59 malthe kernel: now!
Oct 22 00:51:59 malthe kernel: md: md0: raid array is not clean --
starting background reconstruction
</PRE>
$B$3$l$O@5>o$K%7%c%C%H%@%&%s$5$l$J$+$C$?!JNc$($P%^%7%s$,%/%i%C%7%e$7$?!K(BRAID-5 $B%"%l%$$N<+F08!=P;~$K=PNO$5$l$?$b$N$G$9!#:F9=C[$O<+F0E*$K;O$^$j$^$9!#$3$N%G%P%$%9$r$3$N>uBV$N$^$^%^%&%s%H$7$F$b40A4$K0BA4$G$9!#$H$$$&$N$b:F9=C[$OF)2aE*$G!"A4$F$N%G!<%?$,0l4S(B (consistent) $B$7$F$$$k$+$i$G$9!J0l4S@-$,$J$$$N$O%Q%j%F%#>pJs$@$1$G$9$,!"%G%P%$%9$,8N>c$9$k$^$G$OI,MW$"$j$^$;$s!K!#(B
<P>$B<+F0;OF0$7$?%G%P%$%9$O%7%c%C%H%@%&%s;~$K$b<+F0Dd;_$7$^$9!#=i4|2=%9%/%j%W%H$K$D$$$F?4G[$9$kI,MW$O$"$j$^$;$s!#(B/dev/md $B%G%P%$%9$O(B /dev/sd $B$d(B /dev/hd $B%G%P%$%9$HF1$8$h$&$K;H$($^$9!#(B
<P>$B4JC1$G$9$M!#(B
<P>raidstart/raidstop $B%3%^%s%I$N;H$$J}$rCN$k$?$a$K=i4|2=%9%/%j%W%H$rGA$$$F$_$k$N$b$$$$$G$7$g$&!#$3$l$i$OI8=`E*$J(B RedHat $B$N=i4|2=%9%/%j%W%H$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