How do I configure LVM to stop probing my CD-ROM if I get errors about the /dev/cdrom device whenever executing the vgdisplay or vgscan commands?

Updated -

Note: The following steps are for LVM2 which is in Red Hat Enterprise Linux 4 and 5.

When executing the vgscan or vgdisplay commands the following error might be printed along with the output of the commands:

 /dev/cdrom: read failed after 0 of 4096 at 0: Input/output error
  --- Volume group ---
  VG Name           ...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.