Amanda-Users

Re: Amanda can't overwrite old tapes

2008-10-16 18:43:26
Subject: Re: Amanda can't overwrite old tapes
From: Jean-Louis Martineau <martineau AT zmanda DOT com>
To: thomaswegner AT gmx DOT net
Date: Thu, 16 Oct 2008 17:39:07 -0400
Look correctly at the error message:
 label weekly1-10 match labelstr but it not listed in the tapelist file.

Why it is not in the tapelist file? You probably have only 9 tapes in the tapelist, so they are all actives and can't be reused.

You should relabel weekly1-10 correctly.

You should never run two commands in parallel that update the tapelist file, otherwise it can be corrupted like this.

Jean-Louis

Thomas Wegner wrote:
Hello!

I'm running weekly backups with two cycles a week. Here are my settings
in amanda.conf:

----------------------------
dumpcycle 7 runspercycle 2 tapecycle 10 tapes runtapes 5
tpchanger "chg-disk"
----------------------------
I'm still testing amanda. This is the first time amanda used all 10 vtapes. I 
thought amanda will automaticly use old tapes when there aren't new vtapes 
available.
This is the email from amanda:

-----------------------------
These dumps were to tape weekly1-9.
*** A TAPE ERROR OCCURRED: [No more writable valid tape found].
Some dumps may have been left in the holding disk.
Run amflush to flush them to tape.
The next 5 tapes Amanda expects to use are: 5 new tapes.

FAILURE AND STRANGE DUMP SUMMARY:
Knecht /etc lev 0 STRANGE chef /Nutzerdaten/VM-Ware lev 0 FAILED [out of tape]


STATISTICS:
                          Total       Full      Incr.
                        --------   --------   --------
