diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-02-23 00:16:51 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-02-23 00:16:51 +0000 |
commit | 6c28c53ba9f73c495a78565d7693570e83b64a54 (patch) | |
tree | 1c8d451cab5429cf13ff98a553b0afe2915db117 /sys-fs/raidtools | |
parent | stable on ia64 (diff) | |
download | historical-6c28c53ba9f73c495a78565d7693570e83b64a54.tar.gz historical-6c28c53ba9f73c495a78565d7693570e83b64a54.tar.bz2 historical-6c28c53ba9f73c495a78565d7693570e83b64a54.zip |
Add a simple cron job for scanning for failed harddrives #82942 by Guilherme Barile.
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'sys-fs/raidtools')
-rw-r--r-- | sys-fs/raidtools/ChangeLog | 7 | ||||
-rw-r--r-- | sys-fs/raidtools/Manifest | 5 | ||||
-rwxr-xr-x | sys-fs/raidtools/files/raidtools.cron | 18 | ||||
-rw-r--r-- | sys-fs/raidtools/raidtools-1.00.3-r3.ebuild | 5 |
4 files changed, 31 insertions, 4 deletions
diff --git a/sys-fs/raidtools/ChangeLog b/sys-fs/raidtools/ChangeLog index 0819eed1c5b8..f1ca4276a650 100644 --- a/sys-fs/raidtools/ChangeLog +++ b/sys-fs/raidtools/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-fs/raidtools # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/raidtools/ChangeLog,v 1.15 2005/02/12 02:08:22 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/raidtools/ChangeLog,v 1.16 2005/02/23 00:16:51 vapier Exp $ + + 22 Feb 2005; Mike Frysinger <vapier@gentoo.org> +files/raidtools.cron, + raidtools-1.00.3-r3.ebuild: + Add a simple cron job for scanning for failed harddrives #82942 by Guilherme + Barile. *raidtools-1.00.3-r3 (11 Feb 2005) diff --git a/sys-fs/raidtools/Manifest b/sys-fs/raidtools/Manifest index cfce37870eb2..80c3d3f43f29 100644 --- a/sys-fs/raidtools/Manifest +++ b/sys-fs/raidtools/Manifest @@ -1,10 +1,11 @@ -MD5 767ad0f69ea7a28cef34f244b80db28a ChangeLog 4495 +MD5 bcb6aecd59ebe623a4d4f833e480dafa ChangeLog 4688 MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 -MD5 45940ef3e4a7797709763c379482a320 raidtools-1.00.3-r3.ebuild 1587 +MD5 d0d78187787cb995c72d48f77c616ff7 raidtools-1.00.3-r3.ebuild 1662 MD5 0fa91a341c38be56295db45f2a73aade files/raidtools-1.00.3-gcc33.patch 3044 MD5 effa29906fa5b9b7755ac3f16442c07f files/raidtools-1.00.3-raidstop.patch 2921 MD5 05f0f7c14b2e15209d13826cfd9bbcd6 files/raidtools-1.00.3-2.6.Headers.patch 939 MD5 1ed9388ea5a0f44ceea181fc7ffa2552 files/raidtools-1.00.3-s390x.patch 1515 +MD5 5ff54c0c871ac497487c3bfaeffd09cb files/raidtools.cron 555 MD5 54b6277ec8d8f24e23ece051ea2e8680 files/digest-raidtools-1.00.3-r3 68 MD5 402cd2a18b3b385d4af9458ba862607b files/raidtools-1.00.3-mkraid.patch 578 MD5 ff1baef0dbbc5cd525aa9c13014242ea files/raidtools-1.00.3-PIC.patch 726 diff --git a/sys-fs/raidtools/files/raidtools.cron b/sys-fs/raidtools/files/raidtools.cron new file mode 100755 index 000000000000..e06c42b6fd32 --- /dev/null +++ b/sys-fs/raidtools/files/raidtools.cron @@ -0,0 +1,18 @@ +#!/bin/bash +# Cron job to check that raid devices are functional. +# On error cron will mail the fauly mdstat to root. +# md.c appends (F) to a faulty device +# raid1.c and raid5.c list devices as U (operational) or _ (not) +# a _ device may be either hot, standby or bad +# Merlin Hughes <merlin@merlin.org> + +[ -e /proc/mdstat ] || exit 0 + +mdstat=$(</proc/mdstat) + +if [ "${mdstat/(F)}" != "${mdstat}" ] ; then + echo 'WARNING: Some disks in your RAID arrays seem to have failed!' + echo 'Below is the content of /proc/mdstat:' + echo + echo "$mdstat" +fi diff --git a/sys-fs/raidtools/raidtools-1.00.3-r3.ebuild b/sys-fs/raidtools/raidtools-1.00.3-r3.ebuild index 3ca17edfbd07..02f2c28e03ce 100644 --- a/sys-fs/raidtools/raidtools-1.00.3-r3.ebuild +++ b/sys-fs/raidtools/raidtools-1.00.3-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/raidtools/raidtools-1.00.3-r3.ebuild,v 1.1 2005/02/12 02:08:22 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/raidtools/raidtools-1.00.3-r3.ebuild,v 1.2 2005/02/23 00:16:51 vapier Exp $ inherit flag-o-matic eutils @@ -46,6 +46,9 @@ src_install() { make install ROOTDIR="${D}" || die if ! use build ; then + exeinto /etc/cron.daily + newexe "${FILESDIR}"/raidtools.cron raidtools + doman *.8 *.5 dodoc README *raidtab raidreconf-HOWTO reconf.notes retry summary dodoc Software-RAID.HOWTO/Software-RAID.HOWTO.txt |