Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[LVM SOLVED] Boot/shutdown /dev/cdrom messages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Aug 12, 2009 7:45 am    Post subject: [LVM SOLVED] Boot/shutdown /dev/cdrom messages Reply with quote

This tip is for lvm users who get /dev/cdrom error messages during boot/shutdown.

I found those /dev/cdrom: failed to open cdrom device messages at boot and shutdown quite annoying, though they can safely be ignored. So I did a little poking around and found the solution.

This version: sys-fs/lvm2-2.02.49-r3 (though it probably works for other versions) - not sure.


Edit /etc/lvm/lvm.conf

Adding a filter to reject the cdrom device before the accept all filter stops lvm from trying to open/close the cdrom device, resulting in no more noise.

This bit "r|/dev/cdrom|", needs to be sandwiched into the filter line as shown:
Code:
# By default we accept every block device:
    # Gentoo: we exclude /dev/nbd by default, because it makes a lot of kernel
    # noise when you probed while not available.
    filter = [ "r|/dev/nbd.*|", "r|/dev/cdrom|", "a/.*/" ]

Now the cdrom device is rejected before all is accepted.
The result is no more annoying error messages and speedier boot/shutdown.

All is well. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum