Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Apr 2017 01:11:41 +0200
From:      Oliver Pinter <oliver.pinter@hardenedbsd.org>
To:        Alan Somers <asomers@freebsd.org>
Cc:        "src-committers@freebsd.org" <src-committers@freebsd.org>,  "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>,  "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r316945 - in head: etc/defaults etc/periodic/daily share/man/man5
Message-ID:  <CAPQ4fftajs_LgyQ2C8tQvq3f2gS0Lah4t%2B=FSGjT1ae53tEvoQ@mail.gmail.com>
In-Reply-To: <201704142259.v3EMxEAa083233@repo.freebsd.org>
References:  <201704142259.v3EMxEAa083233@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday, April 15, 2017, Alan Somers <asomers@freebsd.org> 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 <javascript:;>
>   Reviewed by:  scottl, Larry Rosenman <ler@lerctr.org <javascript:;>>
>   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 <javascript:;> mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org
> <javascript:;>"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPQ4fftajs_LgyQ2C8tQvq3f2gS0Lah4t%2B=FSGjT1ae53tEvoQ>