Kernel error on CD-RW/DVD ROM
christian.peper at kpn.com
christian.peper at kpn.com
Thu Apr 16 02:03:16 CDT 2009
Thanks everyone for their input.
I'm sure I have LVM configured to ignore CD/DVD media but I'll check. Some servers have also have an older cfg. I don't think I changed any BIOS settings that may have cause the msgs to appear, but I'm not the only admin so you never know. And I can verify the fstab settings concerning CDs.
Thansk again,
Chris.
> -----Original Message-----
> From: linux-poweredge-bounces at dell.com
> [mailto:linux-poweredge-bounces at dell.com] On Behalf Of Alexander Dupuy
> Sent: Wednesday, April 15, 2009 8:25 PM
> To: linux-poweredge at dell.com; clarkp at osti.gov
> Subject: RE: Kernel error on CD-RW/DVD ROM
>
> Patti Clark wrote:
> > the last message was generated right after I'd added space
> to an LVM partition.
>
> This is a telling point. I have a small snippet of shell
> code that will update /etc/lvm/lvm.conf to exclude
> CD/DVD-ROM/RW devices - I suspect that if you try running
> this on your machine (make a backup copy of /etc/lvm/lvm.conf
> first!), it will prevent these messages, at least if they are
> caused by LVM attempting to identify volumes.
>
> # update lvm configuration to not bother trying to probe
> cdroms/cdwriters FILTER= for DEVICE in /dev/cd* /dev/dvd* do
> case $DEVICE in *'*') : continue ;; esac
> FILTER="$FILTER \"r|$DEVICE|\","
> LINK=`readlink $DEVICE`
> case $LINK in
> '') : ;;
> /*) FILTER="$FILTER \"r|/$LINK|\"," ;;
> *) FILTER="$FILTER \"r|/dev/$LINK|\","
> esac
> done
> if [ -n "$FILTER" ]; then
> ed -s /etc/lvm/lvm.conf <<-EOF
> /^ *filter =/s@=.*@= [$FILTER "a/.*/" ]@ wq EOF
> rm -f /etc/lvm/.cache /etc/lvm/cache/.cache fi
>
> You could also just edit /etc/lvm/lvm.conf directly and set
> the filter patter manually - just remember to delete the cache file.
>
> @alex
>
> _______________________________________________
> Linux-PowerEdge mailing list
> Linux-PowerEdge at dell.com
> http://lists.us.dell.com/mailman/listinfo/linux-poweredge
> Please read the FAQ at http://lists.us.dell.com/faq
>
More information about the Linux-PowerEdge
mailing list