Hi All (again!)
I must be mising something really simple here. I have a monthly dump
that errored (schedule 4). I have changed the tape, relabelled the tape,
amchecked
it ... but it won't flush. Even more puzzling is that it won't "see" the files
on the holding disk. The files are there, the tape writes with no problems at
all ... Any ideas?
*-------------------------------------------------------------------------------------------------------------------------------
Here are the files on the holding disk:
209664 1 drwx------ 2 amanda sys 512 Feb 20 21:39
/holding2/schedule4/20040220
209672 5156480 -rw------- 1 amanda sys 5277646848 Feb 20 20:56
/holding2/schedule4/20040220/intrat._u20.0
209665 120328 -rw------- 1 amanda sys 123142144 Feb 20 19:33
/holding2/schedule4/20040220/intrad._htdocs_clid_log.0
209667 814744 -rw------- 1 amanda sys 833880064 Feb 20 19:41
/holding2/schedule4/20040220/intrad._usr_local_src.0
209666 1776208 -rw------- 1 amanda sys 1817935872 Feb 20 19:44
/holding2/schedule4/20040220/intrat._.0
209668 1238216 -rw------- 1 amanda sys 1267302400 Feb 20 19:53
/holding2/schedule4/20040220/intrad._.0
209670 1530264 -rw------- 1 amanda sys 1566212096 Feb 20 20:09
/holding2/schedule4/20040220/intrad._export_home.0
209669 4169344 -rw------- 1 amanda sys 4267311104 Feb 20 20:17
/holding2/schedule4/20040220/intrat._opt.0
209671 1840176 -rw------- 1 amanda sys 1883406336 Feb 20 20:30
/holding2/schedule4/20040220/intrad._opt.0
209673 6138336 -rw------- 1 amanda sys 6282575872 Feb 20 21:39
/holding2/schedule4/20040220/intrat._htdocs.0
*-------------------------------------------------------------------------------------------------------------------------------
Here is the amcheck:
windamere[575]% amcheck sched4monthly
Amanda Tape Server Host Check
-----------------------------
Holding disk /holding2/schedule4: 62083037 KB disk space available, that's
plenty
amcheck-server: slot 29: date 20040226 label schedule4-JAN-2004 (new tape)
NOTE: skipping tape-writable test
Tape schedule4-JAN-2004 label ok
Server check took 33.684 seconds
Amanda Backup Client Hosts Check
--------------------------------
Client check: 2 hosts checked in 1.373 seconds, 0 problems found
(brought to you by Amanda 2.4.4p2)
*-------------------------------------------------------------------------------------------------------------------------------
I then do the flush:
windamere[576]% amflush sched4monthly
Scanning /holding2/schedule4...
20040219: found Amanda directory.
20040220: found Amanda directory.
Multiple Amanda directories, please pick one by letter:
A. 20040219
B. 20040220
Select directories to flush [A..B]: [ALL] b
Today is: 20040226
Flushing dumps in 20040220 using tape changer "chg-chs2".
Expecting a new tape. (The last dumps were to tape schedule4-END-2003)
Are you sure you want to do this [yN]? y
Running in background, you can log off now.
You'll get mail when amflush is finished.
windamere[577]%
*-------------------------------------------------------------------------------------------------------------------------------
The email I receive fro mthe attempted flush is this:
Subject: schedule4 AMFLUSH MAIL REPORT FOR February 26, 2004
Date: Thu, 26 Feb 2004 10:17:53 +1100 (EST)
From: Amanda Archiving Server <amanda AT dipnr.nsw.gov DOT au>
To: sapamanda AT dipnr.nsw.gov DOT au
The dumps were flushed to tape schedule4-JAN-2004.
*** A TAPE ERROR OCCURRED: [[writing file: I/O error]].
Some dumps may have been left in the holding disk.
Run amflush again to flush them to tape.
The next tape Amanda expects to use is: a new tape.
FAILURE AND STRANGE DUMP SUMMARY:
intrat /u20 lev 0 FAILED [out of tape]
STATISTICS:
Total Full Daily
-------- -------- --------
Estimate Time (hrs:min) 0:00
Run Time (hrs:min) 0:13
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 0 0 0
Avg Dump Rate (k/s) -- -- --
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 0 0 0
Avg Tp Write Rate (k/s) -- -- --
USAGE BY TAPE:
Label Time Size % Nb
schedule4-JAN-2004 0:00 0.0 0.0 0
NOTES:
driver: WARNING: /holding2/schedule4: 52428800 KB requested, but only 37434075
KB available.
taper: tape schedule4-JAN-2004 kb 1053504 fm 1 writing file: I/O error
DUMP SUMMARY:
DUMPER STATS TAPER STATS
HOSTNAME DISK L ORIG-KB OUT-KB COMP% MMM:SS KB/s MMM:SS KB/s
-------------------------- --------------------------------- ------------
intrad / NO FILE TO FLUSH -----------------------------
intrad -xport/home NO FILE TO FLUSH -----------------------------
intrad -s/clid/log NO FILE TO FLUSH -----------------------------
intrad /opt NO FILE TO FLUSH -----------------------------
intrad -/local/src NO FILE TO FLUSH -----------------------------
intrat / NO FILE TO FLUSH -----------------------------
intrat /htdocs NO FILE TO FLUSH -----------------------------
intrat /opt NO FILE TO FLUSH -----------------------------
intrat /u20 0 N/A 0 -- N/A N/A FAILED ----
(brought to you by Amanda version 2.4.4p2)
*-------------------------------------------------------------------------------------------------------------------------------
and finally ... to prove nothing is wrong with the tape .... I'll just tar
a quick filesystem to it (destroying the amanda label, I know ... but
I can always re-labell it):
windamere[589]% tar -cf /dev/rmt/3c /tmp
tar: Removing leading / from absolute path names in the archive
tar: Cannot open directory /tmp/smc898: Permission denied
windamere[590]% tar -tf /dev/rmt/3c
tmp/
tmp/ps_data
tmp/smc898/
tmp/.pcmcia/
tmp/.pcmcia/pcram
tmp/.removable/
tmp/.removable/cdrom0-0
tmp/.X11-unix/
tmp/.X11-unix/X0
tmp/.X11-pipe/
tmp/.X11-pipe/X0
tmp/ups_data
tmp/amanda/
tmp/amanda/amtrmlog.20040225032255.debug
tmp/amanda/changer.debug
tmp/amanda/amtrmidx.20040225032257.debug
tmp/amanda/amtrmlog.20040225033204.debug
tmp/amanda/amtrmidx.20040225033205.debug
........ (truncated from here on)
All is OK with the tape and the tape drive (well barring a problem
with the tape at, say ... the 5GB section or something). What am I missing?
thanks all
geoffs :-)
----------------------------------------------------------------------
Geoff Swavley Email : geoffs AT radx DOT net
UNIX Sys Admin Snail : Level 8, 10 Valentine Ave,
Support and Network Operations Parramatta NSW 2150
Dept of Infrastructure, Planning Sydney Australia
and Natural Resources Phone : 61-2-98957125
http://www.radx.net/~geoffs Fax : 61-2-98957086
Mobile: 61-422-002005 Home : 61-2-96593637
----------------------------------------------------------------------
"Be wary of the man who urges an action in which he himself incurs
no risk." - Setanti, Joaquin de
|