Hi It is hard to believe I'm the only person for whom the vgscan filtering doesn't work as expected. Would anybody of you do a small test for me and send the result: put an empty CD/DVD into the drive vgscan -v -v -v -d 2>&1 | grep cdrom lvm version Provided your CD/DVD has a "cdrom" in the devicefile name. Please note if there is no media in the drive you won't see cdrom if you run vgscan, vgscan -v or vgscan -v -v Thanks for your time. Regards, Chris On Mon, Aug 29, 2005 at 07:58:59PM +0200, Luca Berra wrote: > On Sun, Aug 28, 2005 at 11:42:33AM +0000, Jean-Luc Coulon (f5ibh) wrote: > >Le 28.08.2005 13:07:37, Fredrik Tolf a écrit : > >>On Sun, 2005-08-28 at 12:17 +0200, Chris Osicki wrote: > >>> Hi > >>> > >>> I seam not to be able to convince vgscan to let my cdroms alone. > >>> In the file /etc/lvm/lvm.conf I have this filter: > >>> > >>> [ "r|/dev/cdrom.*" ] > >> > >>Try it without the dot: > >>[ "r|/dev/cdrom*" ] > > [ "r|/dev/cdrom*|"] maybe ? > > > >You can even be more restrictive/explicit: > >filter = [ "r|/dev/cdrom*|", "r|/dev/cdrw*|", "r|/dev/dvd*|", > >"r|/dev/hd[ab]|" ] > > > > i don't have the code at hand, but, if they are regular expression > "/dev/cdrom*" would match > /dev/cdrom > /dev/cdromm > /dev/cdrommm > /dev/cdrommmm > and so on.. > > see man 7 regex > > -- > Luca Berra -- bluca@comedia.it > Communication Media & Services S.r.l. > /"\ > \ / ASCII RIBBON CAMPAIGN > X AGAINST HTML MAIL > / \ > > _______________________________________________ > linux-lvm mailing list > linux-lvm@redhat.com > https://www.redhat.com/mailman/listinfo/linux-lvm > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/ -- Chris Osicki osk@osk.ch Dipl. Informatik-Ing. HTL _______________________________________________ linux-lvm mailing list linux-lvm@redhat.com https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/