All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] vgscan & CDROM
@ 2005-08-28 10:17 Chris Osicki
  2005-08-28 11:07 ` Fredrik Tolf
  2005-08-28 11:24 ` mailinglist
  0 siblings, 2 replies; 11+ messages in thread
From: Chris Osicki @ 2005-08-28 10:17 UTC (permalink / raw)
  To: linux-lvm

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.*" ]

when I run vgscan -v -v I see the following:


      /dev/cdrom1: size is 31244 sectors
  /dev/cdrom1: read failed after 0 of 2048 at 0: Input/output error
      /dev/cdrom1: size is 31244 sectors
      /dev/cdrom1: No label detected


I tried other variants of this filter without luck.
On the laptop I'm writing this message on it took several minutes for
vgscan to finish. On another PC it doesn't take that long but is
annoying. How do I convince vgscan not to scan those devices?
I tried also such a filter as test:

[ "r|/dev/pty.*" ]

it didn't work either.

I'm using 

  LVM version:     2.01.09 (2005-04-04)
  Library version: 1.01.00-ioctl (2005-01-17)
  Driver version:  4.4.0

I would be very thankful for any help.

Regards,
Chris

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [linux-lvm] vgscan & CDROM
  2005-08-28 11:24 ` mailinglist
@ 2005-08-28 10:47   ` Chris Osicki
  2005-08-28 11:54     ` mailinglist
  0 siblings, 1 reply; 11+ messages in thread
From: Chris Osicki @ 2005-08-28 10:47 UTC (permalink / raw)
  To: LVM general discussion and development

On Sun, Aug 28, 2005 at 01:24:48PM +0200, mailinglist@krausam.de wrote:
> Try:
> filter = [ "r|/dev/cdrom|" ]

Have you tried it?

This doesn't work for me.

Does anybody know the solution?

Regards,
Chris

> 
> 
> 
> Am Sonntag, 28. August 2005 12:17 schrieb Chris Osicki:
> > 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.*" ]
> >
> > when I run vgscan -v -v I see the following:
> >
> >
> >       /dev/cdrom1: size is 31244 sectors
> >   /dev/cdrom1: read failed after 0 of 2048 at 0: Input/output error
> >       /dev/cdrom1: size is 31244 sectors
> >       /dev/cdrom1: No label detected
> >
> >
> > I tried other variants of this filter without luck.
> > On the laptop I'm writing this message on it took several minutes for
> > vgscan to finish. On another PC it doesn't take that long but is
> > annoying. How do I convince vgscan not to scan those devices?
> > I tried also such a filter as test:
> >
> > [ "r|/dev/pty.*" ]
> >
> > it didn't work either.
> >
> > I'm using
> >
> >   LVM version:     2.01.09 (2005-04-04)
> >   Library version: 1.01.00-ioctl (2005-01-17)
> >   Driver version:  4.4.0
> >
> > I would be very thankful for any help.
> >
> > Regards,
> > Chris
> >
> > _______________________________________________
> > 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/
> 
> -- 
> Micha Krause
> 
> Jabber:	SMS-King@jabber.org
> Email:	mailinglist@krausam.de



> _______________________________________________
> 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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [linux-lvm] vgscan & CDROM
  2005-08-28 10:17 [linux-lvm] vgscan & CDROM Chris Osicki
@ 2005-08-28 11:07 ` Fredrik Tolf
  2005-08-28 11:42   ` Jean-Luc Coulon (f5ibh)
  2005-08-28 11:24 ` mailinglist
  1 sibling, 1 reply; 11+ messages in thread
From: Fredrik Tolf @ 2005-08-28 11:07 UTC (permalink / raw)
  To: LVM general discussion and development, lvm

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*" ]

The /dev/cdrom* devices don't usually contain a dot, unless you've
changed your udev rules. Judging from your output of `vgscan -v -v',
however, it seems that you haven't done so.

Hope it helps,
Fredrik Tolf

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [linux-lvm] vgscan & CDROM
  2005-08-28 10:17 [linux-lvm] vgscan & CDROM Chris Osicki
  2005-08-28 11:07 ` Fredrik Tolf
