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.

Chapter 22. Additional Information for IBM System z Users<br />

mdadm: array /dev/md0 started.<br />

Due to the length of the mdadm <strong>com</strong>mand line, it has been broken into two lines.<br />

In this example, the hardware consists of one SCSI LUN presented as four separate SCSI<br />

devices, each accessing the same storage by a different pathway. Once the multipath device<br />

/dev/md0 is created, all I/O operations referencing /dev/md0 are directed to /dev/sda1,<br />

/dev/sdb1, /dev/sdc1, or /dev/sdd1 (depending on which path is currently active and<br />

operational).<br />

The configuration of /dev/md0 can be examined more closely using the <strong>com</strong>mand mdadm<br />

--detail /dev/md0 to verify that it is, in fact, a multipath device:<br />

/dev/md0:<br />

Version : 00.90.00<br />

Creation Time : Tue Mar 2 10:56:37 2004<br />

Raid Level : multipath<br />

Array Size : 3905408 (3.72 GiB 3.100 GB)<br />

Raid Devices : 1<br />

Total Devices : 4<br />

Preferred Minor : 0<br />

Persistence : Superblock is persistent<br />

Update Time : Tue Mar 2 10:56:37 2004<br />

State : dirty, no-errors<br />

Active Devices : 1<br />

Working Devices : 4<br />

Failed Devices : 0<br />

Spare Devices : 3<br />

Number Major Minor RaidDevice State<br />

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

1 8 17 1 spare /dev/sdb1<br />

2 8 33 2 spare /dev/sdc1<br />

3 8 1 3 spare /dev/sda1<br />

UUID : 4b564608:fa01c716:550bd8ff:735d92dc<br />

Events : 0.1<br />

Another feature of mdadm is the ability to force a device (be it a member of a RAID array or a<br />

path in a multipath configuration) to be removed from an operating configuration. In the<br />

following example, /dev/sda1 is flagged as being faulty, is then removed, and finally is added<br />

back into the configuration. For a multipath configuration, these actions would not affect any I/O<br />

activity taking place at the time:<br />

# mdadm /dev/md0 -f /dev/sda1<br />

mdadm: set /dev/sda1 faulty in /dev/md0<br />

# mdadm /dev/md0 -r /dev/sda1<br />

mdadm: hot removed /dev/sda1<br />

# mdadm /dev/md0 -a /dev/sda1<br />

mdadm: hot added /dev/sda1<br />

#<br />

228

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

Saved successfully!

Ooh no, something went wrong!