Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 May 2016 09:07:16 -0600
From:      Alan Somers <asomers@freebsd.org>
To:        Larry Rosenman <ler@lerctr.org>
Cc:        Freebsd stable <freebsd-stable@freebsd.org>
Subject:   Re: Noisy (empty) CD
Message-ID:  <CAOtMX2g6DY3iqi0OU4z_=wRjQ9SEyVbvYPY%2B=31T=rfjn_LD-A@mail.gmail.com>
In-Reply-To: <0b381a7eb2a3f9c70060af24946cb756@thebighonker.lerctr.org>
References:  <8ad69116e60d5a37e04e8b1b975e1637@thebighonker.lerctr.org> <CAOtMX2htdqJbfygoWTs4LOKnWFM0ow9Ghv99U=PxhwndWweZdQ@mail.gmail.com> <0b381a7eb2a3f9c70060af24946cb756@thebighonker.lerctr.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 10, 2016 at 8:59 AM, Larry Rosenman <ler@lerctr.org> wrote:

>
> On 2016-05-10 09:56, Alan Somers wrote:
>
> On Tue, May 10, 2016 at 8:28 AM, Larry Rosenman <ler@lerctr.org> wrote:
>
>> Is there work going on to silence this when the cd drive is empty?
>>
>> May 10 09:26:46 thebighonker devd: Processing event '!system=CAM
>> subsystem=periph type=error device=cd0 serial="" cam_status="0xcc"
>> scsi_status=2 scsi_sense="70 02 3a 01" CDB="00 00 00 00 00 00 " '
>> May 10 09:27:16 thebighonker last message repeated 10 times
>>
>> thebighonker.lerctr.org /home/ler $ uname -aKU
>> FreeBSD thebighonker.lerctr.org 10.3-STABLE FreeBSD 10.3-STABLE #40
>> r299365: Tue May 10 09:14:53 CDT 2016     root@thebighonker.lerctr.org:/usr/obj/usr/src/sys/GENERIC
>> amd64 1003501 1003501
>> thebighonker.lerctr.org /home/ler $
>
>
> Yes. In the long term, scottl is trying to quell messages like that.  In
> the short term, you can easily silence it with /etc/syslog.conf rules.  In
> fact, it shouldn't even there with the default syslog.conf.  Have you
> modified yours?  Can you please share the modifications?
>
> -Alan
>
>
> # $FreeBSD: stable/10/etc/syslog.conf 260519 2014-01-10 17:56:23Z asomers $
> #
> # Spaces ARE valid field separators in this file. However,
> # other *nix-like systems still insist on using tabs as field
> # separators. If you are sharing this file between systems, you
> # may want to use only tabs as field separators here.
> # Consult the syslog.conf(5) manpage.
> *.err;kern.warning;auth.notice;mail.crit /dev/console
> *.info;authpriv.none;kern.debug;lpr.info;mail.crit;news.err;cron.none;local0.none;local1.none
> /var/log/messages
> security.* /var/log/security
> auth.info;authpriv.info /var/log/auth.log
> #auth.info;authpriv.info |exec /usr/local/sbin/sshit
> mail.info /var/log/maillog
> mail.debug /var/log/debug.maillog
> local1.* /var/log/cisco.log
> lpr.info /var/log/lpd-errs
> ftp.info /var/log/xferlog
> cron.* /var/log/cron
> # Uncomment this if you wish to see messages produced by devd
> #!devd
> #*.>=notice /var/log/devd.log
>
> *.=debug /var/log/debug.log
> *.emerg *
> # uncomment this to log all writes to /dev/console to /var/log/console.log
> console.info /var/log/console.log
> # uncomment this to enable logging of all log messages to /var/log/all.log
> # touch /var/log/all.log and chmod it to mode 600 before it will work
> *.* /var/log/all.log
> # uncomment this to enable logging to a remote loghost named loghost
> #*.* @loghost
> # uncomment these if you're running inn
> #news.crit /var/log/news/news.crit
> #news.err /var/log/news/news.err
> #news.notice /var/log/news/news.notice
> local0.* /var/log/pg-prod.log
> #!startslip
> #*.* /var/log/slip.log
> #!ppp
> #*.* /var/log/ppp.log
>
>
The messages you're seeing are printed by devd at loglevel info, and I see
that you're directing *.info to /var/log/messages.  If you change that to
the default "*.notice" then you won't see the offending messages, or if you
prefix the line with "!-devd" like this:
!-devd
*.info;authpriv.none;kern.debug;lpr.info;mail.crit;news.err;cron.none;local0.none;local1.none
/var/log/messages

In the latter case, I recommend that you enable /var/log/devd.log at level
notice.

-Alan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2g6DY3iqi0OU4z_=wRjQ9SEyVbvYPY%2B=31T=rfjn_LD-A>