Re: Logs and reporting

2008-09-29 Thread Prashant Ramhit
Title: Blue Barracuda




Hi All,

I set amanda user to receive the mail.

And this is the mail report

Date: Mon, 29 Sep 2008 17:28:29 +0100
From: Amanda Backup System <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Bluebarracuda - Daily Tape AMANDA MAIL REPORT FOR September
29, 2008

Hostname: backupserver
Org : Bluebarracuda - Daily Tape
Config  : fullback
Date    : September 29, 2008

These dumps were to tape FULLBACK-01.
The next tape Amanda expects to use is: a new tape.


STATISTICS:
  Total   Full  Incr.
          
Estimate Time (hrs:min)    0:00
Run Time (hrs:min) 0:00
Dump Time (hrs:min)    0:00   0:00   0:00
Output Size (meg)   0.0    0.0    0.0
Original Size (meg) 0.0    0.0    0.0
Avg Compressed Size (%) -- -- -- 
Filesystems Dumped    1  1  0
Avg Dump Rate (k/s)  1000.0 1000.0    -- 

Tape Time (hrs:min)    0:00   0:00   0:00
Tape Size (meg) 0.0    0.0    0.0
Tape Used (%)   0.0    0.0    0.0
Filesystems Taped 1  1  0

Chunks Taped  0  0  0
Avg Tp Write Rate (k/s)    12.4   12.4    -- 

USAGE BY TAPE:
  Label Time  Size  %    Nb    Nc
  FULLBACK-01   0:00   32k    0.0 1 0


NOTES:
  planner: Last full dump of localhost:/cache on tape  overwritten in 1
run.
  driver: WARNING: This is not the first amdump run today. Enable the
usetimestamps option in the configuration file if you want to run
amdump more than
once per calendar day.
  taper: tape FULLBACK-01 kb 64 fm 1 [OK]
  big estimate: localhost /cache 0
    est: 64k    out 32k


But the next time i run it i will say 

*** A TAPE ERROR OCCURRED: [No writable valid tape found].
Some dumps may have been left in the holding disk.
Run amflush to flush them to tape.
The next tape Amanda expects to use is: a new tape.

Is there any possibility to make it use the same tape over and over
again for this backup.

[EMAIL PROTECTED]:~$ more /etc/amanda/fullback/tapelist
20080929 FULLBACK-01 reuse

Kind Regards,
Prashant


Jean-Louis Martineau wrote:
Prashant
Ramhit wrote:
  
  Hi All,


Thanks for your help.

Attached is the amdump.1



Do you think its because it is not using the tape FULLBACK-01.

How can I make it to reuse fullback-01 again.

  
Do the following two command:
  
 amrmtape fullbackfullback-01
  
 amlabel -f fullback fullback-01
  
  
Your 'mailto' is set to 'root', did it receive the email report?
  
  
Jean-Louis
  
  



-- 



  

   Prashant Ramhit
  Technical
   
  
  


  


   [EMAIL PROTECTED]
d: +44 (0)20 7923 6870
t: +44 (0)20 7923 6840
  www.bluebarracuda.com
  

  






Re: Logs and reporting

2008-09-29 Thread Jean-Louis Martineau

Prashant Ramhit wrote:

Hi All,

Thanks for your help.
Attached is the amdump.1


Do you think its because it is not using the tape FULLBACK-01.
How can I make it to reuse fullback-01 again.

Do the following two command:
 amrmtape fullbackfullback-01
 amlabel -f fullback fullback-01

Your 'mailto' is set to 'root', did it receive the email report?

Jean-Louis



Re: Logs and reporting

2008-09-29 Thread Jean-Louis Martineau

Hi Prashant,

Post /var/lib/amanda/fullback/amdump or /var/lib/amanda/fullback/amdump.1

Jean-Louis

Prashant Ramhit wrote:

Hi Dustin,

Thanks for your reply.
The output is as follows

[EMAIL PROTECTED]:/etc/amanda$ sh -x /usr/sbin/amdump fullback

+ sh -x /usr/sbin/amdump fullback
+ prefix=/usr
+ exec_prefix=/usr
+ sbindir=/usr/sbin
+ libexecdir=/usr/libexec/amanda
+ confdir=/etc/amanda
+ 
PATH=/usr/sbin:/usr/libexec/amanda:/usr/bin:/bin:/usr/sbin:/sbin:/usr/ucb

