• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

HowTos | Basics | Concepts

  • Solaris
    • Solaris 11
    • SVM
    • ZFS
    • Zones
    • LDOMs
    • Hardware
  • Linux
    • CentOS/RHEL 7
    • RHCSA notes
    • SuSE Linux Enterprise
    • Linux Services
  • VCS
    • VxVM
  • Interview Questions
  • oracle
    • ASM
    • mysql
    • RAC
    • oracle 12c
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Hadoop
    • Hortonworks HDP
      • HDPCA
    • Cloudera
      • CCA 131

Understanding DM-multipath deamon (multipathd)

By admin

The multipathd daemon checks for failed paths and reconfigures the multipath map. The daemon runs the multipath utility when events occur that require a device map reconfiguration. You can run the daemon in the foreground, which displays all messages using the -d option. You can set the verbosity level using the -v [level] option. The multipathd daemon also has an interactive mode enabled with the –k option. Some of the commands available in interactive mode include:

  • help – List the available interactive commands.
  • list|show paths – Show the paths that multipathd is monitoring and their state.
  • list|show maps|multipaths – Show the multipath devices that multipathd is monitoring.
  • list|show topology – Show the multipath topology. This gives the same output as using the multipath -ll command.
  • list|show config – Show the current configuration that is derived from /etc/multipath.conf.
  • reconfigure – Reconfigure the multipaths. This is triggered automatically after any hotplug event.
  • quit|exit – End the interactive session.

To run the daemon in the foreground (the following example shows that the daemon is running, stops the daemon, and then starts the daemon in the foreground):

# multipathd –d
[date_time] | ux_socket_listen error
# systemctl stop multipathd
# multipathd –d
[date_time] | mpatha: load table [0 20971520 multipath 0 0 1 1 service-time 0 1 1 8:0 1]
[date_time] | mpatha: event checker started
[date_time] | path checkers start up

The following example runs the daemon in interactive mode:

# multipathd –k
multipathd> help
list|show paths
list|show paths format $format ...
multipathd> list paths
hcil     dev  dev_t  pri  dm_st   chk_st  dev_st   next_check 
2:0:0:1  sda  8:0    1    active  ready   running  .......... 1/20 
2:0:0:2  sdb  8:16   1    active  ready   running  .......... 1/20 
...
multipathd> list maps
name     sysfs   uuid
mpatha   dm-2    36001405a7c28190541f4d61880050090
mpathb   dm-3    36001405346939038cc9480caf0dd9a9d
multipathd> list devices
available block devices:
      sda  devnode whitelisted, monitored
      sdb  devnode whitelisted, monitored
      sr0  devnode blacklisted, unmonitored
      dm-0 devnode blacklisted, unmonitored
      ...
multipathd> quit
Beginners guide to Device Mapper (DM) multipathing

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. Firewalld Command line Reference (Cheat Sheet)
  2. CentOS / RHEL : How to find the creation time of LVM volume
  3. How to check change log of RPM packages on CentOS/RHEL
  4. How to find the mounting options of currently mounted filesystem
  5. How To Find When The Spfile Was Created On Linux Server
  6. How to Increase the File Download Size Limit in Apache
  7. CentOS / RHEL : How to restrict SSH login by time of day
  8. CentOS / RHEL 7 : How to disable IPv6 on a specific interface only
  9. OpenLDAP Server and Client Utilities list
  10. Linux OS Service ‘syslog’

You May Also Like

Primary Sidebar

Recent Posts

  • How to Pause and Resume Docker Containers
  • How to find docker storage device and its size (device mapper storage driver)
  • Understanding “docker stats” Command Output
  • ‘docker images’ command error – “Permission Denied”
  • Docker Basics – Expose ports, port binding and docker link
  • Archives
  • Contact Us
  • Copyright

© 2019 · The Geek Diary