Red_Hat_Enterprise_Linux-7-DM_Multipath-en-US.pdf

(1378 KB) Pobierz
Red Hat Enterprise Linux 7
DM Multipath
DM Multipath Configuration and Administration
Red Hat Enterprise Linux 7 DM Multipath
DM Multipath Configuration and Administration
Legal Notice
Copyright © 2014 Red Hat, Inc. and others.
T his document is licensed by Red Hat under the
Creative Commons Attribution-ShareAlike 3.0 Unported
License.
If you distribute this document, or a modified version of it, you must provide attribution to Red
Hat, Inc. and provide a link to the original. If the document is modified, all Red Hat trademarks must be
removed.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section
4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo,
and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux ® is the registered trademark of Linus T orvalds in the United States and other countries.
Java ® is a registered trademark of Oracle and/or its affiliates.
XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States
and/or other countries.
MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and other
countries.
Node.js ® is an official trademark of Joyent. Red Hat Software Collections is not formally related to or
endorsed by the official Joyent Node.js open source or commercial project.
T he OpenStack ® Word Mark and OpenStack Logo are either registered trademarks/service marks or
trademarks/service marks of the OpenStack Foundation, in the United States and other countries and
are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or
sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
Abstract
T his book provides information on using the Device-Mapper Multipath feature of Red Hat Enterprise
Linux 7.
Table of Contents
Table of Contents
C . . . . . . . Device . . . . . . . . . . . . . . . . .
. .hapter. 1. . . . . . . . Mapper. Multipathing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 . . . . . . . .
.
1.1. Overview of DM-Multipath
2
1.2. Storage Array Support
4
1.3. DM-Multipath Components
4
1.4. DM-Multipath Setup Overview
5
C . . . . . . . Multipath Devices
. .hapter. 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 . . . . . . . .
.
2.1. Multipath Device Identifiers
6
2.2. Consistent Multipath Device Names in a Cluster
6
2.3. Multipath Device Attributes
7
2.4. Multipath Devices in Logical Volumes
7
C . . . . . . . . . . . . . . Up . . . . . . . . . . . .
. .hapter. 3. Setting . . . DM-Multipath . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 . . . . . . . .
.
3.1. Setting Up DM-Multipath
9
3.2. Ignoring Local Disks when Generating Multipath Devices
10
3.3. Configuring Storage Devices
12
3.4. Setting Up Multipathing in the initramfs File System
13
C . . . . . . T . . DM-Multipath . . . . . . . . . . . . . . .
. .hapter. 4 . . .he . . . . . . . . . . . . . Configuration. File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14 . . . . . . . .
..
4 .1. Configuration File Overview
14
4 .2. Configuration File Blacklist
15
4 .3. Configuration File Defaults
17
4 .4. Multipaths Device Configuration Attributes
23
4 .5. Configuration File Devices
26
C . . . . . . . DM-Multipath . . . . . . . . . . . . . . . . T . . . . . . . . . . . . .
. .hapter. 5. . . . . . . . . . . . . . Administration .and . .roubleshooting . . . . . . . . . . . . . . . . . . . . . . . . 32 . . . . . . . .
..
5.1. Resizing an Online Multipath Device
32
5.2. Moving root File Systems from a Single Path Device to a Multipath Device
32
5.3. Moving swap File Systems from a Single Path Device to a Multipath Device
35
5.4. T he Multipath Daemon
35
5.5. Issues with Large Number of LUNs
36
5.6. Issues with queue_if_no_path feature
36
5.7. Multipath Command Output
36
5.8. Multipath Queries with multipath Command
37
5.9. Multipath Command Options
38
5.10. Determining Device Mapper Entries with the dmsetup Command
38
5.11. T roubleshooting with the multipathd Interactive Console
39
Revision History
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 0 . . . . . . . .
..
I . . . .
.ndex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 0 . . . . . . . .
..
1
Zgłoś jeśli naruszono regulamin