old-www/HOWTO/Boot+Root+Raid+LILO-5.html

132 lines
3.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Boot + Root + Raid + Lilo : Software Raid mini-HOWTO: Appendix A. - example raidtab</TITLE>
<LINK HREF="Boot+Root+Raid+LILO-6.html" REL=next>
<LINK HREF="Boot+Root+Raid+LILO-4.html" REL=previous>
<LINK HREF="Boot+Root+Raid+LILO.html#toc5" REL=contents>
</HEAD>
<BODY>
<A HREF="Boot+Root+Raid+LILO-6.html">Next</A>
<A HREF="Boot+Root+Raid+LILO-4.html">Previous</A>
<A HREF="Boot+Root+Raid+LILO.html#toc5">Contents</A>
<HR>
<H2><A NAME="s5">5. Appendix A. - example raidtab</A></H2>
<P>RAID1 example described in the first sections of this document
<P>
<PRE>
df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/md0 19510780 1763188 16756484 10% /
/dev/md1 15860 984 14051 7% /boot
# --------------------------
fdisk -ul /dev/hda
Disk /dev/hda: 16 heads, 63 sectors, 39770 cylinders
Units = sectors of 1 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 63 33263 16600+ fd Linux raid autodetect
/dev/hda2 33264 443519 205128 83 Linux native
/dev/hda3 443520 40088159 19822320 fd Linux raid autodetect
# --------------------------
fdisk -ul /dev/hdc
Disk /dev/hdc: 16 heads, 63 sectors, 39770 cylinders
Units = sectors of 1 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 63 33263 16600+ fd Linux raid autodetect
/dev/hdc2 33264 443519 205128 82 Linux swap
/dev/hdc3 443520 40088159 19822320 fd Linux raid autodetect
# --------------------------
# md0 is the root array, about 20 gigs
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
chunk-size 32
# Spare disks for hot reconstruction
nr-spare-disks 0
persistent-superblock 1
device /dev/hda3
raid-disk 0
device /dev/hdc3
raid-disk 1
# md1 is the /boot array, about 16 megs
raiddev /dev/md1
raid-level 1
nr-raid-disks 2
chunk-size 32
# Spare disks for hot reconstruction
nr-spare-disks 0
persistent-superblock 1
device /dev/hda1
raid-disk 0
device /dev/hdc1
raid-disk 1
# --------------------------
# GLOBAL SECTION
# device containing /boot directory
disk=/dev/md0
# geometry
bios=0x80
sectors=63
heads=16
cylinders=39770
# dummy
partition=/dev/md1
# start of device "disk" above
start=63
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
image=/boot/bzImage
root=/dev/md0
label=LinuxRaid
read-only
# -------------------------
# GLOBAL SECTION
# device containing /boot directory
disk=/dev/md0
# geometry
bios=0x80
sectors=63
heads=16
cylinders=39770
# dummy
partition=/dev/md1
# start of device "disk" above
start=63
boot=/dev/hdc
map=/boot/map
install=/boot/boot.b
image=/boot/bzImage
root=/dev/md0
label=LinuxRaid
read-only
</PRE>
<P>
<HR>
<A HREF="Boot+Root+Raid+LILO-6.html">Next</A>
<A HREF="Boot+Root+Raid+LILO-4.html">Previous</A>
<A HREF="Boot+Root+Raid+LILO.html#toc5">Contents</A>
</BODY>
</HTML>