Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Apr 2014 15:17:30 GMT
From:      Dirk-Willem van Gulik <dirkx@webweaving.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/188893: ZFS periodic information - improvement
Message-ID:  <201404221517.s3MFHUdr015993@cgiserv.freebsd.org>
Resent-Message-ID: <201404221520.s3MFK1B5094502@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404221517.s3MFHUdr015993>