This file is indexed.

/usr/share/doc/HOWTO/ja-html/Root-RAID-HOWTO-6.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
 <TITLE>Root RAID HOWTO cookbook: RAID $B%U%!%$%k%7%9%F%`$N9=C[(B</TITLE>
 <LINK HREF="Root-RAID-HOWTO-7.html" REL=next>
 <LINK HREF="Root-RAID-HOWTO-5.html" REL=previous>
 <LINK HREF="Root-RAID-HOWTO.html#toc6" REL=contents>
</HEAD>
<BODY>
<A HREF="Root-RAID-HOWTO-7.html">$B<!$N%Z!<%8(B</A>
<A HREF="Root-RAID-HOWTO-5.html">$BA0$N%Z!<%8(B</A>
<A HREF="Root-RAID-HOWTO.html#toc6">$BL\<!$X(B</A>
<HR>
<H2><A NAME="s6">6.</A> <A HREF="Root-RAID-HOWTO.html#toc6">RAID $B%U%!%$%k%7%9%F%`$N9=C[(B</A></H2>

<P>$B$3$N5-=R$O!$%7%9%F%`;EMM$G=R$Y$?I.<T$N(B RAID1 $B%7%9%F%`$K4X$7$F$N$b$N$G(B
$B$9!%$"$J$?$N%7%9%F%`$,0[$J$k(B RAID $B$N%"!<%-%F%/%A%c$r:NMQ$7$F$$$k>l9g$O!$(B
$BE,59=$@5$7$F$/$@$5$$!%>\$7$/$O(B raidtools-0.42 $B$KIUB0$7$F$$$k%*%s%i%$%s(B
$B%^%K%e%"%k$+!$(BQuickStart.RAID $B$r;2>H$7$F$/$@$5$$!%(B</P>
<H2><A NAME="raid5configuration"></A> <A NAME="ss6.1">6.1</A> <A HREF="Root-RAID-HOWTO.html#toc6.1">/etc/raid5.conf </A>
</H2>

<P>
<PRE>
        # raid-5 configuration
        raiddev                 /dev/md0
        raid-level              5
        nr-raid-disks           4
        chunk-size              32

        # Parity placement algorithm
        parity-algorithm        left-symmetric

        # Spare disks for hot reconstruction
        #nr-spare-disks         0

        device                  /dev/sda3
        raid-disk               0

        device                  /dev/sdb3
        raid-disk               1

        device                  /dev/sdc3
        raid-disk               2

        device                  /dev/sdd3
        raid-disk               3
</PRE>
</P>
<H2><A NAME="raid1configuration"></A> <A NAME="ss6.2">6.2</A> <A HREF="Root-RAID-HOWTO.html#toc6.2">/etc/raid1.conf </A>
</H2>

<P>
<PRE>
        # raid-1 configuration
        raiddev                 /dev/md0
        raid-level              1
        nr-raid-disks           2
        nr-spare-disks          0

        device                  /dev/hda4
        raid-disk               0

        device                  /dev/hdc4
        raid-disk               1
</PRE>
</P>
<H2><A NAME="ss6.3">6.3</A> <A HREF="Root-RAID-HOWTO.html#toc6.3">$B;E;vMQ(B RAID $B%U%!%$%k%7%9%F%`$r9=C[$9$k$?$a$N6qBNE*<j=g(B</A>
</H2>

<P>$BI.<T$N(B RAID5 $B%7%9%F%`$G$O!$0J2<$N$b$N$r%$%s%9%H!<%k$7$F$$$^$9!%(B
<PRE>
        Slackware-3.4           $B$I$N%G%#%9%H%j%S%e!<%7%g%s$G$bBg>fIW$G$7$g$&(B
        linuxthreads-0.71
        raidtools-0.42
        linux-2.0.33 $B$K(B raid145 $B%Q%C%A$H(B Gadi $B;a$N%Q%C%A$rEv$F$?$b$N(B
</PRE>
</P>

<P>RAID $B%G%P%$%9$r:n@.!$%U%)!<%^%C%H$7$^$9!%(B
<PRE>
        mkraid /etc/raid5.conf
        mdcreate raid5 /dev/md0 /dev/sda3 /dev/sdb3 /dev/sdc3 /dev/sdd3
        mdadd -ar
        mke2fs /dev/md0
        mkdir /md
        mount -t ext2 /dev/md0 /md
</PRE>

reboot $B$,;H$&;2>H%U%!%$%k$r:n@.$7$^$9!%$3$l$OFI<T$N%7%9%F%`$G$O0[$J$k(B
$B$+$b$7$l$^$;$s!%(B
<PRE>
        cat /proc/mdstat | grep md0 > /dosa/raidboot/raidgood.ref
        cat /proc/mdstat | grep md0 > /dosb/raidboot/raidgood.ref
</PRE>

Slackware-3.4 $B$^$?$OJL$N%Q%C%1!<%8$rMQ$$$F!$(BOS $B$r%$%s%9%H!<%k$7$^$9!%(B
<PRE>
        setup
</PRE>

$B%$%s%9%H!<%k@h$K$O(B `/md' $B$r!$%$%s%9%H!<%k85$K$OFI<T$,IaCJ;H$C$F$$$k$b(B
$B$N$r;XDj$7$^$9!%%+!<%M%k$r=|$/I,MW$J%G%#%9%/%;%C%H$rA*Br!$%$%s%9%H!<%k(B
$B$7$^$9!%(B(Slackware $B$N>l9g(B)$B%7%9%F%`@_Dj(B(Configure)$B$r<B9T$7$^$9$,!$(Blilo 
$B$H%+!<%M%k$N5/F0$N9`L\$OHt$P$7$^$9!%:G8e$K(B setup $B%3%^%s%I$r=*N;$7$^$9!%(B</P>
<P>`pthreads' $B$r%$%s%9%H!<%k$7$^$9!%(B
<PRE>
        cd /usr/src/linuxthreads-0.71
</PRE>

Makefile $B$rJT=8$7!$4D6-JQ?t$r;XDj$7$^$9!%(B
<PRE>
        BUILDIR=/md

        make
        make install
</PRE>

`raidtools' $B$r%$%s%9%H!<%k$7$^$9!%(B
<PRE>
        cd /usr/src/raidtools-0.42
        configure --sbindir=/md/sbin --prefix=/md/usr
</PRE>

raidtools $B$N(B `make install' $B$GH/@8$9$k%(%i!<$r=$@5$7$^$9!%(B
<PRE>
        cd /md/sbin
        rm mdrun
        rm mdstop
        ln -s mdadd mdrun
        ln -s mdadd mdstop
</PRE>

/dev/mdx $B$r:n$j$^$9!%(B
<PRE>
        cp -a /dev/md* /md/dev
</PRE>

$B8=:_$N%7%9%F%`$+$i%7%9%F%`@_Dj$rDI2C$7$^$9(B($B%(%i!<$OL5;k$7$^$9(B)$B!%(B
<PRE>
        cp -dp /etc/* mnt/etc
        cp -dp /etc/rc.d/* mnt/etc/rc.d         ($B?7$7$$(B rc.6 $B$r4^$`(B)
        mkdir  mnt/lib/modules
        cp -a  /lib/modules/2.x.x mnt/lib/modules &lt;&mdash; $B8=:_;H$C$F$$$k%+!<%M%k(B 2.x.x $B$N%P!<%8%g%s(B
</PRE>

$B0J2<$N%U%!%$%k$rJT=8$7!$FI<T$N%U%!%$%k%7%9%F%`$K9g$o$;$F=$@5$7$^$9!%(B
<PRE>
        cd /md

$BHs%M%C%H%o!<%/4X78(B
        etc/fstab       $B<B:]$N%k!<%H%U%!%$%k%7%9%F%`$H(B RAID $B%G%P%$%9MQ$K=$@5$7$^$9(B
        etc/mdtab       $B$&$^$/F0:n$9$k$O$:$G$9(B
$B%M%C%H%o!<%/4X78(B
        etc/hosts
        etc/resolv.conf 
        etc/hosts.equiv         $B5Z$S4XO"%U%!%$%k(B
        etc/rc.d/rc.inet1       IP $B%"%I%l%9!$%M%C%H%^%9%/!$%2!<%H%&%'%$Ey(B
        etc/rc.d/rc.S           $B%U%!%$%k%7%9%F%`$N%9%F!<%?%9$K$D$$$F$NItJ,$rA4$F:o=|(B
                        # Test to see if the root partition isread-only
                $B$NItJ,$+$i(B
                        # remove /etc/mtab* so that mount will .....
                $B$^$G$r4^$^$J$$$h$&$K$7$^$9!%$3$l$K$h$j!$(BRAM $B%G%#%9%/$,(B
                $BFI$_=q$-2DG=$G%^%&%s%H$5$l$k$H=P$k$&$k$5$$%&%)!<%K%s%0(B
                $B$,=P$J$/$J$j$^$9!%(B
        etc/rc.d/rc.xxxxx       $BI,MW$J$i$PB>$N%U%!%$%k$b(B
        root/.rhosts            $B$b$7B8:_$9$l$P(B
        home/xxxx/xxxx          $BI,MW$J$i$PB>$N%U%!%$%k$b(B

    $B7Y9p(B:       $B$3$NA`:n$G!$%Q%9%o!<%I$H%7%c%I%&%Q%9%o!<%I$N%U%!%$%k$b(B
                $B?7$7$$%U%!%$%k%7%9%F%`$K0\$5$l$^$9!*$3$l$O%;%-%e%j%F%#(B
                $B$NE@$+$i$O!$K>$^$7$/$J$$$+$b$7$l$^$;$s!%(B
</PRE>

$B%7%9%F%`>e$G0l0U$G$"$k$3$H$,I,MW$J(B /dev/disk... $B$r%^%&%s%H$9$k$?$a$N<-(B
$B=q$r:n@.$7$^$9!%I.<T$N>l9g$O0J2<$N$h$&$K$J$j$^$7$?!%(B
<PRE>
        cd /md          &lt;&mdash; $B?7$7$$%U%!%$%k%7%9%F%`$N%k!<%H(B
        mkdir dosa                      DOS$B%Q!<%F%#%7%g%s$N%^%&%s%H%]%$%s%H(B

        mkdir dosb                      DOS $B%_%i!<%Q!<%F%#%7%g%s$N%^%&%s%H%]%$%s%H(B
</PRE>

$B?7$7$$%U%!%$%k%7%9%F%`$O40@.$G$9!%(Bmd $B$N;2>H%9%F!<%?%9$r(B `$B<B:]$N(B'$B%k!<%H(B
$B%G%P%$%9$K3NG'!&J]B8$9$l$P!$5/F0$N=`Hw$O=*$o$j$G$9!%(B</P>
<P>DOS $B%Q!<%F%#%7%g%s$r(B dosa, dosb $B$K%^%&%s%H$7$^$9!%(B
<PRE>
        cat /proc/mdstat | grep md0 > /dosa/raidboot/raidgood.ref
        cat /proc/mdstat | grep md0 > /dosb/raidboot/raidgood.ref

        mdstop /dev/md0
</PRE>
</P>

<HR>
<A HREF="Root-RAID-HOWTO-7.html">$B<!$N%Z!<%8(B</A>
<A HREF="Root-RAID-HOWTO-5.html">$BA0$N%Z!<%8(B</A>
<A HREF="Root-RAID-HOWTO.html#toc6">$BL\<!$X(B</A>
</BODY>
</HTML>