Installation/OS Specific Notes/Installing Amanda on Linux

From The Open Source Backup Wiki (Amanda, MySQL Backup, BackupPC)
Revision as of 12:25, 21 August 2009 by Nils (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Linux hosts intended to back up efs partitions with dump should install the dump package, as it is not installed by default on most Linux distributions. It is possible to find compiled versions of dump on most Linux sites and CD-ROMs.

Note, however, that DUMP for Linux has been quite unreliable, sometimes being unable to perform backups, producing weird error messages such as `master/slave protocol botched', and sometimes creating unrestorable dump images, especially of active filesystems. The first problem can sometimes be fixed by cleaning up outdated entries in /etc/dumpdates, but your best bet is probably GNU-tar.

Make sure the user that runs configure has permission to run the dump program, otherwise configure may misdetect an ability of dump to accept a -E (for estimates) switch.

GNU-tar 1.11.8, distributed with some Linux versions, will cause index failures (Index returned -1). Upgrading to GNU-tar 1.12 fixes this problem. This is not a Linux-specific problem, but it is quite common in this platform.

AMANDA now supports the ftape driver version 3.04d. It adjusts the blocksize automatically to 32k and supports QIC volume tables. More details con be found in the file ZFTAPE in this directory.

Some releases of dump for Linux, such as the one distributed with Debian 2.0, have modified dump so that it stores dumpdates in /var/lib. If this is your case, you should create a link to it in /etc. Suggested by David Wolfskill <[email protected]>

Yellow Dog Linux on Apple XServe

Amanda (client and server) is working fine on a 1U Apple Xserve G5 running Yellow Dog Linux 4, attached to an Exabyte VXA-2 Packetloader 1x10 1U via 800mbit Firewire (chg-zd-mtx changer script).

$ cat /etc/yellowdog-release Yellow Dog Linux release 4.0 (Orion)

$ cat /proc/cpuinfo processor : 0 cpu : PPC970FX, altivec supported clock : 2000.000000MHz revision : 3.0

timebase : 33333333 machine : RackMac3,1 motherboard : RackMac3,1 MacRISC4 Power Macintosh detected as : 336 (XServe G5) pmac flags : 00000000 pmac-generation : NewWorld

$ /usr/sbin/amadmin test version build: VERSION="Amanda-2.4.4p3"

     BUILT_DATE="Fri Dec 9 19:18:46 PST 2005"
     BUILT_MACH="Linux andromeda 2.6.10-1.ydl.1g5 #1 Mon Feb 7

10:12:08 MST 2005 ppc64 ppc64 ppc64 GNU/Linux"

     CC="gcc"
     CONFIGURE_COMMAND="'./configure'

'--host=powerpc-yellowdog-linux-gnu' '--build=powerpc-yellowdog-linux-gnu' '--target=ppc64-yellowdog-linux' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/lib64/amanda' '--localstatedir=/var/lib' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--enable-shared' '--with-index-server=localhost' '--with-gnutar-listdir=/var/lib/amanda/gnutar-lists' '--with-smbclient=/usr/bin/smbclient' '--with-amandahosts' '--with-user=amanda' '--with-group=disk' '--with-tmpdir=/var/log/amanda' '--with-gnutar=/bin/tar'" paths: bindir="/usr/bin" sbindir="/usr/sbin"

     libexecdir="/usr/lib64/amanda" mandir="/usr/share/man"
     AMANDA_TMPDIR="/var/log/amanda"
     AMANDA_DBGDIR="/var/log/amanda" CONFIG_DIR="/etc/amanda"
     DEV_PREFIX="/dev/" RDEV_PREFIX="/dev/" DUMP="/sbin/dump"
     RESTORE="/sbin/restore" VDUMP=UNDEF VRESTORE=UNDEF
     XFSDUMP=UNDEF XFSRESTORE=UNDEF VXDUMP=UNDEF VXRESTORE=UNDEF
     SAMBA_CLIENT="/usr/bin/smbclient" GNUTAR="/bin/tar"
     COMPRESS_PATH="/bin/gzip" UNCOMPRESS_PATH="/bin/gzip"
     LPRCMD="/usr/bin/lpr" MAILER="/usr/bin/Mail"
     listed_incr_dir="/var/lib/amanda/gnutar-lists"

defs: DEFAULT_SERVER="localhost" DEFAULT_CONFIG="DailySet1"

     DEFAULT_TAPE_SERVER="localhost"
     DEFAULT_TAPE_DEVICE="/dev/null" HAVE_MMAP HAVE_SYSVSHM
     LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE
     AMANDA_DEBUG_DAYS=4 BSD_SECURITY USE_AMANDAHOSTS
     CLIENT_LOGIN="amanda" FORCE_USERID HAVE_GZIP
     COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
     COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"

$ rpm -q mtx # default package from Yellow Dog distribution mtx-1.2.18-3

amanda was compiled on the machine using the CentOS 4 (free RedHat Enterprise Linux 4 clone) amanda source RPM after commenting out the two lines that refer to patch1 (amanda-2.4.4p2-pie.patch) in amanda.spec.

The tape device used was: /dev/nst0 The changer device used was: /dev/sg2 With a blocksize of 32kbytes, backups are purged to tape at a sustained average of about 3MByte/sec.

SLES10-SP2

To compile Amanda on a SLES, one has to use:

    PKG_CONFIG="/usr/bin/pkg-config" PKG_CONFIG_PATH="/opt/gnome/lib64/pkgconfig" ./configure