drbd message adjustment
"gulikoza" <[email protected]> Tue, 9 Sep 2014 11:14:29 +0200
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
r208 added support for skipping more DRBD messages. Please adjust one regex
so that it matches both nodes (either ahead or behind), I have only noticed
this after I had sent the original patch:
--- a/scripts/services/kernel
+++ b/scripts/services/kernel
@@ -143,7 +143,7 @@ while (defined(my $ThisLine = <STDIN>)) {
$SkipError = 1 if $ThisLine =~ /block drbd\d+: Out of sync:
start=\d+/;
$SkipError = 1 if $ThisLine =~ /block drbd\d+: updated( sync)?
UUIDs?/i;
$SkipError = 1 if $ThisLine =~ /block drbd\d+: Resync done/;
- $SkipError = 1 if $ThisLine =~ /block drbd\d+: cs:Ahead rs_left/;
+ $SkipError = 1 if $ThisLine =~ /block drbd\d+: cs:(Ahead|Behind)
rs_left/;
$SkipError = 1 if $ThisLine =~ /block drbd\d+: \d+ % had equal
checksums, eliminated:/;
$Kernel{$ThisLine}++ if ( (! $SkipError) || ($Detail > 8)) ;
}
Thanks :-)
Regards,
gulikoza
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk