[OpenAFS] backup troubles

Markus Köberl markus.koeberl@tugraz.at
Mon, 5 Jan 2009 16:02:17 +0100


Hi!

I have some problems using the backup system on a amd64 xen-domU. I have a 
perl script running which uses vos backupsys, backup dump and backup dumpinfo 
to save the backup on disk and automatically delete the old files.

After a backup of the backup-database (/var/lib/openafs/db/bdb.DB0) on the old 
debian i386 machine (openafs 1.4.1) I did a new installation using the same 
host name on a amd64 xen-domU. After installing a newer version of AFS 
(openafs 1.4.7) I restored the backup-database.

~$ backup dbverify -localauth
Database OK

Everything looked nice so I started the backup script which did not run as 
expected.

In the script the following commands get executed:
vos backupsys -prefix user -localauth
backup dump user /month0/week0/day5 3 -localauth
backup dumpinfo -id $id -verbose -localauth

vos backupsys worked fine.
backup dump returned -1 but seamed to work. I cannot not find the meaning of 
the return value in the docs.
backup dumpinfo sometimes returns false year at the expires date.


~$ backup dumpinfo -id 1231148454 -verbose -localauth
Dump
----
id = 1231148454
Initial id = 0
Appended id = 0
parent = 1231082429
level = 1
flags = 0x0: Successful
volumeSet = user
dump path = /month0/week0/day5
name = user.day5
created = Mon Jan  5 10:40:54 2009
nVolumes = 11
Group id  = 0
tapeServer = 
format = user.day5.%d
maxTapes = 1
Start Tape Seq = 1
name = afs
instance = 
cell = 

Tape
----
name = user.day5.1
flags = 0x20: Successful
written = (null)expires = Tue Aug  1 16:05:11 91972
kBytes Tape Used = 678704
nMBytes Data = 661
nBytes  Data = 205202
nFiles = 0
nVolumes = 11
seq = 1
labelPos = 0
useCount = 1
dump = 1231148454

Volume
------
name = user.toto.backup
flags = 0x18: First fragment: Last fragment
id = 536875716
server = 
partition = 0
tapeSeq = 1
position = 1
clone = Mon Jan  5 10:40:52 2009
startByte = 0
nBytes = 13153132
seq = 0
dump = 1231148454
tape = user.day5.1

Volume
------
name = user.mmuecke.backup
flags = 0x18: First fragment: Last fragment
id = 536874963
server = 
partition = 0
tapeSeq = 1
position = 808
clone = Mon Jan  5 10:40:52 2009
startByte = 0
nBytes = 15825896
seq = 0
dump = 1231148454
tape = user.day5.1
...
...


In the Tape section of the output of backup dumpinfo -verbose the expires date 
is set to "Tue Aug  1 16:05:11 91972". The false year appears for new and old 
entries but not all are affected.
Does this issue happen because I restored the backup of an i386 machine on an 
amd64 machine?

The backup is running now and I also can restore data but I have troubles to 
delete the old backups from the disk because of the false expires date.


Any ideas?
Markus
-- 
Markus Köberl
Graz University of Technology
Signal Processing and Speech Communication Laboratory
E-mail: markus.koeberl@tugraz.at