View previous topic :: View next topic |
Author |
Message |
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Wed Aug 12, 2009 7:45 am Post subject: [LVM SOLVED] Boot/shutdown /dev/cdrom messages |
|
|
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 |
|
|
|
|
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
|
|