+ export PATH
+ USE_VERSION_SUFFIXES=no
+ test no = yes
+ SUF=
+ '[' 1 -lt 1 ']'
+ exit_status=0
+ conf=fullback
+ '[' '!' -d /etc/amanda/fullback ']'
+ shift
+ cd /etc/amanda/fullback
++ amgetconf fullback logdir
+ logdir=/var/lib/amanda/fullback
+ '[' 0 -ne 0 ']'
+ errfile=/var/lib/amanda/fullback/amdump
++ amgetconf fullback tapecycle
+ tapecycle=10
+ '[' 0 -ne 0 ']'
++ amgetconf fullback dumpuser
+ dumpuser=amanda
+ '[' 0 -ne 0 ']'
+ runuser=amanda
+ '[' 0 -ne 0 ']'
+ test -f hold
+ test -f /var/lib/amanda/fullback/amdump
+ test -f /var/lib/amanda/fullback/log
+ umask 077
+ exit_code=0
+ touch /var/lib/amanda/fullback/amdump
+ exit_code=0
+ '[' 0 -ne 0 ']'
+ exec


I do not receive mail notification as well.

Kind Regards,
Prashant

Dustin J. Mitchell wrote:

On Mon, Sep 29, 2008 at 9:35 AM, Prashant Ramhit
<[EMAIL PROTECTED]> wrote:
 

I've run amdump several times and but there is nothing on the console.



amdump does not output anything to the console.

 

The log files are not created either.



Run amdump under sh -x to see what's failing?

Dustin

  







Re: Logs and reporting

2008-09-29 Thread Prashant Ramhit

Hi All,

Thanks for your help.
Attached is the amdump.1


Do you think its because it is not using the tape FULLBACK-01.
How can I make it to reuse fullback-01 again.

Regards,
Prashant



### Amdump ###

[EMAIL PROTECTED]:/etc/amanda/fullback$ amcheck fullback
Amanda Tape Server Host Check
-
Holding disk /var/tmp/amanda: 16101880 kB disk space available, using 
1024000 kB as requested

*read label `FULLBACK-01', date `20080919'
cannot overwrite active tape FULLBACK-01
  (expecting a new tape)*
Server check took 0.756 seconds

Amanda Backup Client Hosts Check

WARNING: Usage of fully qualified hostname recommended for Client localhost.
WARNING: Usage of fully qualified hostname recommended for Client localhost.
WARNING: Usage of fully qualified hostname recommended for Client localhost.
Client check: 1 host checked in 0.019 seconds, 0 problems found

(brought to you by Amanda 2.5.2)

### Client list 

[EMAIL PROTECTED]:/etc/amanda/fullback$ more /var/lib/amanda/.amandahosts
localhost amanda amdump
backupserver.bluebarracuda.com amanda amdump
backupserver.bluebarracuda.com root amindexd
backupserver.bluebarracuda.com root amidxtaped
backupserver.bluebarracuda.com root amindexd
backupserver.bluebarracuda.com root amidxtaped

Regards,
Prashant


Jean-Louis Martineau wrote:

Hi Prashant,

Post /var/lib/amanda/fullback/amdump or /var/lib/amanda/fullback/amdump.1

Jean-Louis

Prashant Ramhit wrote:

Hi Dustin,

Thanks for your reply.
The output is as follows

[EMAIL PROTECTED]:/etc/amanda$ sh -x /usr/sbin/amdump fullback

+ sh -x /usr/sbin/amdump fullback
+ prefix=/usr
+ exec_prefix=/usr
+ sbindir=/usr/sbin
+ libexecdir=/usr/libexec/amanda
+ confdir=/etc/amanda
+ 
PATH=/usr/sbin:/usr/libexec/amanda:/usr/bin:/bin:/usr/sbin:/sbin:/usr/ucb 


+ export PATH
+ USE_VERSION_SUFFIXES=no
+ test no = yes
+ SUF=
+ '[' 1 -lt 1 ']'
+ exit_status=0
+ conf=fullback
+ '[' '!' -d /etc/amanda/fullback ']'
+ shift
+ cd /etc/amanda/fullback
++ amgetconf fullback logdir
+ logdir=/var/lib/amanda/fullback
+ '[' 0 -ne 0 ']'
+ errfile=/var/lib/amanda/fullback/amdump
++ amgetconf fullback tapecycle
+ tapecycle=10
+ '[' 0 -ne 0 ']'
++ amgetconf fullback dumpuser
+ dumpuser=amanda
+ '[' 0 -ne 0 ']'
+ runuser=amanda
+ '[' 0 -ne 0 ']'
+ test -f hold
+ test -f /var/lib/amanda/fullback/amdump
+ test -f /var/lib/amanda/fullback/log
+ umask 077
+ exit_code=0
+ touch /var/lib/amanda/fullback/amdump
+ exit_code=0
+ '[' 0 -ne 0 ']'
+ exec


