mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
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
This commit is contained in:
parent
b66f26e931
commit
7b2d87d085
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316945
@ -112,6 +112,9 @@ daily_status_gstripe_enable="NO" # Check gstripe(8)
|
||||
# 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
|
||||
|
33
etc/periodic/daily/410.status-mfi
Normal file
33
etc/periodic/daily/410.status-mfi
Normal file
@ -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
|
@ -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 \
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user