Beruflich Dokumente
Kultur Dokumente
RAID Levels
Improved I/O performance is the major reason for using RAID level 0.
No protection is provided against data loss due to member disk failures. A
RAID level 0 array by itself is thus an unsuitable storage medium for data
that can not easily be reproduced, or for data that must be available for
critical system operation. It is more suitable for data that can be reproduced
or is replicated on other media.
If hardware RAID isn't available, then you should be aware of these basic guidelines to
follow when setting up software RAID.
IDE Drives
To save costs, many small business systems will probably use IDE disks, but they do
have some limitations.
• The total length of an IDE cable can be only a few feet long, which generally
limits IDE drives to small home systems.
• IDE drives do not hot swap. You cannot replace them while your system is
running.
• Only two devices can be attached per controller.
• The performance of the IDE bus can be degraded by the presence of a second
device on the cable.
• The failure of one drive on an IDE bus often causes the malfunctioning of the
second device. This can be fatal if you have two IDE drives of the same RAID set
attached to the same cable.
For these reasons, I recommend you use only one IDE drive per controller when using
RAID, especially in a corporate environment. In a home or SOHO setting, IDE-based
software RAID may be adequate.
• The drive data cable can be as long as 1 meter in length versus IDE's 18 inches.
• Serial ATA has better error checking than IDE.
• There is only one drive per cable which makes hot swapping, or the capability to
replace components while the system is still running, possible without the fear of
affecting other devices on the data cable.
• There are no jumpers to set on Serial ATA drives to make it a master or slave
which makes them simpler to configure.
• IDE drives have a 133Mbytes/s data rate whereas the Serial ATA specification
starts at 150 Mbytes/sec with a goal of reaching 600 Mbytes/s over the expected
ten year life of the specification.
If you can't afford more expensive and faster SCSI drives, Serial ATA would be the
preferred device for software and hardware RAID
SCSI Drives
SCSI hard disks have a number of features that make them more attractive for RAID use
than either IDE or Serial ATA drives.
• SCSI controllers are more tolerant of disk failures. The failure of a single drive is
less likely to disrupt the remaining drives on the bus.
• SCSI cables can be up to 25 meters long, making them suitable for data center
applications.
• Much more than two devices may be connected to a SCSI cable bus. It can
accommodate 7 (single-ended SCSI) or 15 (all other SCSI types) devices.
• Some models of SCSI devices support "hot swapping" which allows you to
replace them while the system is running.
• SCSI currently supports data rates of up to 640 Mbytes/s making them highly
desirable for installations where rapid data access is imperative.
SCSI drives tend to be more expensive than IDE drives, however, which may make them
less attractive for home use.
If you decide to use RAID, all the partitions on each RAID disk should be part of a RAID
set. Many people simplify this problem by filling each disk of a RAID set with only one
partition.
RAID Partitioning
You first need to create three or more partitions. If you are doing RAID 0 or RAID
5, the partitions should be of approximately the same size, as in this scenario.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
Now You have to change each partition in the RAID set to be of type FD (Linux
raid autodetect), and you can do this with fdisk.
...
...
...
16 Hidden FAT16 61 SpeedStor f2 DOS secondary
17 Hidden HPFS/NTF 63 GNU HURD or Sys fd Linux raid auto
18 AST SmartSleep 64 Novell Netware fe LANstep
1b Hidden Win95 FA 65 Novell Netware ff BBT
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@station1 ~]#
Notice that the new RAID device is called /dev/md0. This information will be
required for the next step.
[root@station1 ~]#
Do not use labels in the /etc/fstab file for RAID devices; just use the real device
name, such as /dev/md0. In older Linux versions, the /etc/rc.d/rc.sysinit script
would check the /etc/fstab file for device entries that matched RAID set names
listed in the now unused /etc/raidtab configuration file. The script would not
automatically start the RAID set driver for the RAID set if it didn't find a match.
Device mounting would then occur later on in the boot process. Mounting a RAID
device that doesn't have a loaded driver can corrupt your data and produce error.