Date: 20 Apr 2003 01:44:58 -0000 From: Alex Popa <razor@ldc.ro> To: FreeBSD-gnats-submit@FreeBSD.org Subject: misc/51174: Improving background fsck logging Message-ID: <20030420014458.23093.qmail@ldc.ro> Resent-Message-ID: <200304200150.h3K1oItO073780@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 51174 >Category: misc >Synopsis: Improving background fsck logging >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Apr 19 18:50:18 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Alex Popa >Release: FreeBSD 5.0-CURRENT i386 >Organization: None >Environment: System: FreeBSD wabbit5.ldc.ro 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Sat Apr 19 23:25:02 GMT 2003 root@wabbit5.ldc.ro:/usr/obj/usr/src/sys/WABBIT i386 Athlon XP 1700+, FreeBSD 5.0-CURRENT >Description: The background fsck process started from /etc/rc logs to syslog using this format: Apr 20 00:20:13 wabbit5 root: /dev/ad0s3d: 116 files, 218 used, 64189 free (45 frags, 8018 blocks, 0.1% fragmentation) The "root:" label is a little misleading, so I am suggesting a change that would make the above line look like: Apr 20 00:20:13 wabbit5 fsck: /dev/ad0s3d: 116 files, 218 used, 64189 free (45 frags, 8018 blocks, 0.1% fragmentation) >How-To-Repeat: Boot the machine with dirty filesystems and watch /var/log/messages. >Fix: Apply the following patch to /etc/rc (or /usr/src/etc/rc): --- rc.orig Sun Apr 20 00:27:24 2003 +++ rc Sun Apr 20 00:38:06 2003 @@ -1001,7 +1001,7 @@ echo "${bgfsck_msg}." (sleep ${background_fsck_delay}; nice -4 fsck -B -p) 2>&1 | \ - logger -p daemon.notice & + logger -p daemon.notice -t fsck & ;; esac >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030420014458.23093.qmail>