Syncing disks...
Done.
3. Using
mdadm
to Configure RAID-Based and Multipath
Storage
Similar to other tools comprising the
raidtools
package set, the
mdadm
command can be used
to perform all the necessary functions related to administering multiple-device sets. This section
explains how
mdadm
can be used to:
• Create a RAID device
• Create a multipath device
3.1. Creating a RAID Device With
mdadm
To create a RAID device, edit the
/etc/mdadm.conf
file to define appropriate
DEVICE
and
ARRAY
values:
DEVICE /dev/sd[abcd]1
ARRAY /dev/md0 devices=/dev/sda1,/dev/sdb1,/dev/sdc1,/dev/sdd1
In this example, the
DEVICE
line is using traditional file name globbing (refer to the
glob
(7) man
page for more information) to define the following SCSI devices:
•
/dev/sda1
•
/dev/sdb1
•
/dev/sdc1
•
/dev/sdd1
The
ARRAY
line defines a RAID device (
/dev/md0
) that is comprised of the SCSI devices defined
by the
DEVICE
line.
Prior to the creation or usage of any RAID devices, the
/proc/mdstat
file shows no active
RAID devices:
Personalities :
read_ahead not set
Event: 0
unused devices: <none>
Using
mdadm
to Configure RAID-Based and
69
Содержание ENTERPRISE LINUX 3 - FOR IBM S-390 AND IBM ESERVER ZSERIES
Страница 2: ...Red Hat Enterprise Linux 4 ...
Страница 4: ...Red Hat Enterprise Linux 4 ...
Страница 56: ...46 ...
Страница 64: ...54 ...
Страница 70: ...60 ...
Страница 104: ...94 ...
Страница 108: ...98 ...