![Novell LINUX ENTERPRISE SERVER 10 - STORAGE ADMINISTRATION GUIDE 7-2007 Administration Manual Download Page 85](http://html1.mh-extra.com/html/novell/linux-enterprise-server-10-storage-administration-guide-7-2007/linux-enterprise-server-10-storage-administration-guide-7-2007_administration-manual_1711843085.webp)
Managing Software RAIDs 6 and 10 with mdadm
85
no
vd
ocx
(e
n)
6 Ap
ril 20
07
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-4
Scenario for Creating a RAID 10 (0+1) by Nesting
1
Open a terminal console, then log in as the root user or equivalent.
2
Create 2 software RAID 0 devices, using two different devices for each RAID 0 device. At the
command prompt, enter these two commands:
mdadm --create /dev/md0 --run --level=0 --chunk=64 --raid-devices=2
/dev/sdb1 /dev/sdc1
mdadm --create /dev/md1 --run --level=0 --chunk=64 --raid-devices=2
/dev/sdd1 /dev/sde1
The default chunk size is 64 KB.
3
Create the nested RAID 0+1 device. At the command prompt, enter the following command
using the software RAID 0 devices you created in
Step 2
:
mdadm --create /dev/md2 --run --level=1 --raid-devices=2 /dev/md0 /
dev/md1
4
Create a file system on the RAID 0+1 device
/dev/md2
, such as a Reiser file system
(reiserfs). For example, at the command prompt, enter
mkfs.reiserfs /dev/md2
Modify the command if you want to use a different file system.
5
Edit the
/etc/mdadm.conf
file to add entries for the component devices and the RAID
device
/dev/md2
.
6
Edit the
/etc/fstab
file to add an entry for the RAID 0+1 device
/dev/md2
.
7
Reboot the server.
The RAID 0+1 device is mounted to
/local
.
7.3 Creating a Complex RAID 10 with mdadm
Section 7.3.1, “Understanding the mdadm RAID10,” on page 86
Section 7.3.2, “Creating a RAID10 with mdadm,” on page 88
Raw Devices
RAID 0 (stripe)
RAID 0+1 (mirrored stripes)
/dev/sdb1
/dev/md0
/dev/md2
/dev/sdc1
/dev/sdd1
/dev/md1
/dev/sde1
Summary of Contents for LINUX ENTERPRISE SERVER 10 - STORAGE ADMINISTRATION GUIDE 7-2007
Page 4: ...novdocx en 6 April 2007...
Page 30: ...30 SLES 10 Storage Administration Guide novdocx en 6 April 2007...
Page 42: ...42 SLES 10 Storage Administration Guide novdocx en 6 April 2007...
Page 58: ...58 SLES 10 Storage Administration Guide novdocx en 6 April 2007...
Page 90: ...90 SLES 10 Storage Administration Guide novdocx en 6 April 2007...
Page 100: ...100 SLES 10 Storage Administration Guide novdocx en 6 April 2007...
Page 106: ...106 SLES 10 Storage Administration Guide novdocx en 6 April 2007...