106
SLES 10 SP3: Storage Administration Guide
no
vd
ocx
(e
n)
7 Ja
nua
ry 201
0
5 6 7 8 9
. . .
4 0 1 2 3
9 5 6 7 8
7.3.2 Creating a RAID10 with mdadm
The RAID10-level option for
mdadm
creates a RAID 10 device without nesting. For information
about the RAID10-level, see
Section 7.3, “Creating a Complex RAID 10 with mdadm,” on
page 103
.
The procedure in this section uses the device names shown in the following table. Make sure to
modify the device names with the names of your own devices.
Table 7-6
Scenario for Creating a RAID 10 Using the mdadm RAID10 Option
1
In YaST, create a 0xFD Linux RAID partition on the devices you want to use in the RAID, such
as
/dev/sdf1
,
/dev/sdg1
,
/dev/sdh1
, and
/dev/sdi1
.
2
Open a terminal console, then log in as the root user or equivalent.
3
Create a RAID 10 command. At the command prompt, enter (all on the same line):
mdadm --create /dev/md3 --run --level=10 --chunk=4 --raid-devices=4 /dev/
sdf1 /dev/sdg1 /dev/sdh1 /dev/sdi1
4
Create a Reiser file system on the RAID 10 device
/dev/md3
. At the command prompt, enter
mkfs.reiserfs /dev/md3
5
Edit the
/etc/mdadm.conf
file to add entries for the component devices and the RAID device
/dev/md3
. For example:
DEVICE /dev/md3
6
Edit the
/etc/fstab
file to add an entry for the RAID 10 device
/dev/md3
.
7
Reboot the server.
The RAID10 device is mounted to
/raid10
.
7.4 Creating a Degraded RAID Array
A degraded array is one in which some devices are missing. Degraded arrays are supported only for
RAID 1, RAID 4, RAID 5, and RAID 6. These RAID types are designed to withstand some missing
devices as part of their fault-tolerance features. Typically, degraded arrays occur when a device fails.
It is possible to create a degraded array on purpose.
Raw Devices
RAID10 (near or far striping scheme)
/dev/sdf1
/dev/sdg1
/dev/sdh1
/dev/sdi1
/dev/md3
Содержание LINUX ENTERPRISE SERVER 10 SP3 - ARCHITECTURE-SPECIFIC
Страница 4: ...4 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Страница 30: ...30 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Страница 42: ...42 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Страница 76: ...76 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Страница 108: ...108 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Страница 118: ...118 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Страница 124: ...124 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Страница 132: ...132 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...