Wed Jun 8 16:06:02 +07 2022

Some things to install Amanda on FreeBSD

Recently I ran into a couple of problems when installing or upgrading Amanda on FreeBSD. The problems may have been present earlier, but I did not saw them then.

Modify /usr/local/etc/pkgtools.conf

Add the following in the file /usr/local/etc/pkgtools.conf so that Amanda is being built with the proper configuration:

        'misc/amanda-server' => 'AMANDA_USER=amanda AMANDA_GROUP=amanda AMANDA_CONFIG=normal AMANDA_WITHOUTIPV6=yes',
        'misc/amanda-client' => 'AMANDA_USER=amanda AMANDA_GROUP=amanda AMANDA_CONFIG=normal AMANDA_GNUTAR_LISTDIR=/usr/local/var/amanda/gnutar-lists AMANDA_WITHOUTIPV6=yes'

On a client machine, only the amanda-client part is needed.

Most of the configuration choices come from very old installation (pre-FreeBSD) but this is how it works for CSIM.

Modify the location of amanda-security.conf

On the server, the security file for Amanda client is located in /usr/local/etc/amanda-client/amanda-security.conf. If kept in the default place, it will conflict with the ownership and mode of the default directory.

This change can only be made by modifying the Makefile file in /usr/ports/misc/amanda-server. Note that even if that configuration file only pertains to Amanda client, the makefile is located in Amanda server.

Around the 33rd line of the makefile, change the value of --with-security-file to reflect:

Always build or upgrade the server after building the client

Building Amanda client will change the contents of the file /usr/local/lib/perl5/site_perl/Amanda/ to contain the line:

$AMANDA_COMPONENTS = " client amrecover ndmp";

Only after building or upgrading the server will the line be reverted to the correct:

$AMANDA_COMPONENTS = " server restore client amrecover ndmp";

Failing to have the proper line will result of the following error message in Amanda summary email:

taper: FATAL Can't locate object method "new" via package "Amanda::Xfer::Dest::Taper::Splitter" (perhaps you forgot to load
"Amanda::Xfer::Dest::Taper::Splitter"?) at /usr/local/lib/perl5/site_perl/Amanda/Taper/ line 764.

Posted by Olivier | Permanent link | File under: administration, backup