Date: Fri, 14 Apr 2017 18:55:40 -0700 (PDT) From: "Rodney W. Grimes" <freebsd@pdx.rh.CN85.dnsmgr.net> To: Alan Somers <asomers@freebsd.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r316945 - in head: etc/defaults etc/periodic/daily share/man/man5 Message-ID: <201704150155.v3F1teNW009309@pdx.rh.CN85.dnsmgr.net> In-Reply-To: <201704142259.v3EMxEAa083233@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[ Charset UTF-8 unsupported, converting... ] > Author: asomers > Date: Fri Apr 14 22:59:14 2017 > New Revision: 316945 > URL: https://svnweb.freebsd.org/changeset/base/316945 > > Log: > Add 410.status-mfi, a periodic script for mfi(4) arrays > > PR: 176049 > Submitted by: doconnor@gsoft.com.au > Reviewed by: scottl, Larry Rosenman <ler@lerctr.org> > MFC after: 3 weeks > Relnotes: yes > > Added: > head/etc/periodic/daily/410.status-mfi (contents, props changed) > Modified: > head/etc/defaults/periodic.conf > head/etc/periodic/daily/Makefile > head/share/man/man5/periodic.conf.5 > > Modified: head/etc/defaults/periodic.conf > ============================================================================== > --- head/etc/defaults/periodic.conf Fri Apr 14 22:02:08 2017 (r316944) > +++ head/etc/defaults/periodic.conf Fri Apr 14 22:59:14 2017 (r316945) > @@ -112,6 +112,9 @@ daily_status_gstripe_enable="NO" # Che > # 409.status-gconcat > daily_status_gconcat_enable="NO" # Check gconcat(8) > > +# 410.status-mfi > +daily_status_mfi_enable="NO" # Check mfiutil(8) > + > # 420.status-network > daily_status_network_enable="YES" # Check network status > daily_status_network_usedns="YES" # DNS lookups are ok > > Added: head/etc/periodic/daily/410.status-mfi > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/etc/periodic/daily/410.status-mfi Fri Apr 14 22:59:14 2017 (r316945) > @@ -0,0 +1,33 @@ > +#!/bin/sh > +# > +# $FreeBSD$ > +# > + > +# If there is a global system configuration file, suck it in. > +# > +if [ -r /etc/defaults/periodic.conf ] > +then > + . /etc/defaults/periodic.conf > + source_periodic_confs > +fi > + > +case "$daily_status_mfi_enable" in > + [Yy][Ee][Ss]) > + echo > + echo 'Checking status of mfi(4) devices:' > + > + if mfiutil show volumes; then > + if mfiutil show volumes | grep -q DEGRADED; then > + rc=3 > + else > + rc=0 > + fi > + else > + rc=2 > + fi > + ;; > + > + *) rc=0;; > +esac > + > +exit $rc > > Modified: head/etc/periodic/daily/Makefile > ============================================================================== > --- head/etc/periodic/daily/Makefile Fri Apr 14 22:02:08 2017 (r316944) > +++ head/etc/periodic/daily/Makefile Fri Apr 14 22:59:14 2017 (r316945) > @@ -13,6 +13,7 @@ FILES= 100.clean-disks \ > 400.status-disks \ > 401.status-graid \ > 406.status-gmirror \ > + 410.status-mfi \ > 407.status-graid3 \ > 408.status-gstripe \ > 409.status-gconcat \ Insered into the middle of a number sorted list? > > Modified: head/share/man/man5/periodic.conf.5 > ============================================================================== > --- head/share/man/man5/periodic.conf.5 Fri Apr 14 22:02:08 2017 (r316944) > +++ head/share/man/man5/periodic.conf.5 Fri Apr 14 22:59:14 2017 (r316945) > @@ -399,6 +399,15 @@ if you want to run > on your > .Xr gconcat 8 > devices. > +.It Va daily_status_mfi_enable > +.Pq Vt bool > +Set to > +.Dq Li YES > +if you want to run > +.Nm mfiutil Cm status > +on your > +.Xr mfi 4 > +devices. > .It Va daily_status_network_enable > .Pq Vt bool > Set to > > -- Rod Grimes rgrimes@freebsd.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704150155.v3F1teNW009309>