Amanda-Users

RE: Troubleshooting new Amanda client: Amanda user?

2007-06-22 15:29:22
Subject: RE: Troubleshooting new Amanda client: Amanda user?
From: "Zembower, Kevin" <kzembowe AT jhuccp DOT org>
To: <amanda-users AT amanda DOT org>
Date: Fri, 22 Jun 2007 15:26:47 -0400
Kevin, thanks so much for writing. I appreciate your suggestions and
questions.

Here's /etc/xinet.d/amanda:

[root@tobaccodev ~]# cat /etc/xinetd.d/amanda 
# default: off
# description:  The client for the Amanda backup system.\
#               This must be on for systems being backed up\
#               by Amanda.

service amanda
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = amanda
        group                   = disk
        server                  = /usr/lib/amanda/amandad 
        disable                 = no
}
[root@tobaccodev ~]#

No 'auth' seems to be indicated.

The disklist entry for the 'tobaccodev' host on the tapehost is:

backup@cn2:~$ grep tobaccodev /etc/amanda/DBackup/disklist
# tobaccodev host
# Uncomment when internal DNS set up for tobaccodev
tobaccodev      /dev/mapper/VolGroup00-LogVol00 tar     #tobaccodev: /
tobaccodev      /dev/sda1                       tar     #tobaccodev:
/boot
backup@cn2:~$

No 'auth' is indicated there, either. The 'tar' dumptype is defined on
the tapehost with:

define dumptype global {
    comment "Global definitions"
    index yes
}

define dumptype tar {
    global
    program "GNUTAR"
}

Also, something may have just changed because of changes in my
tobaccodev:~amanda/.amandahosts file, based on suggestions from Gene
Heskett. This file now reads:

[root@tobaccodev ~]# cat ~amanda/.amandahosts
centernet.jhuccp.org backup amdump amindexd amidxtaped
cn2.jhuccp.org backup amdump amindexd amidxtaped
[root@tobaccodev ~]#

This seems to now have caused the amanda log files to be written:

[root@tobaccodev ~]# ls -la /var/log/amanda/amandad.200706221*
-rw-r----- 1 amanda disk 2525 Jun 22 14:26
/var/log/amanda/amandad.20070622142641.debug
-rw-r----- 1 amanda disk 2525 Jun 22 15:02
/var/log/amanda/amandad.20070622150238.debug
[root@tobaccodev ~]# cat /var/log/amanda/amandad.20070622150238.debug
amandad: debug 1 pid 8055 ruid 0 euid 33: start at Fri Jun 22 15:02:38
2007
amandad: version 2.5.0p2
amandad: build: VERSION="Amanda-2.5.0p2"
amandad:        BUILT_DATE="Sun Jan 7 04:49:22 EST 2007"
amandad:        BUILT_MACH="Linux builder5.centos.org 2.6.9-42.0.3.ELsmp
#1 SMP Fri Oct 6 06:28:26 CDT 2006 i686 i686 i386 GNU/Linux"
amandad:        CC="gcc"
amandad:        CONFIGURE_COMMAND="'./configure'
'--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu'
'--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib' '--libexecdir=/usr/lib/amanda'
'--localstatedir=/var/lib' '--sharedstatedir=/usr/com'
'--mandir=/usr/share/man' '--infodir=/usr/share/info' '--enable-shared'
'--disable-static' '--disable-dependency-tracking'
'--with-index-server=amandahost' '--with-tape-server=amandahost'
'--with-config=DailySet1'
'--with-gnutar-listdir=/var/lib/amanda/gnutar-lists'
'--with-smbclient=/usr/bin/smbclient'
'--with-dumperdir=/usr/lib/amanda/dumperdir' '--with-amandahosts'
'--with-user=amanda' '--with-group=disk' '--with-tmpdir=/var/log/amanda'
'--with-gnutar=/bin/tar' '--with-ssh-security'"
amandad: paths: bindir="/usr/bin" sbindir="/usr/sbin"
amandad:        libexecdir="/usr/lib/amanda" mandir="/usr/share/man"
amandad:        AMANDA_TMPDIR="/var/log/amanda"
amandad:        AMANDA_DBGDIR="/var/log/amanda" CONFIG_DIR="/etc/amanda"
amandad:        DEV_PREFIX="/dev/" RDEV_PREFIX="/dev/r"
amandad:        DUMP="/sbin/dump" RESTORE="/sbin/restore" VDUMP=UNDEF
amandad:        VRESTORE=UNDEF XFSDUMP=UNDEF XFSRESTORE=UNDEF
VXDUMP=UNDEF
amandad:        VXRESTORE=UNDEF SAMBA_CLIENT="/usr/bin/smbclient"
amandad:        GNUTAR="/bin/tar" COMPRESS_PATH="/bin/gzip"
amandad:        UNCOMPRESS_PATH="/bin/gzip" LPRCMD="/usr/bin/lpr"
amandad:        MAILER="/usr/bin/Mail"
amandad:        listed_incr_dir="/var/lib/amanda/gnutar-lists"
amandad: defs:  DEFAULT_SERVER="amandahost" DEFAULT_CONFIG="DailySet1"
amandad:        DEFAULT_TAPE_SERVER="amandahost"
amandad:        DEFAULT_TAPE_DEVICE="null:" HAVE_MMAP HAVE_SYSVSHM
amandad:        LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE
amandad:        AMANDA_DEBUG_DAYS=4 BSD_SECURITY RSH_SECURITY
USE_AMANDAHOSTS
amandad:        CLIENT_LOGIN="amanda" FORCE_USERID HAVE_GZIP
amandad:        COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
amandad:        COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
[root@tobaccodev ~]#

