2004-09-10 05:32:14 +04:00
|
|
|
.\" $NetBSD: raid.4,v 1.30 2004/09/10 01:32:14 oster Exp $
|
1998-11-13 07:25:58 +03:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1998 The NetBSD Foundation, Inc.
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" This code is derived from software contributed to The NetBSD Foundation
|
|
|
|
.\" by Greg Oster
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the NetBSD
|
|
|
|
.\" Foundation, Inc. and its contributors.
|
|
|
|
.\" 4. Neither the name of The NetBSD Foundation nor the names of its
|
|
|
|
.\" contributors may be used to endorse or promote products derived
|
|
|
|
.\" from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
|
|
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1995 Carnegie-Mellon University.
|
|
|
|
.\" All rights reserved.
|
2001-09-12 02:52:52 +04:00
|
|
|
.\"
|
1998-11-13 07:25:58 +03:00
|
|
|
.\" Author: Mark Holland
|
2001-09-12 02:52:52 +04:00
|
|
|
.\"
|
1998-11-13 07:25:58 +03:00
|
|
|
.\" Permission to use, copy, modify and distribute this software and
|
|
|
|
.\" its documentation is hereby granted, provided that both the copyright
|
|
|
|
.\" notice and this permission notice appear in all copies of the
|
|
|
|
.\" software, derivative works or modified versions, and any portions
|
|
|
|
.\" thereof, and that both notices appear in supporting documentation.
|
2001-09-12 02:52:52 +04:00
|
|
|
.\"
|
1998-11-13 07:25:58 +03:00
|
|
|
.\" CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
|
|
|
|
.\" CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
|
|
|
|
.\" FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
|
2001-09-12 02:52:52 +04:00
|
|
|
.\"
|
1998-11-13 07:25:58 +03:00
|
|
|
.\" Carnegie Mellon requests users of this software to return to
|
2001-09-12 02:52:52 +04:00
|
|
|
.\"
|
1998-11-13 07:25:58 +03:00
|
|
|
.\" Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
|
|
|
|
.\" School of Computer Science
|
|
|
|
.\" Carnegie Mellon University
|
|
|
|
.\" Pittsburgh PA 15213-3890
|
2001-09-12 02:52:52 +04:00
|
|
|
.\"
|
1998-11-13 07:25:58 +03:00
|
|
|
.\" any improvements or extensions that they make and grant Carnegie the
|
|
|
|
.\" rights to redistribute these changes.
|
2001-09-12 02:52:52 +04:00
|
|
|
.\"
|
2004-09-10 05:32:14 +04:00
|
|
|
.Dd September 9, 2004
|
1998-11-13 07:25:58 +03:00
|
|
|
.Dt RAID 4
|
1999-03-16 04:19:14 +03:00
|
|
|
.Os
|
1998-11-13 07:25:58 +03:00
|
|
|
.Sh NAME
|
|
|
|
.Nm raid
|
1999-12-16 01:07:30 +03:00
|
|
|
.Nd RAIDframe disk driver
|
1998-11-13 07:25:58 +03:00
|
|
|
.Sh SYNOPSIS
|
2003-04-09 21:41:28 +04:00
|
|
|
.Cd options RAID_AUTOCONFIG
|
|
|
|
.Cd options RAID_DIAGNOSTIC
|
2004-03-01 01:04:11 +03:00
|
|
|
.Cd options RF_ACC_TRACE=n
|
|
|
|
.Cd options RF_DEBUG_MAP=n
|
|
|
|
.Cd options RF_DEBUG_PSS=n
|
|
|
|
.Cd options RF_DEBUG_QUEUE=n
|
|
|
|
.Cd options RF_DEBUG_QUIESCE=n
|
|
|
|
.Cd options RF_DEBUG_RECON=n
|
2004-03-01 02:46:04 +03:00
|
|
|
.Cd options RF_DEBUG_STRIPELOCK=n
|
2004-03-01 01:04:11 +03:00
|
|
|
.Cd options RF_DEBUG_VALIDATE_DAG=n
|
|
|
|
.Cd options RF_DEBUG_VERIFYPARITY=n
|
2003-04-09 21:41:28 +04:00
|
|
|
.Cd options RF_INCLUDE_CHAINDECLUSTER=n
|
2004-03-01 02:46:04 +03:00
|
|
|
.Cd options RF_INCLUDE_EVENODD=n
|
2003-04-09 21:41:28 +04:00
|
|
|
.Cd options RF_INCLUDE_INTERDECLUSTER=n
|
|
|
|
.Cd options RF_INCLUDE_PARITY_DECLUSTERING=n
|
|
|
|
.Cd options RF_INCLUDE_PARITY_DECLUSTERING_DS=n
|
2004-03-01 02:46:04 +03:00
|
|
|
.Cd options RF_INCLUDE_PARITYLOGGING=n
|
|
|
|
.Cd options RF_INCLUDE_RAID5_RS=n
|
2003-04-09 21:41:28 +04:00
|
|
|
.Pp
|
1998-11-13 07:25:58 +03:00
|
|
|
.Cd "pseudo-device raid" Op Ar count
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2001-06-05 17:45:10 +04:00
|
|
|
driver provides RAID 0, 1, 4, and 5 (and more!) capabilities to
|
|
|
|
.Nx .
|
|
|
|
This
|
1998-11-13 07:25:58 +03:00
|
|
|
document assumes that the reader has at least some familiarity with RAID
|
|
|
|
and RAID concepts. The reader is also assumed to know how to configure
|
2001-09-12 02:52:52 +04:00
|
|
|
disks and pseudo-devices into kernels, how to generate kernels, and how
|
1998-11-13 07:25:58 +03:00
|
|
|
to partition disks.
|
|
|
|
.Pp
|
|
|
|
RAIDframe provides a number of different RAID levels including:
|
|
|
|
.Bl -tag -width indent
|
2001-09-12 02:52:52 +04:00
|
|
|
.It RAID 0
|
1998-11-13 07:25:58 +03:00
|
|
|
provides simple data striping across the components.
|
2001-09-12 02:52:52 +04:00
|
|
|
.It RAID 1
|
1998-11-13 07:25:58 +03:00
|
|
|
provides mirroring.
|
2001-09-12 02:52:52 +04:00
|
|
|
.It RAID 4
|
1998-11-13 07:25:58 +03:00
|
|
|
provides data striping across the components, with parity
|
|
|
|
stored on a dedicated drive (in this case, the last component).
|
2001-09-12 02:52:52 +04:00
|
|
|
.It RAID 5
|
|
|
|
provides data striping across the components, with parity
|
1998-11-13 07:25:58 +03:00
|
|
|
distributed across all the components.
|
|
|
|
.El
|
|
|
|
.Pp
|
2003-04-13 01:20:04 +04:00
|
|
|
There are a wide variety of other RAID levels supported by RAIDframe.
|
|
|
|
The configuration file options to enable them are briefly outlined
|
|
|
|
at the end of this section.
|
1998-11-13 07:25:58 +03:00
|
|
|
.Pp
|
|
|
|
Depending on the parity level configured, the device driver can
|
|
|
|
support the failure of component drives. The number of failures
|
|
|
|
allowed depends on the parity level selected. If the driver is able
|
|
|
|
to handle drive failures, and a drive does fail, then the system is
|
|
|
|
operating in "degraded mode". In this mode, all missing data must be
|
|
|
|
reconstructed from the data and parity present on the other
|
|
|
|
components. This results in much slower data accesses, but
|
|
|
|
does mean that a failure need not bring the system to a complete halt.
|
|
|
|
.Pp
|
2001-09-12 02:52:52 +04:00
|
|
|
The RAID driver supports and enforces the use of
|
1999-03-02 06:14:43 +03:00
|
|
|
.Sq component labels .
|
|
|
|
A
|
|
|
|
.Sq component label
|
|
|
|
contains important information about the component, including a
|
2000-02-26 04:14:16 +03:00
|
|
|
user-specified serial number, the row and column of that component in
|
|
|
|
the RAID set, and whether the data (and parity) on the component is
|
1999-03-02 06:14:43 +03:00
|
|
|
.Sq clean .
|
|
|
|
If the driver determines that the labels are very inconsistent with
|
|
|
|
respect to each other (e.g. two or more serial numbers do not match)
|
2003-03-16 02:48:27 +03:00
|
|
|
or that the component label is not consistent with its assigned place
|
1999-03-02 06:14:43 +03:00
|
|
|
in the set (e.g. the component label claims the component should be
|
2004-01-31 21:02:52 +03:00
|
|
|
the 3rd one in a 6-disk set, but the RAID set has it as the 3rd component
|
1999-03-02 06:14:43 +03:00
|
|
|
in a 5-disk set) then the device will fail to configure. If the
|
|
|
|
driver determines that exactly one component label seems to be
|
|
|
|
incorrect, and the RAID set is being configured as a set that supports
|
|
|
|
a single failure, then the RAID set will be allowed to configure, but
|
|
|
|
the incorrectly labeled component will be marked as
|
|
|
|
.Sq failed ,
|
|
|
|
and the RAID set will begin operation in degraded mode.
|
|
|
|
If all of the components are consistent among themselves, the RAID set
|
|
|
|
will configure normally.
|
|
|
|
.Pp
|
2000-02-26 04:14:16 +03:00
|
|
|
Component labels are also used to support the auto-detection and
|
2004-03-05 17:43:01 +03:00
|
|
|
autoconfiguration of RAID sets. A RAID set can be flagged as
|
|
|
|
autoconfigurable, in which case it will be configured automatically
|
2002-09-04 04:26:08 +04:00
|
|
|
during the kernel boot process. RAID file systems which are
|
|
|
|
automatically configured are also eligible to be the root file system.
|
2004-09-10 05:32:14 +04:00
|
|
|
There is currently only limited support (alpha, i386, pmax, sparc,
|
|
|
|
sparc64, and vax architectures)
|
2000-11-02 06:34:08 +03:00
|
|
|
for booting a kernel directly from a RAID 1 set, and no support for
|
|
|
|
booting from any other RAID sets. To use a RAID set as the root
|
2002-09-04 04:26:08 +04:00
|
|
|
file system, a kernel is usually obtained from a small non-RAID
|
2004-03-05 17:43:01 +03:00
|
|
|
partition, after which any autoconfiguring RAID set can be used for the
|
2002-09-04 04:26:08 +04:00
|
|
|
root file system. See
|
2000-02-26 04:14:16 +03:00
|
|
|
.Xr raidctl 8
|
2004-03-05 17:43:01 +03:00
|
|
|
for more information on autoconfiguration of RAID sets.
|
|
|
|
Note that with autoconfiguration of RAID sets, it is no longer
|
2003-04-13 01:20:04 +04:00
|
|
|
necessary to hard-code SCSI IDs of drives.
|
2004-03-05 17:43:01 +03:00
|
|
|
The autoconfiguration code will
|
2003-04-13 01:20:04 +04:00
|
|
|
correctly configure a device even after any number of the components
|
|
|
|
have had their device IDs changed or device names changed.
|
2000-02-26 04:14:16 +03:00
|
|
|
.Pp
|
2001-09-12 02:52:52 +04:00
|
|
|
The driver supports
|
|
|
|
.Sq hot spares ,
|
1998-11-13 07:25:58 +03:00
|
|
|
disks which are on-line, but are not
|
2002-09-04 04:26:08 +04:00
|
|
|
actively used in an existing file system. Should a disk fail, the
|
1999-03-02 06:14:43 +03:00
|
|
|
driver is capable of reconstructing the failed disk onto a hot spare
|
1999-10-17 00:17:29 +04:00
|
|
|
or back onto a replacement drive.
|
2002-09-04 04:26:08 +04:00
|
|
|
If the components are hot swappable, the failed disk can then be
|
1999-10-17 00:17:29 +04:00
|
|
|
removed, a new disk put in its place, and a copyback operation
|
|
|
|
performed. The copyback operation, as its name indicates, will copy
|
1998-11-13 07:25:58 +03:00
|
|
|
the reconstructed data from the hot spare to the previously failed
|
1999-03-02 06:14:43 +03:00
|
|
|
(and now replaced) disk. Hot spares can also be hot-added using
|
|
|
|
.Xr raidctl 8 .
|
1998-11-13 07:25:58 +03:00
|
|
|
.Pp
|
|
|
|
If a component cannot be detected when the RAID device is configured,
|
|
|
|
that component will be simply marked as 'failed'.
|
|
|
|
.Pp
|
2001-09-12 02:52:52 +04:00
|
|
|
The user-land utility for doing all
|
1998-11-13 07:25:58 +03:00
|
|
|
.Nm
|
|
|
|
configuration and other operations
|
2001-09-12 02:52:52 +04:00
|
|
|
is
|
1998-11-13 07:25:58 +03:00
|
|
|
.Xr raidctl 8 .
|
2001-09-12 02:52:52 +04:00
|
|
|
Most importantly,
|
1998-11-13 07:25:58 +03:00
|
|
|
.Xr raidctl 8
|
2001-09-12 02:52:52 +04:00
|
|
|
must be used with the
|
1999-03-02 06:14:43 +03:00
|
|
|
.Fl i
|
2000-02-26 04:14:16 +03:00
|
|
|
option to initialize all RAID sets. In particular, this
|
|
|
|
initialization includes re-building the parity data. This rebuilding
|
|
|
|
of parity data is also required when either a) a new RAID device is
|
1998-11-13 07:25:58 +03:00
|
|
|
brought up for the first time or b) after an un-clean shutdown of a
|
2000-02-26 04:14:16 +03:00
|
|
|
RAID device. By using the
|
|
|
|
.Fl P
|
2001-09-12 02:52:52 +04:00
|
|
|
option to
|
2000-02-26 04:14:16 +03:00
|
|
|
.Xr raidctl 8 ,
|
2001-09-12 02:52:52 +04:00
|
|
|
and performing this on-demand recomputation of all parity
|
|
|
|
before doing a
|
1998-11-13 07:25:58 +03:00
|
|
|
.Xr fsck 8
|
|
|
|
or a
|
2000-02-26 04:14:16 +03:00
|
|
|
.Xr newfs 8 ,
|
2002-09-04 04:26:08 +04:00
|
|
|
file system integrity and parity integrity can be ensured. It bears
|
2001-09-12 02:52:52 +04:00
|
|
|
repeating again that parity recomputation is
|
1998-11-13 07:25:58 +03:00
|
|
|
.Ar required
|
2002-09-04 04:26:08 +04:00
|
|
|
before any file systems are created or used on the RAID device. If the
|
1998-11-13 07:25:58 +03:00
|
|
|
parity is not correct, then missing data cannot be correctly recovered.
|
|
|
|
.Pp
|
2001-09-12 02:52:52 +04:00
|
|
|
RAID levels may be combined in a hierarchical fashion. For example, a RAID 0
|
|
|
|
device can be constructed out of a number of RAID 5 devices (which, in turn,
|
1998-11-13 07:25:58 +03:00
|
|
|
may be constructed out of the physical disks, or of other RAID devices).
|
|
|
|
.Pp
|
2001-09-12 02:52:52 +04:00
|
|
|
The first step to using the
|
1998-11-13 07:25:58 +03:00
|
|
|
.Nm
|
|
|
|
driver is to ensure that it is suitably configured in the kernel. This is
|
|
|
|
done by adding a line similar to:
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
pseudo-device raid 4 # RAIDframe disk device
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2001-09-12 02:52:52 +04:00
|
|
|
to the kernel configuration file. The
|
1998-11-13 07:25:58 +03:00
|
|
|
.Sq count
|
|
|
|
argument (
|
|
|
|
.Sq 4 ,
|
|
|
|
in this case), specifies the number of RAIDframe drivers to configure.
|
2004-03-05 17:43:01 +03:00
|
|
|
To turn on component auto-detection and autoconfiguration of RAID
|
2000-02-26 22:43:07 +03:00
|
|
|
sets, simply add:
|
|
|
|
.Bd -unfilled -offset indent
|
2004-03-01 01:04:11 +03:00
|
|
|
options RAID_AUTOCONFIG
|
2000-02-26 22:43:07 +03:00
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
to the kernel configuration file.
|
1998-11-13 07:25:58 +03:00
|
|
|
.Pp
|
2000-03-04 02:31:36 +03:00
|
|
|
All component partitions must be of the type
|
2001-09-12 02:52:52 +04:00
|
|
|
.Dv FS_BSDFFS
|
2000-02-26 04:14:16 +03:00
|
|
|
(e.g. 4.2BSD) or
|
|
|
|
.Dv FS_RAID .
|
|
|
|
The use of the latter is strongly encouraged, and is required if
|
2004-03-05 17:43:01 +03:00
|
|
|
autoconfiguration of the RAID set is desired. Since RAIDframe leaves
|
2000-03-04 02:31:36 +03:00
|
|
|
room for disklabels, RAID components can be simply raw disks, or
|
|
|
|
partitions which use an entire disk.
|
1998-11-13 07:25:58 +03:00
|
|
|
.Pp
|
2001-09-12 02:52:52 +04:00
|
|
|
A more detailed treatment of actually using a
|
1998-11-13 07:25:58 +03:00
|
|
|
.Nm
|
2001-09-12 02:52:52 +04:00
|
|
|
device is found in
|
1998-11-13 07:25:58 +03:00
|
|
|
.Xr raidctl 8 .
|
|
|
|
It is highly recommended that the steps to reconstruct, copyback, and
|
|
|
|
re-compute parity are well understood by the system administrator(s)
|
|
|
|
.Ar before
|
|
|
|
a component failure. Doing the wrong thing when a component fails may
|
|
|
|
result in data loss.
|
|
|
|
.Pp
|
2001-09-02 03:54:57 +04:00
|
|
|
Additional internal consistency checking can be enabled by specifying:
|
|
|
|
.Bd -unfilled -offset indent
|
2004-03-01 01:04:11 +03:00
|
|
|
options RAID_DIAGNOSTIC
|
2001-09-02 03:54:57 +04:00
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
These assertions are disabled by default in order to improve
|
|
|
|
performance.
|
2003-04-13 01:20:04 +04:00
|
|
|
.Pp
|
2004-03-01 01:04:11 +03:00
|
|
|
RAIDframe supports an access tracing facility for tracking both
|
|
|
|
requests made and performance of various parts of the RAID systems
|
|
|
|
as the request is processed.
|
|
|
|
To enable this tracing the following option may be specified:
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
options RF_ACC_TRACE=1
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
For extensive debugging there are a number of kernel options which
|
|
|
|
will aid in performing extra diagnosis of various parts of the
|
|
|
|
RAIDframe sub-systems.
|
2004-03-01 02:46:04 +03:00
|
|
|
Note that in order to make full use of these options it is often
|
|
|
|
necessary to enable one or more debugging options as listed in
|
|
|
|
.Pa src/sys/dev/raidframe/rf_options.h .
|
2004-03-01 01:04:11 +03:00
|
|
|
As well, these options are also only typically useful for people who wish
|
|
|
|
to debug various parts of RAIDframe.
|
|
|
|
The options include:
|
|
|
|
.Pp
|
|
|
|
For debugging the code which maps RAID addresses to physical
|
|
|
|
addresses:
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
options RF_DEBUG_MAP=1
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
Parity stripe status debugging is enabled with:
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
options RF_DEBUG_PSS=1
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2004-03-01 02:46:04 +03:00
|
|
|
Additional debugging for queuing is enabled with:
|
2004-03-01 01:04:11 +03:00
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
options RF_DEBUG_QUEUE=1
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2004-03-01 02:46:04 +03:00
|
|
|
Problems with non-quiescent file systems should be easier to debug if
|
2004-03-01 01:04:11 +03:00
|
|
|
the following is enabled:
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
options RF_DEBUG_QUIESCE=1
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
Stripelock debugging is enabled with:
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
options RF_DEBUG_STRIPELOCK=1
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
Additional diagnostic checks during reconstruction are enabled with:
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
options RF_DEBUG_RECON=1
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
Validation of the DAGs (Directed Acyclic Graphs) used to describe an
|
|
|
|
I/O access can be performed when the following is enabled:
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
options RF_DEBUG_VALIDATE_DAG=1
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2004-03-01 02:46:04 +03:00
|
|
|
Additional diagnostics during parity verification are enabled with:
|
2004-03-01 01:04:11 +03:00
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
options RF_DEBUG_VERIFYPARITY=1
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2003-04-13 01:20:04 +04:00
|
|
|
There are a number of less commonly used RAID levels supported by
|
2003-04-13 05:45:06 +04:00
|
|
|
RAIDframe.
|
2003-04-13 01:20:04 +04:00
|
|
|
These additional RAID types should be considered experimental, and
|
|
|
|
may not be ready for production use.
|
|
|
|
The various types and the options to enable them are shown here:
|
2003-04-13 05:45:06 +04:00
|
|
|
.Pp
|
2003-04-13 01:20:04 +04:00
|
|
|
For Even-Odd parity:
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
options RF_INCLUDE_EVENODD=1
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
For RAID level 5 with rotated sparing:
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
options RF_INCLUDE_RAID5_RS=1
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
For Parity Logging (highly experimental):
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
options RF_INCLUDE_PARITYLOGGING=1
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
For Chain Declustering:
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
options RF_INCLUDE_CHAINDECLUSTER=1
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
For Interleaved Declustering:
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
options RF_INCLUDE_INTERDECLUSTER=1
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
For Parity Declustering:
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
options RF_INCLUDE_PARITY_DECLUSTERING=1
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
For Parity Declustering with Distributed Spares:
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
options RF_INCLUDE_PARITY_DECLUSTERING_DS=1
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
The reader is referred to the RAIDframe documentation mentioned in the
|
|
|
|
.Sx HISTORY
|
|
|
|
section for more detail on these various RAID configurations.
|
1998-11-13 07:25:58 +03:00
|
|
|
.Sh WARNINGS
|
|
|
|
Certain RAID levels (1, 4, 5, 6, and others) can protect against some
|
|
|
|
data loss due to component failure. However the loss of two
|
|
|
|
components of a RAID 4 or 5 system, or the loss of a single component
|
2002-09-04 04:26:08 +04:00
|
|
|
of a RAID 0 system, will result in the entire file systems on that RAID
|
1998-11-13 07:25:58 +03:00
|
|
|
device being lost.
|
2001-09-12 02:52:52 +04:00
|
|
|
RAID is
|
1998-11-13 07:25:58 +03:00
|
|
|
.Ar NOT
|
|
|
|
a substitute for good backup practices.
|
|
|
|
.Pp
|
2001-09-12 02:52:52 +04:00
|
|
|
Recomputation of parity
|
1998-11-13 07:25:58 +03:00
|
|
|
.Ar MUST
|
|
|
|
be performed whenever there is a chance that it may have been
|
|
|
|
compromised. This includes after system crashes, or before a RAID
|
|
|
|
device has been used for the first time. Failure to keep parity
|
|
|
|
correct will be catastrophic should a component ever fail -- it is
|
|
|
|
better to use RAID 0 and get the additional space and speed, than it
|
|
|
|
is to use parity, but not keep the parity correct. At least with RAID
|
2001-09-12 02:52:52 +04:00
|
|
|
0 there is no perception of increased data security.
|
1998-11-13 07:25:58 +03:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /dev/XXrXraidX -compact
|
|
|
|
.It Pa /dev/{,r}raid*
|
|
|
|
.Nm
|
|
|
|
device special files.
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
2001-09-22 20:03:58 +04:00
|
|
|
.Xr sd 4 ,
|
1998-11-13 07:25:58 +03:00
|
|
|
.Xr MAKEDEV 8 ,
|
|
|
|
.Xr config 8 ,
|
|
|
|
.Xr fsck 8 ,
|
|
|
|
.Xr mount 8 ,
|
1999-09-05 06:17:24 +04:00
|
|
|
.Xr newfs 8 ,
|
2001-09-22 20:03:58 +04:00
|
|
|
.Xr raidctl 8
|
1998-11-13 07:25:58 +03:00
|
|
|
.Sh HISTORY
|
2001-09-12 02:52:52 +04:00
|
|
|
The
|
1998-11-13 07:25:58 +03:00
|
|
|
.Nm
|
2001-09-12 02:52:52 +04:00
|
|
|
driver in
|
1998-11-13 07:25:58 +03:00
|
|
|
.Nx
|
|
|
|
is a port of RAIDframe, a framework for rapid prototyping of RAID
|
|
|
|
structures developed by the folks at the Parallel Data Laboratory at
|
|
|
|
Carnegie Mellon University (CMU). RAIDframe, as originally distributed
|
|
|
|
by CMU, provides a RAID simulator for a number of different
|
|
|
|
architectures, and a user-level device driver and a kernel device
|
2001-09-12 02:52:52 +04:00
|
|
|
driver for Digital Unix. The
|
1998-11-13 07:25:58 +03:00
|
|
|
.Nm
|
|
|
|
driver is a kernelized version of RAIDframe v1.1.
|
|
|
|
.Pp
|
|
|
|
A more complete description of the internals and functionality of
|
|
|
|
RAIDframe is found in the paper "RAIDframe: A Rapid Prototyping Tool
|
|
|
|
for RAID Systems", by William V. Courtright II, Garth Gibson, Mark
|
|
|
|
Holland, LeAnn Neal Reilly, and Jim Zelenka, and published by the
|
|
|
|
Parallel Data Laboratory of Carnegie Mellon University.
|
2001-09-12 02:52:52 +04:00
|
|
|
The
|
1998-11-13 07:25:58 +03:00
|
|
|
.Nm
|
|
|
|
driver first appeared in
|
|
|
|
.Nx 1.4 .
|
|
|
|
.Sh COPYRIGHT
|
|
|
|
.Bd -unfilled
|
|
|
|
The RAIDframe Copyright is as follows:
|
2001-09-22 20:03:58 +04:00
|
|
|
.Pp
|
1998-11-13 07:25:58 +03:00
|
|
|
Copyright (c) 1994-1996 Carnegie-Mellon University.
|
|
|
|
All rights reserved.
|
2001-09-22 20:03:58 +04:00
|
|
|
.Pp
|
1998-11-13 07:25:58 +03:00
|
|
|
Permission to use, copy, modify and distribute this software and
|
|
|
|
its documentation is hereby granted, provided that both the copyright
|
|
|
|
notice and this permission notice appear in all copies of the
|
|
|
|
software, derivative works or modified versions, and any portions
|
|
|
|
thereof, and that both notices appear in supporting documentation.
|
2001-09-22 20:03:58 +04:00
|
|
|
.Pp
|
1998-11-13 07:25:58 +03:00
|
|
|
CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
|
|
|
|
CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
|
|
|
|
FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
|
2001-09-22 20:03:58 +04:00
|
|
|
.Pp
|
1998-11-13 07:25:58 +03:00
|
|
|
Carnegie Mellon requests users of this software to return to
|
2001-09-22 20:03:58 +04:00
|
|
|
.Pp
|
1998-11-13 07:25:58 +03:00
|
|
|
Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
|
|
|
|
School of Computer Science
|
|
|
|
Carnegie Mellon University
|
|
|
|
Pittsburgh PA 15213-3890
|
2001-09-22 20:03:58 +04:00
|
|
|
.Pp
|
1998-11-13 07:25:58 +03:00
|
|
|
any improvements or extensions that they make and grant Carnegie the
|
|
|
|
rights to redistribute these changes.
|
|
|
|
.Ed
|