Amanda-Users

And ignoring other SAMBA errors (Was: Re: changing "strange" SAMBA message to error)

2004-06-23 14:43:22
Subject: And ignoring other SAMBA errors (Was: Re: changing "strange" SAMBA message to error)
From: KEVIN ZEMBOWER <KZEMBOWE AT jhuccp DOT org>
To: amanda-users AT amanda DOT org
Date: Wed, 23 Jun 2004 14:38:44 -0400
I have the exact opposite problem. I have some error indications that I'd like 
to ignore, as they consistently happen and don't mean that there's a problem, 
if I understand them correctly. Here's two examples:

/-- admin      //db/f$ lev 0 STRANGE
sendbackup: start [admin://db/f$ level 0]
sendbackup: info BACKUP=/usr/bin/smbclient
sendbackup: info RECOVER_CMD=/usr/bin/smbclient -f... -
sendbackup: info end
? INFO: Debug class all level = 1   (pid 25061 from pid 25061)
| added interface ip=172.16.2.7 bcast=172.16.255.255 nmask=255.255.0.0
| tar: dumped 85 files and directories
| Total bytes written: 4812196352
sendbackup: size 4699411
sendbackup: end
\--------

I don't know what this means, but I don't think it means that there's an error.

I'd even like to ignore these errors:
/-- admin      //db/c$ lev 0 STRANGE
sendbackup: start [admin://db/c$ level 0]
sendbackup: info BACKUP=/usr/bin/smbclient
sendbackup: info RECOVER_CMD=/usr/bin/smbclient -f... -
sendbackup: info end
? INFO: Debug class all level = 1   (pid 21854 from pid 21854)
| added interface ip=172.16.2.7 bcast=172.16.255.255 nmask=255.255.0.0
? ERRDOS - ERRbadshare opening remote file \WINNT\system32\config\system 
(\WINNT\system32\config\)
? ERRDOS - ERRbadshare opening remote file \WINNT\system32\config\software 
(\WINNT\system32\config\)
? ERRDOS - ERRbadshare opening remote file \WINNT\system32\config\default 
(\WINNT\system32\config\)
? ERRDOS - ERRbadshare opening remote file \WINNT\system32\config\software.LOG 
(\WINNT\system32\config\)
? ERRDOS - ERRbadshare opening remote file \WINNT\system32\config\default.LOG 
(\WINNT\system32\config\)
? ERRDOS - ERRbadshare opening remote file \WINNT\system32\config\SECURITY 
(\WINNT\system32\config\)
? ERRDOS - ERRbadshare opening remote file \WINNT\system32\config\SECURITY.LOG 
(\WINNT\system32\config\)
? ERRDOS - ERRbadshare opening remote file \WINNT\system32\config\SYSTEM.ALT 
(\WINNT\system32\config\)
? ERRDOS - ERRbadshare opening remote file \WINNT\system32\config\SAM 
(\WINNT\system32\config\)
? ERRDOS - ERRbadshare opening remote file \WINNT\system32\config\SAM.LOG 
(\WINNT\system32\config\)
? ERRDOS - ERRnoaccess opening remote file \pagefile.sys (\)
| tar: dumped 5940 files and directories
| Total bytes written: 471141888
sendbackup: size 460100
sendbackup: end
\--------

I know that these error messages mean that files are not being backed up 
correctly. However, our restoration process on this host would be to install  a 
fresh Windows NT server, then restore from backups the database files on it 
which were backed up correctly.

Is there any way short of recompiling to tell Amanda to ignore these in the 
daily report? It's not worth the trouble to me to recompile the program just to 
get rid of them.

Thanks.

-Kevin

>>> Paul Bijnens <paul.bijnens AT xplanation DOT com> 06/23/04 11:12AM >>>
Harlan Harris wrote:

> I'm running Amanda on a heterogeneous network. Server is a Linux box. 
> Some of the clients are Windows machines, and we're running Samba. 
> Mostly works OK, except that sometimes the Windows machines have errors 
> that look like the following:
> 
> ? Call timed out: server did not respond after 20000 milliseconds 
> listing \Program Files\Microsoft Office\*
> 
> 
> Currently, this "call timed out" message is being labeled as "strange", 
> but I really need to change that to an error, since data is being lost 
> when this happens. How do I reconfigure (or recompile?) Amanda so that 
> this sort of error is categorized as an error, rather than strange? Thanks,

You should add some regular expressions in
client-src/sendbackup-gnutar.c, around line 120:

     118 #if SAMBA_VERSION >= 2
     119   /* Backup attempt of nonexisting directory */
     120   AM_ERROR_RE("ERRDOS - ERRbadpath (Directory invalid.)"),
     121 #endif

Then recompile.

-- 
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com 
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, F6, *
* quit,  ZZ, :q, :q!,  M-Z, ^X^C,  logoff, logout, close, bye,  /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* kill -9 1,  Alt-F4,  Ctrl-Alt-Del,  AltGr-NumLock,  Stop-A,  ...    *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************




<Prev in Thread] Current Thread [Next in Thread>
  • And ignoring other SAMBA errors (Was: Re: changing "strange" SAMBA message to error), KEVIN ZEMBOWER <=