/[smeserver]/rpms/e-smith-base/sme8/e-smith-base-5.2.0-mdevent.patch
ViewVC logotype

Contents of /rpms/e-smith-base/sme8/e-smith-base-5.2.0-mdevent.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Jun 25 04:16:04 2013 UTC (11 years, 4 months ago) by wellsi
Branch: MAIN
CVS Tags: e-smith-base-5_2_0-80_el5_sme, e-smith-base-5_2_0-85_el5_sme, e-smith-base-5_2_0-86_el5_sme, e-smith-base-5_2_0-83_el5_sme, e-smith-base-5_2_0-84_el5_sme, e-smith-base-5_2_0-78_el5_sme, e-smith-base-5_2_0-88_el5_sme, e-smith-base-5_2_0-81_el5_sme, e-smith-base-5_2_0-82_el5_sme, e-smith-base-5_2_0-89_el5_sme, e-smith-base-5_2_0-79_el5_sme, e-smith-base-5_2_0-90_el5_sme, e-smith-base-5_2_0-87_el5_sme
* Mon Jun 24 2013 Ian Wells <esmith@wellsi.com> 5.2.0-78.sme
- Prevent weekly rebuilds of RAID arrays, by Mark Casey [SME: 6160]

1 diff -ruN e-smith-base-5.2.0.old/root/sbin/e-smith/mdevent e-smith-base-5.2.0/root/sbin/e-smith/mdevent
2 --- e-smith-base-5.2.0.old/root/sbin/e-smith/mdevent 2007-01-19 13:33:22.000000000 -0800
3 +++ e-smith-base-5.2.0/root/sbin/e-smith/mdevent 2013-06-24 18:09:29.000000000 -0700
4 @@ -37,6 +37,10 @@
5
6 print "Event: $event, Device: $device, Member: $member\n";
7
8 +if ($event =~ m#^Rebuild# && system( "ps -C 99-raid-check" ) == 0 ) {
9 + exit 0;
10 +}
11 +
12 if ($event =~ m#^Rebuild|^Fail|^Degraded|^SpareActive#) {
13 my $domain = $conf->get_value("DomainName") || 'localhost';
14 my $user = "admin_raidreport\@$domain";

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed