Hi,
every lvm command gives one line with: /dev/cdrom: open failed: No medium found
I looked at https://bugzilla.redhat.com/show_bug.cgi?id=431901
and changed filter in /etc/lvm/lvm.conf to filter = [ "r|/dev/cdrom|", "a/.*/" ]
then deleted cache /etc/lvm/cache/.cache
This seems to help, but after a while the message reappears.
Is there a way to get rid of it, because I'm making use of lvm with snapshots very often?
Rainer
At Tue, 09 Nov 2010 14:26:44 +0100 CentOS mailing list centos@centos.org wrote:
Hi,
every lvm command gives one line with: /dev/cdrom: open failed: No medium found
I looked at https://bugzilla.redhat.com/show_bug.cgi?id=431901
and changed filter in /etc/lvm/lvm.conf to filter = [ "r|/dev/cdrom|", "a/.*/" ]
then deleted cache /etc/lvm/cache/.cache
This seems to help, but after a while the message reappears.
Is there a way to get rid of it, because I'm making use of lvm with snapshots very often?
Two questions:
Is your CD-ROM drive an IDE drive (/dev/hd<mumble>)?
Are any of your LVM volumes on IDE drives?
If all of your LVM volumes are on SATA (or SCSI), then you can tell LVM to skip scanning the IDE devices (/dev/hd*). Set your filter to reject all IDE drives.
Rainer _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Am 09.11.2010 14:57, schrieb Robert Heller:
At Tue, 09 Nov 2010 14:26:44 +0100 CentOS mailing listcentos@centos.org wrote:
every lvm command gives one line with: /dev/cdrom: open failed: No medium found
...
Two questions:
Is your CD-ROM drive an IDE drive (/dev/hd<mumble>)?
I'm running C5 as a VMware esxi guest.
[root@backup ~]# ll /dev/cdrom lrwxrwxrwx 1 root root 3 3. Nov 13:04 /dev/cdrom -> hda [root@backup ~]# dmesg |grep hda ide0: BM-DMA at 0x10c0-0x10c7, BIOS settings: hda:DMA, hdb:pio hda: VMware Virtual IDE CDROM Drive, ATAPI CD/DVD-ROM drive hda: ATAPI 1X DVD-ROM DVD-R-RAM CD-R/RW drive, 32kB Cache, UDMA(33)
Are any of your LVM volumes on IDE drives?
No.
If all of your LVM volumes are on SATA (or SCSI), then you can tell LVM to skip scanning the IDE devices (/dev/hd*). Set your filter to reject all IDE drives.
I now have filter = [ "r|/dev/hda|", "r|/dev/cdrom|", "a/.*/" ]
So far it seems to work...
Rainer