I do not receive mail notification as well.

Kind Regards,
Prashant

Dustin J. Mitchell wrote:

On Mon, Sep 29, 2008 at 9:35 AM, Prashant Ramhit
<[EMAIL PROTECTED]> wrote:
 

I've run amdump several times and but there is nothing on the console.



amdump does not output anything to the console.

 

The log files are not created either.



Run amdump under sh -x to see what's failing?

Dustin

  








--
*Prashant Ramhit*
/Technical/

Blue Barracuda
[EMAIL PROTECTED] 
d: +44 (0)20 7923 6870
t: +44 (0)20 7923 6840
www.bluebarracuda.com 

amdump: start at Mon Sep 29 16:37:17 BST 2008
amdump: datestamp 20080929
amdump: starttime 20080929163717
planner: pid 4166 executable /usr/libexec/amanda/planner version 2.5.2
planner: build: VERSION="Amanda-2.5.2"
planner:BUILT_DATE="Sat May 5 03:02:27 EDT 2007"
planner:BUILT_MACH="Linux callisto 2.6.21.1 #1 Sun Apr 29 02:01:40 EDT 
2007 i686 athlon-4 i386 GNU/Linux"
planner:CC="gcc"
planner:CONFIGURE_COMMAND="'./configure' '--prefix=/usr' 
'--libexecdir=/usr/libexec/amanda' '--sysconfdir=/etc' '--localstatedir=/var' 
'--infodir=/usr/info' '--mandir=/usr/man' 
'--with-dumperdir=/usr/libexec/amanda/dumpers' '--with-user=amanda' 
'--with-group=disk'"
planner: paths: bindir="/usr/bin" sbindir="/usr/sbin"
planner:libexecdir="/usr/libexec/amanda" mandir="/usr/man"
planner:AMANDA_TMPDIR="/tmp/amanda" AMANDA_DBGDIR="/tmp/amanda"
planner:CONFIG_DIR="/etc/amanda" DEV_PREFIX="/dev/"
planner:RDEV_PREFIX="/dev/" DUMP="/usr/sbin/backup"
planner:RESTORE="/usr/sbin/restore" VDUMP=UNDEF VRESTORE=UNDEF
planner:XFSDUMP=UNDEF XFSRESTORE=UNDEF VXDUMP=UNDEF VXRESTORE=UNDEF
planner:SAMBA_CLIENT="/usr/bin/smbclient" GNUTAR="/usr/bin/tar"
planner:COMPRESS_PATH="/usr/bin/gzip"
planner:UNCOMPRESS_PATH="/usr/bin/gzip" LPRCMD="/usr/bin/lpr"
planner:MAILER="/usr/bin/Mail"
planner:listed_incr_dir="/var/amanda/gnutar-lists"
planner: defs:  DEFAULT_SERVER="callisto" DEFAULT_CONFIG="DailySet1"
planner:DEFAULT_TAPE_SERVER="callisto" HAVE_MMAP NEED_STRSTR
planner:HAVE_SYSVSHM LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE
planner:AMANDA_DEBUG_DAYS=4 BSD_SECURITY RSH_SECURITY USE_AMANDAHOSTS
planner:CLIENT_LOGIN="amanda" FORCE_USERID HAVE_GZIP
planner:COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
planner:CO

Re: Logs and reporting

2008-09-29 Thread Dustin J. Mitchell
What is the exit status of amdump?

Have you checked that all necessary directories exist and have the
proper permissions? curinfo, log directories, etc.

Dustin

-- 
Storage Software Engineer
http://www.zmanda.com


Re: Logs and reporting

2008-09-29 Thread Prashant Ramhit

Hi Dustin,

Thanks for your reply.
The output is as follows

[EMAIL PROTECTED]:/etc/amanda$ sh -x /usr/sbin/amdump fullback

