Setting Up RAID Arrays
5-12
Express5800/
ftServer
: System Administrator’s Guide for the Linux Operating System
2. Edit the
/etc/mdadm.conf
file so that the new RAID-0 array starts each time the
system boots.
a. Use an existing ARRAY line as a model. Copy it to the bottom of the file.
b. Edit the device and the two disks. In this example, the device is changed to
md30 and the two devices take the RAID-1 array names. The result should
look like the following:
ARRAY /dev/md30 level=0 DEVICES=/dev/md20,/dev/md21
c. Save the file and exit the editor.
3. Make the RAID array with the following command:
#
mdadm --create
/dev/md30 --level=0
--raid-devices=2
/dev/md20
/dev/md21
This command creates the RAID array and starts it.
If you type the
mdadm
command again, it shows the active RAID array:
#
mdadm
-Q
--detail
/dev/md30
/dev/md30:
Version : 00.90.01
Creation Time : Wed Sep 28 15:20:08 2005
Raid Level : raid0
Array Size : 286743808 (273.46 GiB 293.63 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 30
Persistence : Superblock is persistent
Update Time : Wed Sep 28 15:20:58 2005
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Chunk Size : 64K
Number Major Minor RaidDevice State
0 9 20 0 active sync /dev/md20
1 9 21 1 active sync /dev/md21
UUID : f5762850:f7dd0c84:5c720b6b:b328ca20
Events : 0.1