How To Install device-mapper-multipath on CentOS 8

device-mapper-multipath is Tools to manage multipath devices using device-mapper

Introduction

In this tutorial we learn how to install device-mapper-multipath on CentOS 8.

What is device-mapper-multipath

device-mapper-multipath provides tools to manage multipath devices by instructing the device-mapper multipath kernel module what to do. The tools are * multipath - Scan the system for multipath devices and assemble them. * multipathd - Detects when paths fail and execs multipath to update things.

We can use yum or dnf to install device-mapper-multipath on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install device-mapper-multipath.

Install device-mapper-multipath on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install device-mapper-multipath using dnf by running the following command:

sudo dnf -y install device-mapper-multipath

Install device-mapper-multipath on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install device-mapper-multipath using yum by running the following command:

sudo yum -y install device-mapper-multipath

How To Uninstall device-mapper-multipath on CentOS 8

To uninstall only the device-mapper-multipath package we can use the following command:

sudo dnf remove device-mapper-multipath

device-mapper-multipath Package Contents on CentOS 8

/etc/multipath
/usr/lib/.build-id
/usr/lib/.build-id/98
/usr/lib/.build-id/98/dbe6578dc78bdca02567c76973ca89bd5c9e62
/usr/lib/.build-id/ac
/usr/lib/.build-id/ac/34b93ffab102de751521252fe9ea394d5c3455
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/d8766c00b3e8f36d6a4cafb3e6920ca0d6080e
/usr/lib/systemd/system/multipathd.service
/usr/lib/systemd/system/multipathd.socket
/usr/lib/udev/rules.d/11-dm-mpath.rules
/usr/lib/udev/rules.d/62-multipath.rules
/usr/sbin/mpathconf
/usr/sbin/mpathpersist
/usr/sbin/multipath
/usr/sbin/multipathd
/usr/share/doc/device-mapper-multipath
/usr/share/doc/device-mapper-multipath/README
/usr/share/doc/device-mapper-multipath/README.alua
/usr/share/doc/device-mapper-multipath/multipath.conf
/usr/share/licenses/device-mapper-multipath
/usr/share/licenses/device-mapper-multipath/GPL-2.0
/usr/share/licenses/device-mapper-multipath/LGPL-2.0
/usr/share/man/man5/multipath.conf.5.gz
/usr/share/man/man8/mpathconf.8.gz
/usr/share/man/man8/mpathpersist.8.gz
/usr/share/man/man8/multipath.8.gz
/usr/share/man/man8/multipathd.8.gz

References

Summary

In this tutorial we learn how to install device-mapper-multipath on CentOS 8 using yum and dnf.