Amanda-Users

Re: 2.5.1: underscores in diskname lead to full backup upon upgrade

2006-11-16 09:14:15
Subject: Re: 2.5.1: underscores in diskname lead to full backup upon upgrade
From: Jean-Louis Martineau <martineau AT zmanda DOT com>
To: Jean-Francois Malouin <Jean-Francois.Malouin AT bic.mni.mcgill DOT ca>
Date: Thu, 16 Nov 2006 09:04:27 -0500
Hi,

A s/__/_/ should be enough, you will need to also do it in the gnutar-lists.

A will release a patch that do the rename automatically.

Jean-Louis

Jean-Francois Malouin wrote:
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>