Blame UPGRADING

Packit Service 392537
Upgrading
Packit Service 392537
=========
Packit Service 392537
Packit Service 392537
This file describes the process for ugprading Amanda from a previous
Packit Service 392537
version.  In general, the Amanda development team aims for seamless
Packit Service 392537
upgrades.  In the rare cases where an upgrade requires other changes
Packit Service 392537
on your system, they are described in this file.
Packit Service 392537
Packit Service 392537
The file is organized from oldest to newest.  Please follow all of
Packit Service 392537
the directions, in order, for the range of versions over which you
Packit Service 392537
are upgrading.
Packit Service 392537
Packit Service 392537
See also http://wiki.zmanda.com/index.php/Version_compatibility for notes
Packit Service 392537
on the compatibility of various versions of Amanda.
Packit Service 392537
Packit Service 392537
General Notes
Packit Service 392537
-------------
Packit Service 392537
Packit Service 392537
When upgrading, be careful not to allow the new version of Amanda to find
Packit Service 392537
already-installed libraries from the old version.  The safest way to ensure
Packit Service 392537
this is to move the old libraries out of the way or remove them before
Packit Service 392537
compiling the new version.  There may be more effective ways to do so that are
Packit Service 392537
specific to your operating system.
Packit Service 392537
Packit Service 392537
Upgrading from pre-2.4.0
Packit Service 392537
------------------------
Packit Service 392537
Packit Service 392537
Amanda 2.4.0 has introduced a major incompatibility in the Amanda protocol.
Packit Service 392537
This means that pre-2.4.0 clients won't interoperate with a 2.4.0 server, nor
Packit Service 392537
will 2.4.0 clients interoperate with pre-2.4.0 servers. You have to upgrade
Packit Service 392537
them all at the same time.
Packit Service 392537
Packit Service 392537
To ease the upgrade process Amanda has, from release 2.4.0 on, a configure flag
Packit Service 392537
(--with-testing) that will cause Amanda to use alternate service names (Amanda-
Packit Service 392537
test) instead of the standard ones. This allows you to keep using your old
Packit Service 392537
version of Amanda while you test the new one.
Packit Service 392537
Packit Service 392537
Depending upon the version of Amanda you are upgrading from, Amanda may use a
Packit Service 392537
different database library to store the backup information, and the new Amanda
Packit Service 392537
may not be able to read the old Amanda database files. In this case, you will
Packit Service 392537
want to do something like the following:
Packit Service 392537
Packit Service 392537
Before the upgrade (using the old version of amadmin):
Packit Service 392537
Packit Service 392537
  	# cd /var/AMANDA/CONFIG
Packit Service 392537
  	# amadmin CONFIG export > zzz
Packit Service 392537
  	# mkdir backup
Packit Service 392537
  	# mv curinfo* backup
Packit Service 392537
  	
Packit Service 392537
Packit Service 392537
and after the upgrade (using the new version of amadmin):
Packit Service 392537
Packit Service 392537
  	# cd /var/AMANDA/CONFIG
Packit Service 392537
  	# amadmin CONFIG import < zzz
Packit Service 392537
  	
Packit Service 392537
Packit Service 392537
and a month :-) after you are happy with the new version:
Packit Service 392537
Packit Service 392537
  	# cd /var/AMANDA/CONFIG
Packit Service 392537
  	# rm -rf backup
Packit Service 392537
  	
Packit Service 392537
Packit Service 392537
After 2.4.0, the structure of the directory holding the index files was changed
Packit Service 392537
to have three levels instead of being flat. This greatly reduces the number of
Packit Service 392537
files in a given directory, which was a problem for some systems.
Packit Service 392537
Packit Service 392537
The new layout is:
Packit Service 392537
Packit Service 392537
  [indexdir]/hostname/filesystem/YYYYMMDD_L.gz
Packit Service 392537
Packit Service 392537
where hostname and filesystem are "sanitized" versions of the names from
Packit Service 392537
disklist, i.e. '/' characters are converted to '_' and so on. This new naming
Packit Service 392537
convention matches the one used for the text formatted database.
Packit Service 392537
Packit Service 392537
A script is available to convert the flat directory structure to the new
Packit Service 392537
layout:
Packit Service 392537
Packit Service 392537
  http://www.amanda.org/2.4-conv/msg00428.html