Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

Why do I get I/O errors when I run lvm commands on my system configured with multipath in RHEL?

Updated on

Request a new translation or translation update

A translation for your language preference does not exist. Click below to request a translation for your selected language.

Submit request

Issue

  • If a active/passive storage array is used in a multipath configuration there is a set of LUN that are managed by the passive controller. If an application tries to access them the storage array will return an I/O error. Some lvm commands, like pvscan or vgscan for instance, needs to scan the devices available in the system to find lvm metadata. Each time one of the command tries to access a passive LUN it will generate I/O errors.

Environment

  • Red Hat Enterprise Linux
  • Storage LUN(s) operating in an active/passive mode which fails I/O sent down the passive path

Resolution

To avoid this problem filtering needs to be configured in /etc/lvm/lvm.conf to restrict the scan process only to the local disks and the multipath devices. To do so the following line should be added to /etc/lvm/lvm.conf to enable scanning of device-mapper block devices:

types = [ "device-mapper", 1]

To only scan mpath devices, change the filter line in lvm.conf to:

filter = [ "a/dev/mapper/.*/", "r/.*/" ]

If the local disks use lvm, add them into the filter configuration. For example, use the local cciss disks it requires:

filter = [ "a/dev/mapper/.*/", "a/dev/cciss/.*/", "r/.*/" ]

To include a volume on the second partition of the first local scsi disk add the following:

filter = [ "a/dev/mapper/.*/", "a/dev/sda2$/", "r/.*/" ]

After making those changes run this command to ensure the lvm cache is regenerated:

# vgscan

This solution is part of Red Hat's fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Red Hat LinkedIn YouTube Facebook X, formerly Twitter

Quick Links

Help

Site Info

Related Sites

© 2026 Red Hat