+ sh -x /usr/sbin/amdump fullback
+ prefix=/usr
+ exec_prefix=/usr
+ sbindir=/usr/sbin
+ libexecdir=/usr/libexec/amanda
+ confdir=/etc/amanda
+ PATH=/usr/sbin:/usr/libexec/amanda:/usr/bin:/bin:/usr/sbin:/sbin:/usr/ucb
+ export PATH
+ USE_VERSION_SUFFIXES=no
+ test no = yes
+ SUF=
+ '[' 1 -lt 1 ']'
+ exit_status=0
+ conf=fullback
+ '[' '!' -d /etc/amanda/fullback ']'
+ shift
+ cd /etc/amanda/fullback
++ amgetconf fullback logdir
+ logdir=/var/lib/amanda/fullback
+ '[' 0 -ne 0 ']'
+ errfile=/var/lib/amanda/fullback/amdump
++ amgetconf fullback tapecycle
+ tapecycle=10
+ '[' 0 -ne 0 ']'
++ amgetconf fullback dumpuser
+ dumpuser=amanda
+ '[' 0 -ne 0 ']'
+ runuser=amanda
+ '[' 0 -ne 0 ']'
+ test -f hold
+ test -f /var/lib/amanda/fullback/amdump
+ test -f /var/lib/amanda/fullback/log
+ umask 077
+ exit_code=0
+ touch /var/lib/amanda/fullback/amdump
+ exit_code=0
+ '[' 0 -ne 0 ']'
+ exec


I do not receive mail notification as well.

Kind Regards,
Prashant

Dustin J. Mitchell wrote:

On Mon, Sep 29, 2008 at 9:35 AM, Prashant Ramhit
<[EMAIL PROTECTED]> wrote:
  

I've run amdump several times and but there is nothing on the console.



amdump does not output anything to the console.

  

The log files are not created either.



Run amdump under sh -x to see what's failing?

Dustin

  





Re: Logs and reporting

2008-09-29 Thread Dustin J. Mitchell
On Mon, Sep 29, 2008 at 9:35 AM, Prashant Ramhit
<[EMAIL PROTECTED]> wrote:
> I've run amdump several times and but there is nothing on the console.

amdump does not output anything to the console.

> The log files are not created either.

Run amdump under sh -x to see what's failing?

Dustin

-- 
Storage Software Engineer
http://www.zmanda.com


Re: Logs and reporting

2008-09-29 Thread Prashant Ramhit

Hi Dustin,

I've run amdump several times and but there is nothing on the console.
The log files are not created either.

[EMAIL PROTECTED]:/etc/amanda$ /usr/sbin/amcheck fullback
Amanda Tape Server Host Check
-
Holding disk /var/tmp/amanda: 16102596 kB disk space available, using 
1024000 kB as requested

read label `FULLBACK-01', date `20080919'
cannot overwrite active tape FULLBACK-01
  (expecting a new tape)
NOTE: conf info dir /var/lib/amanda/fullback/curinfo does not exist
NOTE: it will be created on the next run.
NOTE: index dir /var/lib/amanda/fullback/index/localhost does not exist
NOTE: it will be created on the next run.
Server check took 0.525 seconds

Amanda Backup Client Hosts Check

WARNING: Usage of fully qualified hostname recommended for Client localhost.
WARNING: Usage of fully qualified hostname recommended for Client localhost.
WARNING: Usage of fully qualified hostname recommended for Client localhost.
Client check: 1 host checked in 0.014 seconds, 0 problems found

(brought to you by Amanda 2.5.2)
[EMAIL PROTECTED]:/etc/amanda$

Any thing I can do to get more debug info.

Thanks
Prashant


Dustin J. Mitchell wrote:

On Mon, Sep 29, 2008 at 8:30 AM, Prashant Ramhit
<[EMAIL PROTECTED]> wrote:
  

I am using amanda 2.5.2 and according to amcheck all is ok. Except that i do
not have logs and cannot see if backup is occuring or not.
Is there any thing else to enable to get logs and reports or any data on the
console.



>From the amcheck output, it doesn't look like you've ever run an
amdump.  When you run amdump, what happens?  Do you get a report by
email?

Dustin

  





Re: Logs and reporting

2008-09-29 Thread Dustin J. Mitchell
On Mon, Sep 29, 2008 at 8:30 AM, Prashant Ramhit
<[EMAIL PROTECTED]> wrote:
> I am using amanda 2.5.2 and according to amcheck all is ok. Except that i do
> not have logs and cannot see if backup is occuring or not.
> Is there any thing else to enable to get logs and reports or any data on the
> console.

>From the amcheck output, it doesn't look like you've ever run an
amdump.  When you run amdump, what happens?  Do you get a report by
email?

Dustin

-- 
Storage Software Engineer
http://www.zmanda.com