@ 2005-08-28 11:24 ` mailinglist
  2005-08-28 10:47   ` Chris Osicki
  1 sibling, 1 reply; 11+ messages in thread
From: mailinglist @ 2005-08-28 11:24 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 1379 bytes --]

Try:
filter = [ "r|/dev/cdrom|" ]



Am Sonntag, 28. August 2005 12:17 schrieb Chris Osicki:
> 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.*" ]
>
> when I run vgscan -v -v I see the following:
>
>
>       /dev/cdrom1: size is 31244 sectors
>   /dev/cdrom1: read failed after 0 of 2048 at 0: Input/output error
>       /dev/cdrom1: size is 31244 sectors
>       /dev/cdrom1: No label detected
>
>
> I tried other variants of this filter without luck.
> On the laptop I'm writing this message on it took several minutes for
> vgscan to finish. On another PC it doesn't take that long but is
> annoying. How do I convince vgscan not to scan those devices?
> I tried also such a filter as test:
>
> [ "r|/dev/pty.*" ]
>
> it didn't work either.
>
> I'm using
>
>   LVM version:     2.01.09 (2005-04-04)
>   Library version: 1.01.00-ioctl (2005-01-17)
>   Driver version:  4.4.0
>
> I would be very thankful for any help.
>
> Regards,
> Chris
>
> _______________________________________________
> 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/

-- 
Micha Krause

Jabber:	SMS-King@jabber.org
Email:	mailinglist@krausam.de

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [linux-lvm] vgscan & CDROM
  2005-08-28 11:07 ` Fredrik Tolf
@ 2005-08-28 11:42   ` Jean-Luc Coulon (f5ibh)
  2005-08-29 17:58     ` Luca Berra
  0 siblings, 1 reply; 11+ messages in thread
From: Jean-Luc Coulon (f5ibh) @ 2005-08-28 11:42 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 776 bytes --]

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]|" ]

(my drives are /dev/hda and /dev/hdb)
> 
> The /dev/cdrom* devices don't usually contain a dot, unless you've
> changed your udev rules. Judging from your output of `vgscan -v -v',
> however, it seems that you haven't done so.
> 
> Hope it helps,
> Fredrik Tolf

