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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

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. coredumpctl Command Examples in Linux
  2. How to Recover Corrupted Root Partition from Rescue Mode in CentOS/RHEL 5,6
  3. swapoff: command not found
  4. How to analyze basic system performance using – vmstat, sar, iostat and mpstat
  5. chattr: command not found
  6. ClusterSSH(cssh) – Manage Multiple SSH Sessions on Linux
  7. daemon: command not found
  8. lshw Command Examples in Linux
  9. How to Install Apache, MariaDB, and PHP (FAMP) stack on FreeBSD 11
  10. bc: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright