"Bernhard R. Erdmann" wrote:
>
> Hi,
>
> every night Amanda emails me these warnings from xfsdump. This seems to
> be perfectly normal for more or less active filesystems.
>
> Where can we tell Amanda to ignore these warnings?
>
> FAILED AND STRANGE DUMP DETAILS:
>
> /-- ente /var lev 2 STRANGE
> sendbackup: start [ente:/var level 2]
> sendbackup: info BACKUP=/usr/sbin/xfsdump
> sendbackup: info RECOVER_CMD=/usr/sbin/xfsrestore -f... -
> sendbackup: info end
> | xfsdump: version 3.0 - Running single-threaded
> | xfsdump: level 2 incremental dump of ente:/var based on level 1 dump
> begun Mon Oct 15 01:48:51 2001
> | xfsdump: dump date: Thu Oct 18 01:55:31 2001
> | xfsdump: session id: 7da36377-00bd-48f4-afd8-76593ef9b467
> | xfsdump: session label: ""
> | xfsdump: ino map phase 1: skipping (no subtrees specified)
> | xfsdump: ino map phase 2: constructing initial dump list
> ? xfsdump: WARNING: failed to get valid bulkstat information for inode
> 758724
> | xfsdump: ino map phase 3: pruning unneeded subtrees
> ? xfsdump: WARNING: failed to get valid bulkstat information for inode
> 758724
> | xfsdump: ino map phase 4: estimating dump size
> ? xfsdump: WARNING: failed to get valid bulkstat information for inode
> 758724
> | xfsdump: ino map phase 5: skipping (only one dump stream)
> | xfsdump: ino map construction complete
> | xfsdump: estimated dump size: 76693376 bytes
> | xfsdump: creating dump session media file 0 (media 0, file 0)
> | xfsdump: dumping ino map
> | xfsdump: dumping directories
> ? xfsdump: WARNING: failed to get valid bulkstat information for inode
> 758724
> | xfsdump: dumping non-directory files
> ? xfsdump: WARNING: failed to get valid bulkstat information for inode
> 758724
> | xfsdump: ending media file
> | xfsdump: media file size 78355232 bytes
> | xfsdump: dump size (non-dir files) : 77925384 bytes
> | xfsdump: dump complete: 42 seconds elapsed
> | xfsdump: Dump Status: SUCCESS
> sendbackup: size 76519
> sendbackup: end
> \
Now I hacked up Amanda's source code to ignore these WARNINGs. The patch
is attached. It's a diff against the current CVS tree of 2.4.2p2 but it
works for plain 2.4.2p2, too.
The patch introduces a new category DMP_WARNING to the array of regex in
client-src/sendbackup-dump.c xfsdump's output is checked against. Adding
the "failed to get valid bulkstat" line to DMP_NORMAL didn't help
because the regex for DMP_STRANGE containing "[Ff]ail" are checked first
in client-src/sendbackup.c. So dmpline_t parse_dumpline(str) would
return DMP_STRANGE instead of DMP_NORMAL. Now it returns DMP_WARNING
which is handled by void process_dumpline(str) in the same way as
DMP_NORMAL and DMP_SIZE.
--- amanda-2.4.2p2-20011020.orig/client-src/sendbackup-dump.c Sat Oct 20 15:59:20
2001
+++ amanda-2.4.2p2-20011020/client-src/sendbackup-dump.cSat Oct 20 20:12:35
+2001
@@ -97,6 +97,9 @@
{ DMP_SIZE, "xfsdump: media file size [0-9][0-9]* bytes", 1},
/* Irix 6.2 xfs dump */
+ /* warnings to be ignored */
+ { DMP_WARNING, "^xfsdump: WARNING: failed to get valid bulkstat information for
+inode" }, /* Linux xfsdump */
+
/* strange dump lines */
{ DMP_STRANGE, "should not happen" },
{ DMP_STRANGE, "Cannot open" },
--- amanda-2.4.2p2-20011020.orig/client-src/sendbackup.cSat Oct 20 15:59:20
2001
+++ amanda-2.4.2p2-20011020/client-src/sendbackup.c Sat Oct 20 20:03:05 2001
@@ -755,6 +755,7 @@
switch(typ) {
case DMP_NORMAL:
case DMP_SIZE:
+case DMP_WARNING:
startchr = '|';
break;
default:
--- amanda-2.4.2p2-20011020.orig/client-src/sendbackup.hSat May 27 23:20:32
2000
+++ amanda-2.4.2p2-20011020/client-src/sendbackup.h Sat Oct 20 20:03:05 2001
@@ -53,7 +53,7 @@
*/
typedef enum {
-DMP_NORMAL, DMP_STRANGE, DMP_SIZE, DMP_ERROR
+DMP_NORMAL, DMP_WARNING, DMP_STRANGE, DMP_SIZE, DMP_ERROR
} dmpline_t;
typedef struct regex_s {