Jean-Luc

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [linux-lvm] vgscan & CDROM
  2005-08-28 10:47   ` Chris Osicki
@ 2005-08-28 11:54     ` mailinglist
  2005-08-28 11:56       ` Chris Osicki
  0 siblings, 1 reply; 11+ messages in thread
From: mailinglist @ 2005-08-28 11:54 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 3966 bytes --]

Works for me.

but my dev is /dev/cdrom if yours is /dev/cdrom1 try filter = 
[ "r|/dev/cdrom1|" ]

Am Sonntag, 28. August 2005 12:47 schrieb Chris Osicki:
> On Sun, Aug 28, 2005 at 01:24:48PM +0200, mailinglist@krausam.de wrote:
> > Try:
> > filter = [ "r|/dev/cdrom|" ]
>
> Have you tried it?
>
> This doesn't work for me.
>
> Does anybody know the solution?
>
> Regards,
> Chris
>
> > Am Sonntag, 28. August 2005 12:17 schrieb Chris Osicki:
> > > 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.*" ]
> > >
> > > when I run vgscan -v -v I see the following:
> > >
> > >
> > >       /dev/cdrom1: size is 31244 sectors
> > >   /dev/cdrom1: read failed after 0 of 2048 at 0: Input/output error
> > >       /dev/cdrom1: size is 31244 sectors
> > >       /dev/cdrom1: No label detected
> > >
> > >
> > > I tried other variants of this filter without luck.
> > > On the laptop I'm writing this message on it took several minutes for
> > > vgscan to finish. On another PC it doesn't take that long but is
> > > annoying. How do I convince vgscan not to scan those devices?
> > > I tried also such a filter as test:
> > >
> > > [ "r|/dev/pty.*" ]
> > >
> > > it didn't work either.
> > >
> > > I'm using
> > >
> > >   LVM version:     2.01.09 (2005-04-04)
> > >   Library version: 1.01.00-ioctl (2005-01-17)
> > >   Driver version:  4.4.0
> > >
> > > I would be very thankful for any help.
> > >
> > > Regards,
> > > Chris
> > >
> > > _______________________________________________
> > > 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/
> >
> > --
> > Micha Krause
> >
> > Jabber:	SMS-King@jabber.org
> > Email:	mailinglist@krausam.de
> >
> >
> >
> > _______________________________________________
> > 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/

-- 
Micha Krause

Jabber:	SMS-King@jabber.org
Email:	Micha@krausam.de

PGP:
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.1 (GNU/Linux)

mQGiBEKdhB0RBACNN7m5cfwk5NwowfHoqTDtPwPMikXmbrxAvsu9LPcs14lag3wt
0FsnGtHT0SUFRmSmz2YLJ0puLdKHmNrO+rItnjdgu/vVBLbCme39jSERjTO4OC/2
bRoB21SAKFoxV8oGNgxrwhjk4MNdyGcGw/UbtI5MxplZyZXOGAV3TDS4rwCgpYwc
4PWDV1a5zYu+X5NPoo0XNFcD/3wFKxa4HHBQvstL8CcIEoapvHl0fczAy/4ZIxxJ
KeJ1p6xoY6JfelfhhGSt7yzXPGljC1FxC7KQXUNCiUvKHO2vuz/X5jU+671nSGDz
6WUap1/NOkDBqDu9x3gjq7KpCdESK4KnULcf4tjqE1B6jU2Vfq3ebq/+AceQWP31
uN5CA/9Wv4hQCMnJ+NwMLgjecA1PNQa3kPNQsuRbxYypUbg1IozfRh0sSqzbFGf+
88BUjY75jkm54IIV7olorF3t1zzYTs8weI13GP6ECV5juacYZ3+tNNW3AJfBNK5f
zbJWSZ85wxdruwoUtk6ujE0XQN8VNUCS6FFFeFve3pE8DEr7+bQfTWljaGEgS3Jh
dXNlIDxtaWNoYUBrcmF1c2FtLmRlPoheBBMRAgAeBQJCnYQdAhsDBgsJCAcDAgMV
AgMDFgIBAh4BAheAAAoJEHwEeObQNvC4QncAoIgvjvIA68p2ekxktb8OQ0ATKnKQ
AJ0Upj7UEzRLvuvZRnoefj/16lPmIbkCDQRCnYQjEAgA+CuAzxaEPyG3/fjOa54Z
SiAMt2UBNj/8opoFM+tamX60KJIa03EqIafuKE/1tLGbL4936AKIIavoFIfDZBcl
enYK/cb738H0e30FGvUl+SS2xuw4yNLbJRFMvR/U2XrjwRnwWrOV8FSX46UsaFoL
a6yLAFMuxQI33mpd2GuInDLALM7IAxpER04MECynTqLD0kkNHC5XcnlASXMpJoeH
w/ThHqoxT4GF5y3Fr8j1ujt0xA12eRxErAoHKMX1HDMmSAh2LA4VFoFCfnELBFJu
cBnGCU10pYVCHy3qo0r6/iLB/etyLEOZM4mzAS8sUM+GfkA7mYFUtaMKUMRuVSPB
ZwADBQgAvMPCaPC2Dmrj1HNSE1WQlA/TagkVOru8E3PoBgjbRSRgFS2WQKIJ+yAw
drO2eX/eG+q4blVCQZD8QM17IMuKSRQj9YGxWbEMn/am5BnUA4W9THi4IHREFj/7
3rrLeER7y00KUvXc9grGe5BprjFrkbkbNbDz+N4PhX6D/5LKzrQ6c8yLQgKYCPf/
GCXb+6aB3myvTMy0QaxiW/z59are5o5tjQRZXU1QoPnMcArK8Yk38StrU8efIjeu
v6OgVau2pPF3PTSpl50TWXHVL1+yhBhYJRt08bXHRLwyDbAHL5EfunR+/gXN9bFy
x15YdErTKjZkJCmdfOQHhICiMPTAc4hJBBgRAgAJBQJCnYQjAhsMAAoJEHwEeObQ
NvC44JAAn092/z/Oe4FsFKmVGryK1hgbjTfLAJ9lYqKX52FmTbOF2Y5ci/il8Igs
2g==
=G0+3
-----END PGP PUBLIC KEY BLOCK-----


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [linux-lvm] vgscan & CDROM
  2005-08-28 11:54     ` mailinglist
