170 lines
4.5 KiB
HTML
170 lines
4.5 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 B. - SCSI reference implementation RAID5</TITLE>
|
|
<LINK HREF="Boot+Root+Raid+LILO-7.html" REL=next>
|
|
<LINK HREF="Boot+Root+Raid+LILO-5.html" REL=previous>
|
|
<LINK HREF="Boot+Root+Raid+LILO.html#toc6" REL=contents>
|
|
</HEAD>
|
|
<BODY>
|
|
<A HREF="Boot+Root+Raid+LILO-7.html">Next</A>
|
|
<A HREF="Boot+Root+Raid+LILO-5.html">Previous</A>
|
|
<A HREF="Boot+Root+Raid+LILO.html#toc6">Contents</A>
|
|
<HR>
|
|
<H2><A NAME="s6">6. Appendix B. - SCSI reference implementation RAID5</A></H2>
|
|
|
|
<P>4 disk SCSI RAID5
|
|
<PRE>
|
|
df
|
|
Filesystem 1k-blocks Used Available Use% Mounted on
|
|
/dev/md0 11753770 2146076 9000678 19% /
|
|
/dev/md1 15739 885 14042 6% /boot
|
|
|
|
# --------------------------
|
|
|
|
fdisk -ul /dev/sda
|
|
|
|
Disk /dev/sda: 64 heads, 32 sectors, 4095 cylinders
|
|
Units = sectors of 1 * 512 bytes
|
|
|
|
Device Boot Start End Blocks Id System
|
|
/dev/sda1 32 32767 16368 fd Linux raid autodetect
|
|
/dev/sda2 32768 292863 130048 5 Extended
|
|
/dev/sda3 292864 8386559 4046848 fd Linux raid autodetect
|
|
/dev/sda5 32800 260095 113648 82 Linux swap
|
|
/dev/sda6 260128 292863 16368 83 Linux native - test
|
|
|
|
# ------------------------
|
|
|
|
fdisk -ul /dev/sdb
|
|
|
|
Disk /dev/sdb: 64 heads, 32 sectors, 4095 cylinders
|
|
Units = sectors of 1 * 512 bytes
|
|
|
|
Device Boot Start End Blocks Id System
|
|
/dev/sdb1 32 32767 16368 fd Linux raid autodetect
|
|
/dev/sdb2 32768 292863 130048 5 Extended
|
|
/dev/sdb3 292864 8386559 4046848 fd Linux raid autodetect
|
|
/dev/sdb5 32800 260095 113648 82 Linux swap
|
|
/dev/sdb6 260128 292863 16368 83 Linux native - test
|
|
|
|
# ------------------------
|
|
|
|
# fdisk -ul /dev/sdc
|
|
|
|
Disk /dev/sdc: 64 heads, 32 sectors, 4095 cylinders
|
|
Units = sectors of 1 * 512 bytes
|
|
|
|
Device Boot Start End Blocks Id System
|
|
/dev/sdc2 32 292863 146416 5 Extended
|
|
/dev/sdc3 292864 8386559 4046848 fd Linux raid autodetect
|
|
/dev/sdc5 64 260095 130016 83 Linux native - development
|
|
/dev/sdc6 260128 292863 16368 83 Linux native - test
|
|
|
|
# ------------------------
|
|
|
|
fdisk -ul /dev/sdd
|
|
|
|
Disk /dev/sdd: 64 heads, 32 sectors, 4095 cylinders
|
|
Units = sectors of 1 * 512 bytes
|
|
|
|
Device Boot Start End Blocks Id System
|
|
/dev/sdd2 32 292863 146416 5 Extended
|
|
/dev/sdd3 292864 8386559 4046848 fd Linux raid autodetect
|
|
/dev/sdd5 64 260095 130016 83 Linux native - development
|
|
/dev/sdd6 260128 292863 16368 83 Linux native - test
|
|
|
|
# --------------------------
|
|
|
|
# raidtab
|
|
#
|
|
raiddev /dev/md0
|
|
raid-level 5
|
|
nr-raid-disks 4
|
|
persistent-superblock 1
|
|
chunk-size 32
|
|
|
|
# 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
|
|
|
|
# boot partition
|
|
#
|
|
raiddev /dev/md1
|
|
raid-level 1
|
|
nr-raid-disks 2
|
|
persistent-superblock 1
|
|
chunk-size 32
|
|
|
|
# Spare disks for hot reconstruction
|
|
nr-spare-disks 0
|
|
device /dev/sda1
|
|
raid-disk 0
|
|
device /dev/sdb1
|
|
raid-disk 1
|
|
|
|
# --------------------------
|
|
|
|
# cat lilo.conf.sda
|
|
# GLOBAL SECTION
|
|
# device containing /boot directory
|
|
disk=/dev/md0
|
|
# geometry
|
|
bios=0x80
|
|
sectors=32
|
|
heads=64
|
|
cylinders=4095
|
|
# dummy
|
|
partition=/dev/md1
|
|
# start of device "disk" above
|
|
start=32
|
|
|
|
boot=/dev/sda
|
|
map=/boot/map
|
|
install=/boot/boot.b
|
|
|
|
image=/boot/bzImage
|
|
root=/dev/md0
|
|
label=LinuxRaid
|
|
read-only
|
|
|
|
# ------------------------
|
|
# cat lilo.conf.sdb
|
|
# GLOBAL SECTION
|
|
# device containing /boot directory
|
|
disk=/dev/md0
|
|
# geometry
|
|
bios=0x80
|
|
sectors=32
|
|
heads=64
|
|
cylinders=4095
|
|
# dummy
|
|
partition=/dev/md1
|
|
# start of device "disk" above
|
|
start=32
|
|
|
|
boot=/dev/sdb
|
|
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-7.html">Next</A>
|
|
<A HREF="Boot+Root+Raid+LILO-5.html">Previous</A>
|
|
<A HREF="Boot+Root+Raid+LILO.html#toc6">Contents</A>
|
|
</BODY>
|
|
</HTML>
|