misc/188893: ZFS periodic information - improvement

Dirk-Willem van Gulik dirkx at webweaving.org
Tue Apr 22 15:20:02 UTC 2014


>Number:         188893
>Category:       misc
>Synopsis:       ZFS periodic information - improvement
>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:   Tue Apr 22 15:20:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Dirk-Willem van Gulik
>Release:        FreeBSD 10/p2
>Organization:
Web Weaving
>Environment:
FreeBSD weser.webweaving.org 10.0-RELEASE-p1 FreeBSD 10.0-RELEASE-p1 #0: Tue Apr  8 06:45:06 UTC 2014     root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Would be nice to have something like below in /etc/periodic/daily - as to show the status of the ZFS file system when such is enabled.

Thanks,

Dw.

>How-To-Repeat:

>Fix:
#!/bin/sh -
#
# $FreeBSD$
#

if [ -r /etc/defaults/periodic.conf ]; then
	. /etc/defaults/periodic.conf
	source_periodic_confs
fi

rc=0

case "${zfs_enable:-YES}" in
	[Nn][Oo])
	;;
	*)
	echo ZFS Pool status
	echo ===============
	echo
	zpool status || rc=$?
	echo
	echo Recent changes:
	zpool history  | grep -e `date +%Y-%m-%d` -e `date -v-24H +%Y-%m-%d`
	echo
	;;
esac

exit $rc

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list