@ 2005-08-28 11:56       ` Chris Osicki
  2005-08-28 18:36         ` Luca Berra
  0 siblings, 1 reply; 11+ messages in thread
From: Chris Osicki @ 2005-08-28 11:56 UTC (permalink / raw)
  To: micha, LVM general discussion and development

On Sun, Aug 28, 2005 at 01:54:38PM +0200, mailinglist@krausam.de wrote:
> Works for me.

Even if you put an empty CD-ROM or DVD into the drive and run
vgscan -v -v -v 2>&1 | grep cdrom ?

Then we must be using different lvm versions.

> 
> but my dev is /dev/cdrom if yours is /dev/cdrom1 try filter = 
> [ "r|/dev/cdrom1|" ]

OK, that are my filters now:

    filter = [ "r|/dev/hdb|" ]
    filter = [ "r|/dev/hdc|" ]
    filter = [ "r|/dev/cdrom|" ]
    filter = [ "r|/dev/cdrom1|" ]
    filter = [ "r|/dev/cdrom*|" ]
    filter = [ "r|/dev/cdrom.*|" ]

I have two DVD writers /dev/hd[ab] /dev/cdrom and /dev/cdrom1 are
softlinks to them.
vgscan still access them both.

Could anyone who knows the code comment on this?
Looks like I will be going to read it.

Thanks,
Chris

