Amanda-Users

Re: Logs and reporting

2008-09-29 11:50:47
Subject: Re: Logs and reporting
From: Prashant Ramhit <prashant AT bluebarracuda DOT com>
To: Jean-Louis Martineau <martineau AT zmanda DOT com>
Date: Mon, 29 Sep 2008 16:42:28 +0100
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 ###

amanda@backupserver:/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 ####

amanda@backupserver:/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

amanda@backupserver:/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
<prashant AT bluebarracuda DOT com> 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
prashant AT bluebarracuda DOT com <mailto:prashant AT bluebarracuda DOT com>
d: +44 (0)20 7923 6870
t: +44 (0)20 7923 6840
www.bluebarracuda.com <http://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:        COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
READING CONF FILES...
planner: timestamp 20080929
planner: time 0.001: startup took 0.001 secs

SENDING FLUSHES...
ENDFLUSH

SETTING UP FOR ESTIMATES...
planner: time 0.001: setting up estimates for localhost:/cache
localhost:/cache overdue 14152 days for level 0
setup_estimate: localhost:/cache: command 0, options: none    last_level -1 
next_level0 -14152 level_days 0    getting estimates 0 (-2) -1 (-2) -1 (-2)
planner: time 0.001: setting up estimates took 0.000 secs

GETTING ESTIMATES...
driver: pid 4167 executable /usr/libexec/amanda/driver version 2.5.2
driver: tape size 822083584
driver: adding holding disk 0 dir /var/tmp/amanda size 1024000 chunksize 1048576
reserving 1024000 out of 1024000 for degraded-mode dumps
taper: pid 4169 executable taper version 2.5.2
taper: page size = 4096
taper: buffer size is 32768
driver: send-cmd time 0.007 to taper: START-TAPER 20080929
driver: started dumper0 pid 4174
driver: send-cmd time 0.008 to dumper0: START 20080929
dumper: pid 4175 executable dumper1 version 2.5.2
driver: started dumper1 pid 4175
driver: send-cmd time 0.013 to dumper1: START 20080929
dumper: pid 4174 executable dumper0 version 2.5.2
dumper: pid 4176 executable dumper2 version 2.5.2
driver: started dumper2 pid 4176
driver: send-cmd time 0.017 to dumper2: START 20080929
dumper: pid 4178 executable dumper3 version 2.5.2
driver: started dumper3 pid 4178
driver: send-cmd time 0.022 to dumper3: START 20080929
driver: start time 0.022 inparallel 4 bandwidth 600 diskspace 1024000  dir 
OBSOLETE datestamp 20080929 driver: drain-ends tapeq FIRST big-dumpers ttt
planner: time 0.033: got partial result for host localhost disk /cache: 0 -> 
-2K, -1 -> -2K, -1 -> -2K
planner: time 0.039: got partial result for host localhost disk /cache: 0 -> 
10K, -1 -> -2K, -1 -> -2K
planner: time 0.040: got result for host localhost disk /cache: 0 -> 10K, -1 -> 
-2K, -1 -> -2K
planner: time 0.040: getting estimates took 0.038 secs
FAILED QUEUE: empty
DONE QUEUE:
  0: localhost  /cache

ANALYZING ESTIMATES...
pondering localhost:/cache... next_level0 -14152 last_level -1 (due for level 
0) (new disk, can't switch to degraded mode)
  curr level 0 nsize 10 csize 10 total size 106 total_lev0 10 balanced-lev0size 
10
INITIAL SCHEDULE (size 106):
  localhost /cache pri 14152 lev 0 nsize 10 csize 10

DELAYING DUMPS IF NEEDED, total_size 106, tape length 822083584 mark 0
  delay: Total size now 106.

PROMOTING DUMPS IF NEEDED, total_lev0 10, balanced_size 10...
planner: time 0.040: analysis took 0.000 secs

GENERATING SCHEDULE:
--------
DUMP localhost ffffffff9ffeffffffff00 /cache 20080929 14152 0 1970:1:1:0:0:0 10 
10 0 1024
--------
read label `FULLBACK-01', date `20080919'
cannot overwrite active tape FULLBACK-01

driver: result time 0.556 from taper: TAPE-ERROR <nohandle> "[read label 
`FULLBACK-01', date `20080919'\012cannot overwrite active tape FULLBACK-01\012]"
driver: state time 0.556 free kps: 600 space: 1024000 taper: idle idle-dumpers: 
4 qlen tapeq: 0 runq: 0 roomq: 0 wakeup: 0 driver-idle: not-idle
driver: interface-state time 0.556 if default: free 600
driver: hdisk-state time 0.556 hdisk 0: free 1024000 dumpers 0
driver: flush size 0
dump of driver schedule before start degraded mode:
--------
  localhost            /cache                    lv 0 t     0 s 64 p 14152
--------
dump of driver schedule after start degraded mode:
--------
--------
driver: state time 0.556 free kps: 600 space: 1024000 taper: DOWN idle-dumpers: 
4 qlen tapeq: 0 runq: 0 roomq: 0 wakeup: 0 driver-idle: no-dumpers
driver: interface-state time 0.556 if default: free 600
driver: hdisk-state time 0.556 hdisk 0: free 1024000 dumpers 0
driver: QUITTING time 0.556 telling children to quit
driver: send-cmd time 0.556 to dumper0: QUIT
driver: send-cmd time 0.556 to dumper1: QUIT
driver: send-cmd time 0.556 to dumper2: QUIT
driver: send-cmd time 0.557 to dumper3: QUIT
driver: send-cmd time 0.557 to taper: QUIT
taper: DONE [idle wait: 0.001 secs]
driver: FINISHED time 0.558
amdump: end at Mon Sep 29 16:37:17 BST 2008
Warning: no log files found for tape FULLBACK-01 written 2008-09-29
Warning: no log files found for tape FULLBACK-01 written 2008-09-29
0
0
0
0
0
0
0
0
0
0
0
<Prev in Thread] Current Thread [Next in Thread>