Re: amreport regex problem

2013-07-05 Thread Dennis Benndorf
Hi,

ok, amreport now works if I use it at commandline, but amdump didnt found the 
tapes tonight. In the taper debug log I found:

/Thu Jul  4 22:00:28 2013: thd-0x2406c00: taper: Slot {372,372} with label  do 
not 
match labelstr/
/Thu Jul  4 22:00:28 2013: thd-0x2406c00: taper: warning: Use of uninitialized 
value $f_type in numeric eq (==) at 
/usr/local/share/perl/5.14.2/Amanda/ScanInventory.pm line 590./

/Thu Jul  4 22:00:28 2013: thd-0x2406c00: taper: warning: Use of uninitialized 
value $label in pattern match (m//) at 
/usr/local/share/perl/5.14.2/Amanda/ScanInventory.pm line 590./

/Thu Jul  4 22:00:28 2013: thd-0x2406c00: taper: warning: Use of uninitialized 
value $params{"label"} in concatenation (.) or string at 
/usr/local/share/perl/5.14.2/Amanda/Taper/Scribe.pm line 1785./


amanda@dl380-54:/tmp/amanda/server/mirror$ grep 372 
/etc/amanda/mirror/tapelist

0 {D00372,D00372} reuse BARCODE:{D00372,D00372} BLOCKSIZE:32

-- 
Regards
Dennis



> On 07/04/2013 08:16 AM, Dennis Benndorf wrote:
> > Hi,
> > 
> > amreport seems to have a problem with my labelstring while amcheck
> > does not:
> > 
> > amanda@dl380-54:~$ amreport mirror
> > 
> > Hostname: dl380-54
> > 
> > Org : Tagesbackup
> > 
> > Config : mirror
> > 
> > Date : July 3, 2013
> > 
> > These dumps were to tapes {D00224,D00224}, {D00231,D00231},
> > {D00249,D00249}.
> > 
> > There are 734565M of dumps left in the holding disk.
> > 
> > They will be flushed on the next run.
> > 
> > amreport: regex "^{D0[0-9]*,D0[0-9]*}$": Invalid preceding regular
> > expression
> 
> '{' is a special character in a regex, but you want a real '{', it must
> be escaped, and as amanda use escaped string, you must escape it twice:
> 
>labelstr "^\\{D0[0-9]*,D0[0-9]*\\}$"
> 
> Jean-Louis
> 
> > P.S. amanda 3.3.4 is already installed.
> > 
> > 
> > Regards
> > 
> > Dennis


Re: amreport regex problem

2013-07-05 Thread Jean-Louis Martineau

On 07/05/2013 04:21 AM, Dennis Benndorf wrote:


It seems to me that it broke tonight, but amstatus shows me that some 
dles were flushed. Attached the taper debug file.




Some dles where flushed. Amanda wrote to a tape and failed to unload it.

It looks like your library is slower than the default amanda delay, can 
you try to set some of the following properties for both robot changers:


  property "EJECT-BEFORE-UNLOAD" "yes"
  property "EJECT-DELAY" "120"
  property "UNLOAD-DELAY" "120"
  property "LOAD-POLL" "60s poll 5s until 5m"

I'm not sure which one is required and I'm not sure if the number are 
large enough in the example.


see: man amanda-changers

Jean-Louis


Re: amreport regex problem

2013-07-04 Thread Jean-Louis Martineau

On 07/04/2013 08:16 AM, Dennis Benndorf wrote:


Hi,

amreport seems to have a problem with my labelstring while amcheck 
does not:


amanda@dl380-54:~$ amreport mirror

Hostname: dl380-54

Org : Tagesbackup

Config : mirror

Date : July 3, 2013

These dumps were to tapes {D00224,D00224}, {D00231,D00231}, 
{D00249,D00249}.


There are 734565M of dumps left in the holding disk.

They will be flushed on the next run.

amreport: regex "^{D0[0-9]*,D0[0-9]*}$": Invalid preceding regular 
expression




'{' is a special character in a regex, but you want a real '{', it must 
be escaped, and as amanda use escaped string, you must escape it twice:


  labelstr "^\\{D0[0-9]*,D0[0-9]*\\}$"

Jean-Louis


P.S. amanda 3.3.4 is already installed.

--

Regards

Dennis