> 
> Am Sonntag, 28. August 2005 12:47 schrieb Chris Osicki:
> > On Sun, Aug 28, 2005 at 01:24:48PM +0200, mailinglist@krausam.de wrote:
> > > Try:
> > > filter = [ "r|/dev/cdrom|" ]
> >
> > Have you tried it?
> >
> > This doesn't work for me.
> >
> > Does anybody know the solution?
> >
> > Regards,
> > Chris
> >
> > > Am Sonntag, 28. August 2005 12:17 schrieb Chris Osicki:
> > > > 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.*" ]
> > > >
> > > > when I run vgscan -v -v I see the following:
> > > >
> > > >
> > > >       /dev/cdrom1: size is 31244 sectors
> > > >   /dev/cdrom1: read failed after 0 of 2048 at 0: Input/output error
> > > >       /dev/cdrom1: size is 31244 sectors
> > > >       /dev/cdrom1: No label detected
> > > >
> > > >
> > > > I tried other variants of this filter without luck.
> > > > On the laptop I'm writing this message on it took several minutes for
> > > > vgscan to finish. On another PC it doesn't take that long but is
> > > > annoying. How do I convince vgscan not to scan those devices?
> > > > I tried also such a filter as test:
> > > >
> > > > [ "r|/dev/pty.*" ]
> > > >
> > > > it didn't work either.
> > > >
> > > > I'm using
> > > >
> > > >   LVM version:     2.01.09 (2005-04-04)
> > > >   Library version: 1.01.00-ioctl (2005-01-17)
> > > >   Driver version:  4.4.0
> > > >
> > > > I would be very thankful for any help.
> > > >
> > > > Regards,
> > > > Chris
> > > >
> > > > _______________________________________________
> > > > 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/
> > >
> > > --
> > > Micha Krause
> > >
> > > Jabber:	SMS-King@jabber.org
> > > Email:	mailinglist@krausam.de
> > >
> > >
> > >
> > > _______________________________________________
> > > 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/
> 
> -- 
> Micha Krause
> 
> Jabber:	SMS-King@jabber.org
> Email:	Micha@krausam.de
> 
> PGP:
> -----BEGIN PGP PUBLIC KEY BLOCK-----
> Version: GnuPG v1.4.1 (GNU/Linux)
> 
> mQGiBEKdhB0RBACNN7m5cfwk5NwowfHoqTDtPwPMikXmbrxAvsu9LPcs14lag3wt
> 0FsnGtHT0SUFRmSmz2YLJ0puLdKHmNrO+rItnjdgu/vVBLbCme39jSERjTO4OC/2
> bRoB21SAKFoxV8oGNgxrwhjk4MNdyGcGw/UbtI5MxplZyZXOGAV3TDS4rwCgpYwc
> 4PWDV1a5zYu+X5NPoo0XNFcD/3wFKxa4HHBQvstL8CcIEoapvHl0fczAy/4ZIxxJ
> KeJ1p6xoY6JfelfhhGSt7yzXPGljC1FxC7KQXUNCiUvKHO2vuz/X5jU+671nSGDz
> 6WUap1/NOkDBqDu9x3gjq7KpCdESK4KnULcf4tjqE1B6jU2Vfq3ebq/+AceQWP31
> uN5CA/9Wv4hQCMnJ+NwMLgjecA1PNQa3kPNQsuRbxYypUbg1IozfRh0sSqzbFGf+
> 88BUjY75jkm54IIV7olorF3t1zzYTs8weI13GP6ECV5juacYZ3+tNNW3AJfBNK5f
> zbJWSZ85wxdruwoUtk6ujE0XQN8VNUCS6FFFeFve3pE8DEr7+bQfTWljaGEgS3Jh
> dXNlIDxtaWNoYUBrcmF1c2FtLmRlPoheBBMRAgAeBQJCnYQdAhsDBgsJCAcDAgMV
> AgMDFgIBAh4BAheAAAoJEHwEeObQNvC4QncAoIgvjvIA68p2ekxktb8OQ0ATKnKQ
> AJ0Upj7UEzRLvuvZRnoefj/16lPmIbkCDQRCnYQjEAgA+CuAzxaEPyG3/fjOa54Z
> SiAMt2UBNj/8opoFM+tamX60KJIa03EqIafuKE/1tLGbL4936AKIIavoFIfDZBcl
> enYK/cb738H0e30FGvUl+SS2xuw4yNLbJRFMvR/U2XrjwRnwWrOV8FSX46UsaFoL
> a6yLAFMuxQI33mpd2GuInDLALM7IAxpER04MECynTqLD0kkNHC5XcnlASXMpJoeH
> w/ThHqoxT4GF5y3Fr8j1ujt0xA12eRxErAoHKMX1HDMmSAh2LA4VFoFCfnELBFJu
> cBnGCU10pYVCHy3qo0r6/iLB/etyLEOZM4mzAS8sUM+GfkA7mYFUtaMKUMRuVSPB
> ZwADBQgAvMPCaPC2Dmrj1HNSE1WQlA/TagkVOru8E3PoBgjbRSRgFS2WQKIJ+yAw
> drO2eX/eG+q4blVCQZD8QM17IMuKSRQj9YGxWbEMn/am5BnUA4W9THi4IHREFj/7
> 3rrLeER7y00KUvXc9grGe5BprjFrkbkbNbDz+N4PhX6D/5LKzrQ6c8yLQgKYCPf/
> GCXb+6aB3myvTMy0QaxiW/z59are5o5tjQRZXU1QoPnMcArK8Yk38StrU8efIjeu
> v6OgVau2pPF3PTSpl50TWXHVL1+yhBhYJRt08bXHRLwyDbAHL5EfunR+/gXN9bFy
> x15YdErTKjZkJCmdfOQHhICiMPTAc4hJBBgRAgAJBQJCnYQjAhsMAAoJEHwEeObQ
> NvC44JAAn092/z/Oe4FsFKmVGryK1hgbjTfLAJ9lYqKX52FmTbOF2Y5ci/il8Igs
> 2g==
> =G0+3
> -----END PGP PUBLIC KEY BLOCK-----
> 



