* [linux-lvm] vgscan messages regarding read-only cdrom
@ 2003-11-30 12:59 Kai Weber
2003-11-30 15:26 ` Luca Berra
0 siblings, 1 reply; 5+ messages in thread
From: Kai Weber @ 2003-11-30 12:59 UTC (permalink / raw)
To: linux-lvm
Hi,
when starting lvm2 I get the following annoying messages from vgscan:
$ vgscan
Reading all physical volumes. This may take a while...
/dev/cdrom: open failed: Read-only file system
cdrom: open failed.
cdrom: open failed.
[...]
Found volume group "datavg" using metadata type lvm1
Found volume group "systemvg" using metadata type lvm1
The line "cdrom: open failed." is repeated about 50 times. I believe I can
ingore this message. But
* why is vgscan reading /dev/cdrom (a link to my first IDE
CD-ROM /dev/hdc)?
* how can I disable this message?
Kai
--
* mail kai.weber@glorybox.de . icq 102024972
web http://www.glorybox.de . pgp 0x594D4132
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] vgscan messages regarding read-only cdrom
2003-11-30 12:59 [linux-lvm] vgscan messages regarding read-only cdrom Kai Weber
@ 2003-11-30 15:26 ` Luca Berra
2003-12-01 4:11 ` Kai Weber
0 siblings, 1 reply; 5+ messages in thread
From: Luca Berra @ 2003-11-30 15:26 UTC (permalink / raw)
To: linux-lvm
On Sun, Nov 30, 2003 at 07:58:07PM +0100, Kai Weber wrote:
>* why is vgscan reading /dev/cdrom (a link to my first IDE
>CD-ROM /dev/hdc)?
>
>* how can I disable this message?
man lvm.conf
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] vgscan messages regarding read-only cdrom
2003-11-30 15:26 ` Luca Berra
@ 2003-12-01 4:11 ` Kai Weber
2003-12-01 13:56 ` Jose Luis Domingo Lopez
0 siblings, 1 reply; 5+ messages in thread
From: Kai Weber @ 2003-12-01 4:11 UTC (permalink / raw)
To: linux-lvm
* Luca Berra <bluca@comedia.it>:
> >* why is vgscan reading /dev/cdrom (a link to my first IDE
> >CD-ROM /dev/hdc)?
> >
> >* how can I disable this message?
>
> man lvm.conf
Done and and /etc/lvm/lvm.conf adjusted:
devices {
dir = "/dev"
scan = [ "/dev" ]
filter = [ "r|cdrom|" ]
cache = "/etc/lvm/.cache"
write_cache_state = 1
}
vgscan still reports
"/dev/cdrom: open failed: Read-only file system"
I tried the following variants:
filter = [ "r|/dev/cdrom" ]
filter = [ "r|/dev/cdrom", "r|/dev/hdc" ]
filter = [ "r|cdrom", "r|hdc" ]
Ideas? Kernel is 2.6.0-test9
LVM version: 2.00.07 (2003-09-16)
Library version: 1.00.05-ioctl-cvs (2003-09-01)
Driver version: 4.0.0
Kai
--
* mail kai.weber@glorybox.de . icq 102024972
web http://www.glorybox.de . pgp 0x594D4132
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] vgscan messages regarding read-only cdrom
2003-12-01 4:11 ` Kai Weber
@ 2003-12-01 13:56 ` Jose Luis Domingo Lopez
2003-12-01 19:04 ` Kai Weber
0 siblings, 1 reply; 5+ messages in thread
From: Jose Luis Domingo Lopez @ 2003-12-01 13:56 UTC (permalink / raw)
To: linux-lvm
On Monday, 01 December 2003, at 11:08:42 +0100,
Kai Weber wrote:
> devices {
> dir = "/dev"
> scan = [ "/dev" ]
> filter = [ "r|cdrom|" ]
> cache = "/etc/lvm/.cache"
> write_cache_state = 1
> }
>
It seems you can have just one instance of the "filter" directive, where
you must put every filter you want to apply for devices. For example,
this is what I have in my configuration file:
filter = [ "r|hdd|", "r|cdrom|", "r|md|", "a|.*|" ]
I accept every block device under /dev, but previously exclude /dev/hdd
(my CD-ROM device), /dev/cdrom al MD metadevices from the list. It works.
Greetings.
PS: the man page for lvm.conf doesn't explicitily says you can have just
one "filter" directive, neither the opposite, although the sample
"lvm.conf" bundled with sources and packages seemd to give a hint about
the correct syntax. Would it be necessary to be more specific about that ?
Greetings.
--
Jose Luis Domingo Lopez
Linux Registered User #189436 Debian Linux Sid (Linux 2.6.0-test10-mm1)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [linux-lvm] vgscan messages regarding read-only cdrom
2003-12-01 13:56 ` Jose Luis Domingo Lopez
@ 2003-12-01 19:04 ` Kai Weber
0 siblings, 0 replies; 5+ messages in thread
From: Kai Weber @ 2003-12-01 19:04 UTC (permalink / raw)
To: linux-lvm
* Jose Luis Domingo Lopez <linux-lvm@24x7linux.com>:
> It seems you can have just one instance of the "filter" directive, where
> you must put every filter you want to apply for devices. For example,
> this is what I have in my configuration file:
> filter = [ "r|hdd|", "r|cdrom|", "r|md|", "a|.*|" ]
Thank you for your help. This filter rule works as expected. As you
correctly noticed, the manpage is not clear about it.
Kai
--
* mail kai.weber@glorybox.de . icq 102024972
web http://www.glorybox.de . pgp 0x594D4132
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-12-01 19:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-30 12:59 [linux-lvm] vgscan messages regarding read-only cdrom Kai Weber
2003-11-30 15:26 ` Luca Berra
2003-12-01 4:11 ` Kai Weber
2003-12-01 13:56 ` Jose Luis Domingo Lopez
2003-12-01 19:04 ` Kai Weber
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.