vgscan & CDROM
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
Try:
filter = [ "r|/dev/cdrom|" ]
Am Sonntag, 28. August 2005 12:17 schrieb Chris Osicki:
Quoted 42 lines
Hi
I seam not to be able to convince vgscan to let my cdroms alone. In the file
/etc/lvm/lvm.confI 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 detectedI 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.0I would be very thankful for any help.
Regards,
Chris_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 4 lines
Micha Krause Jabber: [email protected] Email: [email protected]
Quoted 2 lines · On Sun, Aug 28, 2005 at 01:24:48PM +0200, [email protected] wrote:
Try:
filter = [ "r|/dev/cdrom|" ]
Have you tried it?
This doesn't work for me.
Does anybody know the solution?
Regards,
Chris
Quoted 60 lines
Am Sonntag, 28. August 2005 12:17 schrieb Chris Osicki:
Quoted 42 lines
Hi
I seam not to be able to convince vgscan to let my cdroms alone. In the file
/etc/lvm/lvm.confI 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 detectedI 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.0I would be very thankful for any help.
Regards,
Chris_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/Signature · 12 lines
Micha Krause Jabber: [email protected] Email: [email protected] _______________________________________________ linux-lvm mailing list [email protected] https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 2 lines
Chris Osicki [email protected] Dipl. Informatik-Ing. HTL
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:
Quoted 70 lines · On Sun, Aug 28, 2005 at 01:24:48PM +0200, [email protected] wrote:
Quoted 2 lines
Try:
filter = [ "r|/dev/cdrom|" ]Have you tried it?
This doesn't work for me.
Does anybody know the solution?
Regards,
ChrisQuoted 57 lines
Am Sonntag, 28. August 2005 12:17 schrieb Chris Osicki:
Quoted 34 lines
Hi
I seam not to be able to convince vgscan to let my cdroms alone. In the file
/etc/lvm/lvm.confI 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 detectedI 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.0I would be very thankful for any help.
Quoted 8 lines
Regards,
Chris_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/--
Micha KrauseJabber: [email protected]
Email: [email protected]_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 36 lines
Micha Krause Jabber: [email protected] Email: [email protected] 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+NwMLgjecA1PNQa3kPNQsuRbxYypUbg1I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TbOF2Y5ci/il8Igs 2g== =G0+3 -----END PGP PUBLIC KEY BLOCK-----
Quoted 1 line · On Sun, Aug 28, 2005 at 01:54:38PM +0200, [email protected] 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.
Quoted 3 lines
but my dev is
/dev/cdromif yours is/dev/cdrom1try 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
Quoted 119 lines
Am Sonntag, 28. August 2005 12:47 schrieb Chris Osicki:
Quoted 70 lines · On Sun, Aug 28, 2005 at 01:24:48PM +0200, [email protected] wrote:
Quoted 2 lines
Try:
filter = [ "r|/dev/cdrom|" ]Have you tried it?
This doesn't work for me.
Does anybody know the solution?
Regards,
ChrisQuoted 57 lines
Am Sonntag, 28. August 2005 12:17 schrieb Chris Osicki:
Quoted 34 lines
Hi
I seam not to be able to convince vgscan to let my cdroms alone. In the file
/etc/lvm/lvm.confI 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 detectedI 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.0I would be very thankful for any help.
Quoted 8 lines
Regards,
Chris_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/--
Micha KrauseJabber: [email protected]
Email: [email protected]_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/Signature · 45 lines
Micha Krause Jabber: [email protected] Email: [email protected] 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 [email protected] https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 2 lines
Chris Osicki [email protected] Dipl. Informatik-Ing. HTL
Quoted 9 lines · Chris Osicki
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.
Signature · 6 lines
Luca Berra -- [email protected] Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \
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
Quoted 37 lines · Luca Berra
Quoted 9 lines · Chris Osicki
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 cdromsL.
Signature · 12 lines
Luca Berra -- [email protected] Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \ _______________________________________________ linux-lvm mailing list [email protected] https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 2 lines
Chris Osicki [email protected] Dipl. Informatik-Ing. HTL
Quoted 6 lines · Chris Osicki
Hi
I seam not to be able to convince vgscan to let my cdroms alone. In the file
/etc/lvm/lvm.confI 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
Le 28.08.2005 13:07:37, Fredrik Tolf a écrit :
Quoted 10 lines · Chris Osicki
Quoted 6 lines
Hi
I seam not to be able to convince vgscan to let my cdroms alone. In the file
/etc/lvm/lvm.confI 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)
Quoted 7 lines
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
Quoted 7 lines · 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�:
Quoted 6 lines · Chris Osicki
Quoted 5 lines
Hi
I seam not to be able to convince vgscan to let my cdroms alone. In the file
/etc/lvm/lvm.confI have this filter:
Quoted 9 lines
Quoted 4 lines
Quoted 1 line
[ "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
Signature · 6 lines
Luca Berra -- [email protected] Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \
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
Quoted 42 lines · Luca Berra
Quoted 9 lines · 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�:
Quoted 8 lines · Chris Osicki
Quoted 6 lines
Hi
I seam not to be able to convince vgscan to let my cdroms alone. In the file
/etc/lvm/lvm.confI have this filter:[ "r|/dev/cdrom.*" ]
Quoted 8 lines
Quoted 2 lines
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
Signature · 12 lines
Luca Berra -- [email protected] Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \ _______________________________________________ linux-lvm mailing list [email protected] https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 2 lines
Chris Osicki [email protected] Dipl. Informatik-Ing. HTL