Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<  820 of 909 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 12760
Last update: 05-22-08
Issue:
Why do I get I/O errors when I run lvm commands on my system configured with multipath?
Resolution:

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.

To avoid this problem filtering needs to be configured in /etc/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/mpath/.*/", "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/mpath/.*/", "a/dev/cciss/.*/", "r/.*/" ]

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

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

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

# vgscan


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<   820  of  909  >>