Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.3/8.12.3) with ESMTP id g5N4kjnC026864 for ; Sat, 22 Jun 2002 21:46:45 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.3/8.12.3/Submit) id g5N4ki3k026863 for linux-xfs-outgoing; Sat, 22 Jun 2002 21:46:44 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-linux-xfs@oss.sgi.com using -f Received: from sgi.com (sgi-too.SGI.COM [204.94.211.39]) by oss.sgi.com (8.12.3/8.12.3) with SMTP id g5N4kTnC026835 for ; Sat, 22 Jun 2002 21:46:29 -0700 Received: from mailto.t-online-com.de (mailto.t-online-com.de [62.156.145.215] (may be forged)) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id VAA08843 for ; Sat, 22 Jun 2002 21:49:58 -0700 (PDT) mail_from (be@berdmann.de) Received: from mail pickup service by mailto.t-online-com.de with Microsoft SMTPSVC; Sun, 23 Jun 2002 06:23:12 +0200 Received: from guiness.omniscient.com ([64.134.101.78]) by mail.t-intra.de with Microsoft SMTPSVC(5.5.1877.507.50); Wed, 30 Jan 2002 01:42:08 +0100 Received: from surly.omniscient.com (surly.omniscient.com [64.134.101.69]) by guiness.omniscient.com (8.12.1/8.12.1) with ESMTP id g0U0S3mQ022328; Tue, 29 Jan 2002 19:28:55 -0500 (EST) Received: (from root@localhost) by surly.omniscient.com (8.11.6/8.11.6) id g0U0OmE265920 for amanda.org.amanda-users-list; Wed, 30 Jan 2002 00:24:48 GMT Received: from ente.berdmann.de (frnk-d514e173.dsl.mediaWays.net [213.20.225.115]) by surly.omniscient.com (8.11.6/8.11.6) with ESMTP id g0U0Oiv264793 for ; Tue, 29 Jan 2002 19:24:44 -0500 (EST) Received: from apollo.berdmann.de ([192.168.1.2] helo=berdmann.de) by ente.berdmann.de with esmtp (Exim 3.22 #1) id 16ViYC-000844-00; Wed, 30 Jan 2002 01:24:32 +0100 Message-ID: <3C573D40.A36C9083@berdmann.de> Date: Wed, 30 Jan 2002 01:24:32 +0100 From: "Bernhard R. Erdmann" X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.17-xfs i586) X-Accept-Language: de, en, fr MIME-Version: 1.0 To: jrj@cc.purdue.edu CC: "amanda-users@amanda.org" , Linux XFS Mailing List Subject: Re: Using Amanda with Linux/XFS: "failed to get (valid) bulkstat information" References: <200201292238.RAA28586@gandalf.cc.purdue.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=1.4 required=5.0 tests=MAY_BE_FORGED,PORN_10 version=2.20 X-Spam-Level: * Sender: owner-linux-xfs@oss.sgi.com Precedence: bulk > Before I put this in, is there any particular reason you're adding > DMP_WARNING? Why not just add these entries as DMP_NORMAL? First reason (beauty): I decided to put the warnings into a different group than the normal output, just to be ready for further additions of warnings of other dump programs and to have the ability to treat them differently in the future. In this case, the warnings seem to be quite normal for busy XFS filesystems. But xfsdump prints a warning and hopefully the xfsdump developers will have had their reasons for it: why don't recognize it as a warning but continue as you would do on the command line? ("A warning? I've got the backups - who cares if I can recover?" ;-)) Second reason (technical nature): the dmpline_t/regex pairs in the array re_table (client-src/sendbackup-dump.c, line 44) are matched against dump's output in order of array index in parse_dumpline(). client-src/sendbackup.c: 729 dmpline_t parse_dumpline(str) 730 char *str; 731 /* 732 * Checks the dump output line in str against the regex table. 733 */ 734 { 735 regex_t *rp; 736 737 /* check for error match */ 738 for(rp = program->re_table; rp->regex != NULL; rp++) { 739 if(match(rp->regex, str)) 740 break; 741 } The array re_table is initialized with pairs in order of DMP_SIZE, DMP_STRANGE, DMP_NORMAL and DMP_STRANGE (for all other lines). One of the regexps of dmpline_t DMP_STRANGE is "[Ff]ail". client-src/sendbackup-dump.c: 100 /* strange dump lines */ 101 { DMP_STRANGE, "should not happen" }, 102 { DMP_STRANGE, "Cannot open" }, 103 { DMP_STRANGE, "[Ee]rror" }, 104 { DMP_STRANGE, "[Ff]ail" }, 105 /* XXX add more ERROR entries here by scanning dump sources? */ 106 107 /* any blank or non-strange DUMP: lines are marked as normal */ 108 { DMP_NORMAL, "^ *DUMP:" }, If you added "failed to get bulkstat" to DMP_NORMAL, you would never match DMP_NORMAL because DMP_STRANGE would have been matched first. So I inserted DMP_WARNING between DMP_SIZE and DMP_STRANGE. The XFS boys of SGI told me not to bang my head on these warnings. Bulkstat is a special XFS feature to get lots of inodes in a single rush. Sometimes an inode cannot be caught by bulkstat due to filesystem activity; instead, xfsdump will do a single stat call later on it.