Device Mapper Multipath PDF
Device Mapper Multipath PDF
Document overview
This document focuses on the best practices to leverage the features provided by Device Mapper
Multipath while deploying Oracle Automatic Storage Management (ASM) on Linux.
This document is not designed to replace the documentation supplied with individual solution components.
It is intended to provide customers an additional resource for configuring Oracle ASM with Device
Mapper multipath on Linux.
Intended audience
This document is intended for users who would be deploying Oracle ASM with Device Mapper Multipath
on Linux operating systems.
Prerequisites
This document assumes that the user is familiar with the following concepts:
Oracle ASM
Linux Device Mapper Multipath
Introduction
Automatic Storage Management (ASM) is a feature of Oracle 10g database that provides the services of
a filesystem, logical volume manager, and software RAID in a platform-independent manner.
From a hardware configuration standpoint, high availability means eliminating single points of failure
which is a key requirement. Multipathing is an important aspect of high availability configurations. HP
recommends Device Mapper Multipath as multipathing solution on Linux.
This document assumes that the storage devices used by Oracle ASM are the logical drives or LUs
with multiple paths.
On Linux, every path to the storage disk on SAN is represented by a device file /dev/sd*. DM multipath
driver creates a pseudo device /dev/mapper/* which can be used by the application for I/O. DM
multipath driver manages the I/Os sent to the disk and monitors the disk paths to balance the load across
all the available paths or to take corrective action in case of path failures.
In general, the pseudo devices under /dev/mapper are represented by the Universal Unique Identifier
(UUID) of the corresponding logical devices. If the user_friendly_names parameter in the multipath
configuration file is set to yes, then the devices under /dev/mapper are represented as mpath*.
The representation of the disks with user_friendly_names parameter set may differ (for example,
mpatha, mpath1) depending on the operating system distribution and version. The partition to these
disks may be represented as mpatha1, mpath1p1, and so on.
NOTE:
Using fdisk command to create partitions may fail to create multipath device for the partition device. It
is recommended to use parted command to create partitions for the device.
For more information on device name aliases and multipath configurations, see the Linux Device Mapper
Multipath guide provided with the kit.
Configuring ASM
While configuring ASM, the configured ASM disks will be listed as candidate disks. Select each of the
disks to be included in the disk group and complete the installation.
After installing an ASM instance, perform the final ASM configuration. When ASMLib and DM based
paths are used, the ASM initialization parameter asm_diskstring must be specified as ORCL:*. This
parameter specifies a comma-delimited list of strings that limits the set of disks that an ASM instance
discovers. Using a more restrictive value may reduce the time required for ASM to perform discovery, and
thus improve disk group mount time or the time for adding a disk to a disk group.
5.
Click Finish and login to the Oracle Enterprise Manager (as shown in the following figure) as sys,
click Startup, and complete the startup procedure by providing the required access credentials.
References
Installation and Reference Guide Device Mapper Multipath Enablement Kit for HP StorageWorks
Disk Arrays
http://www.hp.com/go/devicemapper
For a more detailed overview of ASM
http://www.oracle.com/technology/asm