Estimate Time (hrs:min)    0:03
Run Time (hrs:min)         3:15
Dump Time (hrs:min)        2:55       2:49       0:06
Output Size (meg)       10012.8     9726.1      286.7
Original Size (meg)     17552.7    17009.6      543.1
Avg Compressed Size (%)    57.0       57.2       52.8
(level:#disks ...)
Filesystems Dumped           12         11          1   (1:1)
Avg Dump Rate (k/s)       975.9      981.0      827.5

Tape Time (hrs:min)        0:16       0:11       0:05
Tape Size (meg)          2248.4     1961.8      286.7
Tape Used (%)              25.1       21.9        3.2
(level:#disks ...)
Filesystems Taped            11         10          1   (1:1)
   (level:#chunks ...)
Chunks Taped                 14         13          1   (1:1)
Avg Tp Write Rate (k/s)  2459.2     3020.6     1082.5

USAGE BY TAPE:
  Label           Time      Size      %    Nb    Nc
  weekly1-9       0:31     8392M   93.6    11    14


FAILED AND STRANGE DUMP DETAILS:

/--  Knecht /etc lev 0 STRANGE
sendbackup: start [Knecht:/etc level 0]
sendbackup: info BACKUP=/bin/tar
sendbackup: info RECOVER_CMD=/bin/gzip -dc |/bin/tar -xpGf - ...
sendbackup: info COMPRESS_SUFFIX=.gz
sendbackup: info end
? gtar: ./amanda/weekly1/index/chef/_windows_daten/20081015_0.gz.tmp:
Warning: Cannot stat: No such file or directory
| Total bytes written: 16066560 (16MiB, 314KiB/s)
sendbackup: size 15690
sendbackup: end
\--------


NOTES:
  planner: Last full dump of chef:/home on tape weekly1-8 overwritten in
1 run.
  planner: Last full dump of chef:/etc on tape weekly1-5 overwritten in
1 run.
  planner: Last full dump of chef:/root on tape weekly1-5 overwritten in
1 run.
  planner: Last full dump of chef:/var on tape weekly1-5 overwritten in
1 run.
  planner: Last full dump of chef:/usr on tape weekly1-5 overwritten in
1 run.
  planner: Last full dump of chef:/Applications on tape weekly1-5
overwritten in 1 run.
  planner: Last full dump of chef:/windows_daten on tape weekly1-5
overwritten in 1 run.
  planner: Last full dump of chef:/gemeinsamer_ordner on tape weekly1-5
overwritten in 1 run.
  planner: Last full dump of chef:/Nutzerdaten/VM-Ware on tape weekly1-6
overwritten in 1 run.
  planner: Last full dump of Knecht:/etc on tape weekly1-5 overwritten
in 1 run.
  planner: Last full dump of Knecht:/var/lib/amanda on tape weekly1-5
overwritten in 1 run.
  planner: Last full dump of Knecht:/root on tape weekly1-5 overwritten
in 1 run.
  planner: Full dump of chef:/var promoted from 2 days ahead.
  planner: Full dump of chef:/usr promoted from 2 days ahead.
  planner: Full dump of Knecht:/etc promoted from 2 days ahead.
  planner: Full dump of chef:/windows_daten promoted from 2 days ahead.
  planner: Full dump of Knecht:/var/lib/amanda promoted from 2 days
ahead.
  planner: Full dump of Knecht:/root promoted from 2 days ahead.
  planner: Full dump of chef:/etc promoted from 2 days ahead.
  planner: Full dump of chef:/Nutzerdaten/VM-Ware promoted from 2 days
ahead.
  planner: Full dump of chef:/root promoted from 2 days ahead.
  planner: Full dump of chef:/gemeinsamer_ordner promoted from 2 days
ahead.
  planner: Full dump of chef:/Applications promoted from 2 days ahead.
  taper: tape weekly1-9 kb 9179104 fm 15 writing file: No space left on
device
  driver: Taper  error: "[slot 9: read label `weekly1-9', date
`20081015'\012cannot overwrite active tape weekly1-9\012slot 10: read
label `weekly1-10', date `20081004'\012label weekly1-10 match labelstr
but it not listed in the tapelist file.\012slot 1: read label
`weekly1-1', date `20081004'\012cannot overwrite active tape weekly1-1
\012slot 2: read label `weekly1-2', date `20081004'\012cannot overwrite
active tape weekly1-2\012slot 3: read label `weekly1-3', date
`20081008'\012cannot overwrite active tape weekly1-3\012slot 4: read
label `weekly1-4', date `20081008'\012cannot overwrite active tape
weekly1-4\012slot 5: read label `weekly1-5', date `20081010'\012cannot
overwrite active tape weekly1-5\012slot 6: read label `weekly1-6', date
`20081010'\012cannot overwrite active tape weekly1-6\012slot 7: read
label `weekly1-7', date `20081012'\012cannot overwrite active tape
weekly1-7\012slot 8: read label `weekly1-8', date `20081012'\012cannot
overwrite active tape weekly1-8\012changer problem: 8
file:/Backup/amanda/dump/vtapes/weekly1]"
  driver: going into degraded mode because of taper component error.
  big estimate: chef /root 0
                est: 0M    out 0M
  big estimate: chef /var 0
                est: 431M    out 342M
  big estimate: chef /gemeinsamer_ordner 0
                est: 0M    out 0M
  small estimate: Knecht /etc 0
                  est: 7M    out 9M
  big estimate: Knecht /var/lib/amanda 0
                est: 0M    out 0M
  big estimate: Knecht /root 0
                est: 0M    out 0M


DUMP SUMMARY:
                                       DUMPER STATS               TAPER
STATS HOSTNAME DISK L ORIG-MB OUT-MB COMP% MMM:SS KB/s MMM:SS
KB/s
-------------------------- -------------------------------------
-------------
Knecht       /etc        0      15       9   59.6    0:53  174.6   0:10
942.8
Knecht       /root       0       0       0   32.0    0:01   30.8   0:00
1901.0
Knecht       -lib/amanda 0       0       0   53.3    0:01   49.3   0:00
3755.9
chef         -plications 0     202     201   99.5    3:24 1013.0   0:32
6371.9
chef         -en/VM-Ware 0   12749    7765   60.9  133:38  991.7  FAILED
-----
chef         /etc        0      14       4   30.8    0:06  798.6   0:01
5057.7
chef         -mer_ordner 0       0       0  320.0    0:00   16.8   0:00
1664.2
chef         /home       1     543     287   52.8    5:55  827.5   4:31
1082.5
chef         /root       0       1       0   16.7    0:00  495.1   0:00
5366.8
chef         /usr        0    3364    1400   41.6   24:49  963.3   9:14
2590.2
chef         /var        0     658     342   52.1    6:18  928.7   1:07
5208.8
chef         -dows_daten 0       5       4   74.3    0:04 1009.3   0:01
4370.1

(brought to you by Amanda version 2.5.2p1)
-----------------------------------------------------------------------

What went wrong? Any hints.



<Prev in Thread] Current Thread [Next in Thread>