Package: cciss-vol-status
Version: 1.06-1
Severity: wishlist
Tags: patch
Please provide a cronjob to check the status of all arrays on the system.
Below is such a cronjob that works for me.
Thanks,
--dkg
/etc/cron.daily/cciss_vol_status
--------------------
#!/bin/sh
test -x /usr/bin/cciss_vol_status || exit 0
STATUS=0
if [ -d /proc/driver/cciss ]; then
DEVS=`grep -h 'cciss/c.*d0:' /proc/driver/cciss/cciss* |awk -F: '{print
"/dev/" $1}'`
OUTPUT=`/usr/bin/cciss_vol_status $DEVS`
if [ $? -ne 0 ]; then
printf "%s\n" "$OUTPUT"
exit 1
fi
fi
# FIXME: This cronjob should also look at the scsi generic nodes
# (/dev/sg*?) to cover the hpsa driver, fibre-attached MSA1000 family
# devices, orthehpahcisr software RAID driver (see cciss_vol_status(8)
# about how to choose the correct nodes -- i don't use these other
# devices, so i cannot verify how to check them cleanly)
#
# -- Daniel Kahn Gillmor <[email protected]>
# Mon, 20 Sep 2010 18:12:31 -0400
exit 0
--------------------
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages cciss-vol-status depends on:
ii libc6 2.11.2-5 Embedded GNU C Library: Shared lib
cciss-vol-status recommends no packages.
cciss-vol-status suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]