82
SLES 10 Storage Administration Guide for EVMS
no
vd
ocx (
E
NU)
9
Jan
uar
y 2
007
3 1 2 3
7 4 5 6
Far layout with an odd number of disks and two replicas:
sda1 sdb1 sdc1 sde1 sdf1
0 1 2 3 4
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 79
.
The following procedure 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
.
Devices
RAID10 (near or far striping scheme)
/dev/sdf1
/dev/md3
/dev/sdg1
/dev/sdh1
/dev/sdi1
Summary of Contents for LINUX ENTERPRISE SERVER 10 - STORAGE ADMINISTRATION GUIDE FOR EVMS
Page 4: ...novdocx ENU 9 January 2007 ...
Page 8: ...8 SLES 10 Storage Administration Guide for EVMS novdocx ENU 9 January 2007 ...
Page 10: ...10 SLES 10 Storage Administration Guide for EVMS novdocx ENU 9 January 2007 ...
Page 40: ...40 SLES 10 Storage Administration Guide for EVMS novdocx ENU 9 January 2007 ...
Page 52: ...52 SLES 10 Storage Administration Guide for EVMS novdocx ENU 9 January 2007 ...
Page 74: ...74 SLES 10 Storage Administration Guide for EVMS novdocx ENU 9 January 2007 ...
Page 84: ...84 SLES 10 Storage Administration Guide for EVMS novdocx ENU 9 January 2007 ...