/usr/share/doc/HOWTO/ja-html/Root-RAID-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 | <!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: $B%k!<%H%G%#%l%/%H%j$r(B RAID $B$K$9$kJ}K!$N35@b(B</TITLE>
<LINK HREF="Root-RAID-HOWTO-4.html" REL=next>
<LINK HREF="Root-RAID-HOWTO-2.html" REL=previous>
<LINK HREF="Root-RAID-HOWTO.html#toc3" REL=contents>
</HEAD>
<BODY>
<A HREF="Root-RAID-HOWTO-4.html">$B<!$N%Z!<%8(B</A>
<A HREF="Root-RAID-HOWTO-2.html">$BA0$N%Z!<%8(B</A>
<A HREF="Root-RAID-HOWTO.html#toc3">$BL\<!$X(B</A>
<HR>
<H2><A NAME="s3">3.</A> <A HREF="Root-RAID-HOWTO.html#toc3">$B%k!<%H%G%#%l%/%H%j$r(B RAID $B$K$9$kJ}K!$N35@b(B</A></H2>
<P>$BI|5l%7%9%F%`$r;n$7$?$j!$9=C[$7$?$j!$%G%P%C%0$7$?$/$J$$>l9g$O!$(B
Slackware-3.4 $B$K4p$E$$$F:n$C$?0lHLE*$J%7%9%F%`$r0J2<$GF~<j$7$F$/$@$5$$!%(B
<BLOCKQUOTE>
<A HREF="ftp://ftp.bizsystems.com/pub/raid/">ftp.bizsystems.com/pub/raid/raidboot-0.01.tar.gz</A></BLOCKQUOTE>
$B$=$7$F!$<!$N<j=g$r<B9T$7$^$9!%(B
<UL>
<LI>$B;HMQ$9$k%G%#%9%/$N%5%]!<%H$rAH$_9~$_!$(BRAID $B$rM-8z$K$7$?%+!<%M%k(B
$B$r9=C[$7$^$9(B</LI>
<LI>RAID $B%"%l%$$,@5$7$/@_Dj!$%^%&%s%H$G$-$k$+%F%9%H$7$^$9(B</LI>
<LI>RAID $B%7%9%F%`>e$K(B OS $B$r%$%s%9%H!<%k$7$^$9(B</LI>
<LI>$B%k!<%H%G%P%$%9$H$7$F(B <B>/dev/md0</B> $B$r;2>H$9$k$h$&$K(B
<B>fstab</B> $B$NFbMF$r=$@5$7$^$9!%5/F0$KI,MW$J%Q!<%F%#%7%g%s$,(B <B>fstab</B>
$B$K4^$^$l$F$$$k$3$H$r3NG'$7$^$9!%(B</LI>
<LI>Modify your shutdown halt and reboot script(s) (mine is /etc/rc.d/rc.6) as shown in
<A HREF="Root-RAID-HOWTO-4.html#modify_shutdown">Modifying the rc-scripts for SHUTDOWN</A>
$B$N5-=R$K$7$?$,$C$F!$%^%7%s$NDd;_5Z$S:F5/F0$N%9%/%j%W%H(B($BI.<T$N%7%9%F%`(B
$B$G$O(B /etc/rc.d/rc.6 $B$G$9(B)$B$r=$@5$7$^$9!%(B</LI>
<LI>$B0J2<$N<j=g$K<($9$h$&$K!$%U%!%$%k$r:n6HMQ%7%9%F%`$+$i!$I|5l%7%9%F(B
$B%`$H?7$7$$(B RAID $B%7%9%F%`$NN>J}$K%3%T!<$7$^$9!%(B
<PRE>
cd /root/raidboot
mkdir mnt
gzip -d rescue.clean
losetup /dev/loop0 rescue.clean
mount /dev/loop0 mnt
$B<!$N$h$&$K%U%!%$%k$r%3%T!<$7$^$9!%(B
cp -p /etc/* mnt/etc
cp -p /etc/rc.d/* mnt/etc/rc.d
{or as appropriate for your system}
cp -a /lib/modules/* mnt/lib/modules
</PRE>
Linux $B$N%G%#%9%H%j%S%e!<%7%g%s$K$h$C$F$O!$%k!<%H%U%!%$%k%7%9%F%`$N(B
<B>ro/rw</B> $B%9%F!<%?%9$rD4$Y$^$9!%(Binitrd $BI|5l%7%9%F%`$N(B <B>rc $B5/F0(B</B>
$B%9%/%j%W%H$+$i$O!$$3$l$rD4$Y$kItJ,$r<h$j=|$/I,MW$,$"$j$^$9!%(B
<A HREF="Root-RAID-HOWTO-4.html#corrections">$BI|5l%7%9%F%`$N=$@5(B</A>$B$N>O$N<j=g$r;2>H$7$F$/$@$5(B
$B$$!%(B</LI>
</UL>
<B>dev</B>md0/ $B$,%k!<%H%G%P%$%9(B<B>fstab</B> $B$K$J$k$h$&(B <B>fstab</B> $B$r=$@5$7(B
$B$^$9!%5/F0$KI,MW$J%Q!<%F%#%7%g%s$,(B <B>fstab</B> $B$K4^$^$l$F$$$k$3$H$r3NG'(B
$B$7$^$7$g$&!%(B</P>
<P>
<A NAME="raidboot-conf"></A>
RAID $B$+$i5/F0$9$k@_Dj$r5-=R$9$k(B <B>/etc/raidboot.conf</B> $B$r:n@.$7$^(B
$B$9!%$3$N%U%!%$%k$N:G=i$N(B3$B9T$K$O%3%a%s%H$rF~$l$F$O$$$1$^$;$s!%$=$l0J9_(B
$B$J$i$PLdBj$"$j$^$;$s!%(B</P>
<P>raidboot.conf
<PRE>
/dev/sda1 /dev/sda2
raidboot
raid5.conf
# comments may only be placed 'after' the three
# configuration lines.
#
# This is 'raidboot.conf'
#
# line one, the partition(s) containing the 'initrd' raid-rescue system
# It is not necessary to boot from these partitions, however,
# since the rescue system will not fit on floppy, it is necessary
# to know which partitions are to be used to load the rescue system
#
# line two, the path to the raidboot config information
# Where the shutdown status, etc... is located at boot time
# It does NOT include the mount point information, only 'path'
# /mntpoint/'path'
#
# line -3-, name of the raid configuration file
# Current raid configuration file i.e. raid1.conf, raid5.conf
</PRE>
$B8e$O$$$/$D$+$N:n6H$r9T$($P!$(BRAID $B%7%9%F%`$N5/F0=`Hw$,$G$-$^$9!%(B</P>
<P>$BIUO?(B F $B$G@bL@$9$k!$(B
<A HREF="Root-RAID-HOWTO-13.html#Appendix-F">rc.raidown</A> $B%U%!%$%k$r(B
# $B:n@.$7!$$3$l$rI|5l!$:n6H!$(BRAID $B$N3F%7%9%F%`$N(B /etc/rc.d $B%G%#%l%/%H%j(B
# $B$K%3%T!<$7$^$9!%I|5l%7%9%F%`$r%"%s%^%&%s%H$7$?8e!$$3$l$r05=L$7$^$9!%(B
<PRE>
umount mnt
losetup -d /dev/loop0
mv rescue.clean rescue
gzip rescue
</PRE>
$BI|5l%U%!%$%k$r(B RAID $B5/F0%Q!<%F%#%7%g%s$K%3%T!<$7$^$9!%(B
<PRE>
cp rescue.gz /mnt_point(1)/raidboot
cp rescue.gz /mnt_point(2)/raidboot
</PRE>
RAID $B%"%l%$$rM-8z$K$7$^$9!%(B
<PRE>
mdadd -ar
</PRE>
RAID $B5/F0%Q!<%F%#%7%g%s$N(B <B>$B@5$7$$(B</B> $B;2>H%9%F!<%?%9$rJ]B8$7$^$9!%(B
<PRE>
cat /proc/mdstat | grep md0 > /mnt_point(1)/raidboot/raidgood.ref
cat /proc/mdstat | grep md0 > /mnt_point(1)/raidboot/raidgood.ref
</PRE>
$B:G8e$K(B
<A HREF="Root-RAID-HOWTO-4.html#raidboot-conf">$B5/F0;~$N@_Dj%Q%i%a!<%?(B</A> $B$N@bL@$K(B
$B=>$C$F5/F0%W%m%0%i%`$r@_Dj$7!$(BRAID $B%"%l%$>e$N%7%9%F%`$r5/F0$7$^$9!%(B</P>
<HR>
<A HREF="Root-RAID-HOWTO-4.html">$B<!$N%Z!<%8(B</A>
<A HREF="Root-RAID-HOWTO-2.html">$BA0$N%Z!<%8(B</A>
<A HREF="Root-RAID-HOWTO.html#toc3">$BL\<!$X(B</A>
</BODY>
</HTML>
|