Amanda-Users

2.5.1: underscores in diskname lead to full backup upon upgrade

2006-11-15 21:34:37
Subject: 2.5.1: underscores in diskname lead to full backup upon upgrade
From: Jean-Francois Malouin <Jean-Francois.Malouin AT bic.mni.mcgill DOT ca>
To: AMANDA users <amanda-users AT amanda DOT org>
Date: Wed, 15 Nov 2006 15:44:56 -0500
Hello,

Upgrading from 2.4.5 to 2.5.1p1 and 2.5.1p2 I've noticed that if a DLE
has a diskname with an underscore in it then amcheck will complain
that the index and info files do no exit and amanda will then schedule
a full backup for those DLEs the first time the new version runs. Not
nice when you have a few TB of data with DLEs with underscores!

I think that this is because "_" used to be doubled ("__") for the
dirnames leading to the index and info files (as "/" are turned into
"_") but not anymore with 2.5.x. I think this is A Good Thing ("_" is
not a special shell character after all) but I wonder if just creating
symlinks to bypass the problem would create other problems down the
lines...or just s/__/_/ the offending index/info dirnames?

Example:

DLE:
yorick concussion1_jenkai /data/concussion/concussion1/jenkai {
    tar-calc-100
}

ls /opt/amanda/usr/adm/amanda/stk_80-conf2/index/yorick/concussion1__jenkai
/opt/amanda//usr/adm/amanda/stk_80-conf2/index/yorick/concussion1__jenkai:
20061101_1.gz   20061104_1.gz   20061107_1.gz 20061110_1.gz   20061113_1.gz
20061102_1.gz   20061105_1.gz   20061108_1.gz 20061111_1.gz   20061114_1.gz
20061031_0.gz   20061103_1.gz   20061106_1.gz   20061109_1.gz 20061112_0.gz   
20061115_1.gz

but now amcheck complains 

NOTE: info dir 
/opt/amanda/usr/adm/amanda/stk_80-conf2/curinfo/yorick/concussion1_jenkai 
does not exist
NOTE: it will be created on the next run.
NOTE: index dir 
/opt/amanda/usr/adm/amanda/stk_80-conf2/index/yorick/concussion1_jenkai
does not exist
NOTE: it will be created on the next run.

Thanks!
jf

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