> _______________________________________________
> 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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [linux-lvm] vgscan & CDROM
  2005-08-28 11:56       ` Chris Osicki
@ 2005-08-28 18:36         ` Luca Berra
  2005-08-28 19:05           ` Chris Osicki
  0 siblings, 1 reply; 11+ messages in thread
From: Luca Berra @ 2005-08-28 18:36 UTC (permalink / raw)
  To: LVM general discussion and development

On Sun, Aug 28, 2005 at 01:56:18PM +0200, Chris Osicki wrote:
>OK, that are my filters now:
>
>    filter = [ "r|/dev/hdb|" ]
>    filter = [ "r|/dev/hdc|" ]
>    filter = [ "r|/dev/cdrom|" ]
>    filter = [ "r|/dev/cdrom1|" ]
>    filter = [ "r|/dev/cdrom*|" ]
>    filter = [ "r|/dev/cdrom.*|" ]
>
i tought the syntax was:
filter = [ "r|/dev/hdb|", "r|/dev/hdc|", "r|/dev/cdrom|" ]

you should not need the last 3, since "r|/dev/cdrom|" being a regexp
matches all of them.


btw, i believed "sysfs_scan = 1" was enough to skip cdroms

L.




-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [linux-lvm] vgscan & CDROM
  2005-08-28 18:36         ` Luca Berra
@ 2005-08-28 19:05           ` Chris Osicki
  0 siblings, 0 replies; 11+ messages in thread
From: Chris Osicki @ 2005-08-28 19:05 UTC (permalink / raw)
  To: LVM general discussion and development


Hi Luca

I tried your idea:


grep cdrom /etc/lvm/lvm.conf
     filter = [ "r|/dev/hdb|", "r|/dev/hdc|", "r|/dev/cdrom|" ]

vgscan -v -v 2>&1 | grep cdrom

      /dev/cdrom1: size is 31244 sectors
  /dev/cdrom1: read failed after 0 of 2048 at 0: Input/output error
      /dev/cdrom1: size is 31244 sectors
      /dev/cdrom1: No label detected
      /dev/cdrom: size is 4 sectors

Regards,
Chris

On Sun, Aug 28, 2005 at 08:36:14PM +0200, Luca Berra wrote:
> On Sun, Aug 28, 2005 at 01:56:18PM +0200, Chris Osicki wrote:
> >OK, that are my filters now:
> >
> >   filter = [ "r|/dev/hdb|" ]
> >   filter = [ "r|/dev/hdc|" ]
> >   filter = [ "r|/dev/cdrom|" ]
> >   filter = [ "r|/dev/cdrom1|" ]
> >   filter = [ "r|/dev/cdrom*|" ]
> >   filter = [ "r|/dev/cdrom.*|" ]
> >
> i tought the syntax was:
> filter = [ "r|/dev/hdb|", "r|/dev/hdc|", "r|/dev/cdrom|" ]
> 
> you should not need the last 3, since "r|/dev/cdrom|" being a regexp
> matches all of them.
> 
> 
> btw, i believed "sysfs_scan = 1" was enough to skip cdroms
> 
> L.
> 
> 
> 
> 
> -- 
> 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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [linux-lvm] vgscan & CDROM
  2005-08-28 11:42   ` Jean-Luc Coulon (f5ibh)
@ 2005-08-29 17:58     ` Luca Berra
  2005-08-29 18:51       ` Chris Osicki
  0 siblings, 1 reply; 11+ messages in thread
From: Luca Berra @ 2005-08-29 17:58 UTC (permalink / raw)
  To: linux-lvm

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
 / \

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [linux-lvm] vgscan & CDROM
  2005-08-29 17:58     ` Luca Berra
@ 2005-08-29 18:51       ` Chris Osicki
  0 siblings, 0 replies; 11+ messages in thread
From: Chris Osicki @ 2005-08-29 18:51 UTC (permalink / raw)
  To: LVM general discussion and development


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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-08-29 18:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-28 10:17 [linux-lvm] vgscan & CDROM Chris Osicki
2005-08-28 11:07 ` Fredrik Tolf
2005-08-28 11:42   ` Jean-Luc Coulon (f5ibh)
2005-08-29 17:58     ` Luca Berra
2005-08-29 18:51       ` Chris Osicki
2005-08-28 11:24 ` mailinglist
2005-08-28 10:47   ` Chris Osicki
2005-08-28 11:54     ` mailinglist
2005-08-28 11:56       ` Chris Osicki
2005-08-28 18:36         ` Luca Berra
2005-08-28 19:05           ` Chris Osicki

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.