From owner-svn-src-head@freebsd.org Fri Apr 14 23:11:43 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 07A45D3E294 for ; Fri, 14 Apr 2017 23:11:43 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: from mail-ua0-x22e.google.com (mail-ua0-x22e.google.com [IPv6:2607:f8b0:400c:c08::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B35E5CA0 for ; Fri, 14 Apr 2017 23:11:42 +0000 (UTC) (envelope-from oliver.pinter@hardenedbsd.org) Received: by mail-ua0-x22e.google.com with SMTP id h2so25321383uaa.1 for ; Fri, 14 Apr 2017 16:11:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=jWMSvyKxdaiuuUhvRIKfCzvv1JA9vhTsPTvetYEXbk0=; b=fRIssKpkcWHgsmVWV+yYAmi6sJgU3XtzImajapeqa+9XWL1G2V+QTAKLS7QOzb9v8/ gg/TMXc/tyQQi6j59nqjgznuBNfzt3GbRnIMKs7mt4F/bajjQz9QvXgsOBtE9eUEzCuf KCU48h+hYYMKoA5+JejBzyI6cbaX6+CbR3Ur/hlut67A758EK51jjJ/z2M5HtlcHEPh6 OCu6eFwCJ10ACbhmv7pTTQUSECHb/lRVf/jrTe4nVmKcrcyD2iDlcuuMtZlpjp+5KeTy mJaN+trHiZAsBc0Y30If5FQfau1oZ107xyveb142wFA/Ta23WHj91DqR7noJ/i4A845u YWig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=jWMSvyKxdaiuuUhvRIKfCzvv1JA9vhTsPTvetYEXbk0=; b=t3Q4MqjNAb8GX+guN1QTmCD5A23xNoYJ7g+22kZiv/m3TMwWo2TLUliz8Fat/1VYO4 2E0JNf2ET1sQT4N/+cwqk25wuEvX7JF536PVfQaeWLtwisvB/IjWWRoVJQSVrYnvKHh8 netXKxnBOSCCUFw0PPhI5Met3hVZFpwDnHngs/Lz3xeGFXB6yFpKh7zkhyqWrfRQzwGv wdYzD1FSBxqHfZ9AA9kbRbR8dS9TGrmOIlOvL/EH4io+CaaFwOvs5LlRR5Ju8S2TrkjP VZARVNVt6NvZXQBS2l5dUEe3BueX9lbZdDti16TTJTi56Ae4j6i5ygiuYAjWZimVy6qZ L9RQ== X-Gm-Message-State: AN3rC/7Ni19KMG4WgEwz0Qy2J8YT67SrXG2ImjPWbHg0IK/Tj15OUxTe Uk0btmf5QzGlXPzMclhgLirvIMRYUU+y X-Received: by 10.176.91.8 with SMTP id u8mr5037084uae.150.1492211501769; Fri, 14 Apr 2017 16:11:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.0.79 with HTTP; Fri, 14 Apr 2017 16:11:41 -0700 (PDT) In-Reply-To: <201704142259.v3EMxEAa083233@repo.freebsd.org> References: <201704142259.v3EMxEAa083233@repo.freebsd.org> From: Oliver Pinter Date: Sat, 15 Apr 2017 01:11:41 +0200 Message-ID: Subject: Re: svn commit: r316945 - in head: etc/defaults etc/periodic/daily share/man/man5 To: Alan Somers Cc: "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2017 23:11:43 -0000 On Saturday, April 15, 2017, Alan Somers wrote: > 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 > > 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 \ This should be in different place, this list is ordered, as I see from this context. > 407.status-graid3 \ > 408.status-gstripe \ > 409.status-gconcat \ > > 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 > _______________________________________________ > svn-src-head@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/svn-src-head > To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org > " >