11.01.2015 Views

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

Red Hat Enterprise Linux Installation Guide 5.2 - linux.meuhobby.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Multipath Storage<br />

Active Devices : 4<br />

Working Devices : 4<br />

Failed Devices : 0<br />

Spare Devices : 0<br />

Chunk Size : 64K<br />

Number Major Minor RaidDevice State<br />

0 8 1 0 active sync /dev/sda1<br />

1 8 17 1 active sync /dev/sdb1<br />

2 8 33 2 active sync /dev/sdc1<br />

3 8 49 3 active sync /dev/sdd1<br />

UUID : 25c0f2a1:e882dfc0:c0fe135e:6940d932<br />

Events : 0.1<br />

3.2. Creating a Multipath Device With mdadm<br />

In addition to creating RAID arrays, mdadm can also be used to take advantage of hardware<br />

supporting more than one I/O path to individual SCSI LUNs (disk drives). The goal of multipath<br />

storage is continued data availability in the event of hardware failure or individual path<br />

saturation. Because this configuration contains multiple paths (each acting as an independent<br />

virtual controller) accessing a <strong>com</strong>mon SCSI LUN (disk drive), the <strong>Linux</strong> kernel detects each<br />

shared drive once "through" each path. In other words, the SCSI LUN (disk drive) known as<br />

/dev/sda may also be accessible as /dev/sdb, /dev/sdc, and so on, depending on the<br />

specific configuration.<br />

To provide a single device that can remain accessible if an I/O path fails or be<strong>com</strong>es saturated,<br />

mdadm includes an additional parameter to its level option. This parameter multipath directs<br />

the md layer in the <strong>Linux</strong> kernel to re-route I/O requests from one pathway to another in the<br />

event of an I/O path failure.<br />

To create a multipath device, edit the /etc/mdadm.conf file to define values for the DEVICE and<br />

ARRAY lines that reflect your hardware configuration.<br />

Note<br />

Unlike the previous RAID example (where each device specified in<br />

/etc/mdadm.conf must represent different physical disk drives), each device in<br />

this file refers to the same shared disk drive.<br />

The <strong>com</strong>mand used for the creation of a multipath device is similar to that used to create a<br />

RAID device; the difference is the replacement of a RAID level parameter with the multipath<br />

parameter:<br />

mdadm -C /dev/md0 --level=multipath --raid-devices=4 /dev/sda1 /dev/sdb1<br />

/dev/sdc1 /dev/sdd1<br />

Continue creating array yes<br />

227

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!