I'm still getting an error, and this log file doesn't clearly indicate
to me the source of the problem.

Thanks, again, for your help.

-Kevin

-----Original Message-----
From: Kevin Till [mailto:kevin.till AT zmanda DOT com] 
Sent: Friday, June 22, 2007 2:17 PM
To: Zembower, Kevin
Cc: amanda-users AT amanda DOT org
Subject: Re: Troubleshooting new Amanda client: Amanda user?

Zembower, Kevin wrote:
> I'm trying to get a new Amanda client working with my existing Amanda
> system. My tapehost is a Debian/GNU 4.0 system named
> 'centernet.jhuccp.org.' It uses 'backup' as the Amanda username. My
> client is host 'tobaccodev.jhuccp.org' with CentOS 5, using 'amanda'
as
> the Amanda user. The client 'amanda' has a ~/.amandahosts file
> containing:
> 
> [root@tobaccodev ~]# cat /var/lib/amanda/.amandahosts
> centernet.jhuccp.org backup
> cn2.jhuccp.org backup
> [root@tobaccodev ~]#
> 
> I have netstat output showing amanda listening, /etc/xinet.d/amanda
with
> proper (I think) configuration, tcpdump with packets arriving for
amanda
> from centernet, but the tapehost reports:
> 
> backup@cn2:~$ amcheck -c DBackup tobaccodev
> 
> Amanda Backup Client Hosts Check
> --------------------------------
> WARNING: tobaccodev: selfcheck request failed: timeout waiting for ACK
> Client check: 1 host checked in 30.019 seconds, 1 problem found
> 
> (brought to you by Amanda 2.5.1p1)
> backup@cn2:~$
> 
> I'm running iptables on tobaccodev, but I set up a firewall rule
> according to
> http://wiki.zmanda.com/index.php/How_To:Set_Up_iptables_for_Amanda
that
> I thought should have worked:
> 
> [root@tobaccodev ~]# iptables -t filter -A INPUT -p udp -m udp -s
> centernet.jhuccp.org --dport 10080 -j ACCEPT
> [root@tobaccodev ~]# iptables -L
> Chain INPUT (policy ACCEPT)
> target     prot opt source               destination         
> RH-Firewall-1-INPUT  all  --  anywhere             anywhere

> ACCEPT     udp  --  centernet.jhuccp.org  anywhere            udp
> dpt:amanda 
> <snip>
> 
> I can't find any Amanda log files on the client tobaccodev.
> 
> Can anyone point out what I'm doing wrong? Is there any other
diagnostic
> I can run or send in to help troubleshoot this problem?
> 

what dumptype(particular what auth) is used?
Please list /etc/xinet.d/amanda file.

Additional auth (bsdtcp, bsdudp) are added to Amanda 2.5.1.
Please see
http://wiki.zmanda.com/index.php/Configuring_bsd/bsdudp/bsdtcp_authentic
ation

-- 
Thank you!
Kevin Till

Zmanda Management Console (ZMC) now available at http://zmanda.com