Hi group

I get the feeling this is a no brainer, but I can't find mention of it on
the web or elsewhere.

When running amdump, su'ing the amanda user as root, or even logging in as
the amanda user directly, file ownership is changing to root.disk (amanda
user is amanda.disk) on /etc/amanda/daily/tapelist.  This scuppers amanda
the next time it is run.

Also, these two, which if I've read correctly, amanda creates as it is run,
are not accessible as mentioned in the log when running amcheck.

file /etc/amanda/daily/logs/log 
directory /home/amanda/dumps/<date>.

I ran configure with these options:

./configure \
        --with-user=amanda \
        --with-group=disk \
        --with-configdir=/etc/amanda \
        --with-gnutar=/bin/tar \
        --with-tape-device=/dev/nst0 \
        --with-amandahosts \
        --with-portrange=850,851 \
        --with-udpportrange=860,861

As an aside, I can see that dumper is using ports 860 and 861 as configured
but also 731 and 732.  Why?  Is this to do with the inparalell= value in
amanda.conf?  This is currently set to 4 - this looks like an Ooops!  This
machine is firewalled, but I don't backup anything other than the local
/home, so will this affect me?

Any help greatly appreciated.

Tim Paxton
Information Associate
EDS UK

Logfile and amanda.conf follow:


log file amdump.1 
=================

amdump: start at Wed Feb 20 04:00:01 GMT 2002
driver: pid 4501 executable /usr/local/libexec/driver version 2.4.2p2
driver: send-cmd time 0.006 to taper: START-TAPER 20020220
planner: pid 4500 executable /usr/local/libexec/planner version 2.4.2p2
planner: build: VERSION="Amanda-2.4.2p2"
planner:        BUILT_DATE="Fri Dec 7 15:06:58 GMT 2001"
planner:        BUILT_MACH="Linux lomand.loislan.eds.com 2.2.17-21mdksecure
#1 SMP Thu Oct 5 12:52:38 CEST 2000 i686 unknown"
planner:        CC="gcc"
planner: paths: bindir="/usr/local/bin" sbindir="/usr/local/sbin"
planner:        libexecdir="/usr/local/libexec" mandir="/usr/local/man"
planner:        AMANDA_TMPDIR="/tmp/amanda" AMANDA_DBGDIR="/tmp/amanda"
planner:        CONFIG_DIR="/etc/amanda" DEV_PREFIX="/dev/"
planner:        RDEV_PREFIX="/dev/" DUMP="/sbin/dump"
planner:        RESTORE="/sbin/restore" SAMBA_CLIENT="/usr/bin/smbclient"
planner:        GNUTAR="/bin/tar" COMPRESS_PATH="/bin/gzip"
planner:        UNCOMPRESS_PATH="/bin/gzip" MAILER="/usr/bin/Mail"
planner:        listed_incr_dir="/usr/local/var/amanda/gnutar-lists"
planner: defs:  DEFAULT_SERVER="lomand.loislan.eds.com"
planner:        DEFAULT_CONFIG="DailySet1"
planner:        DEFAULT_TAPE_SERVER="lomand.loislan.eds.com"
planner:        DEFAULT_TAPE_DEVICE="/dev/nst0" HAVE_MMAP HAVE_SYSVSHM
planner:        LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE
planner:        AMANDA_DEBUG_DAYS=4 BSD_SECURITY USE_AMANDAHOSTS
planner:        CLIENT_LOGIN="amanda" FORCE_USERID HAVE_GZIP
planner:        COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
planner:        COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
planner: dgram_bind: socket bound to 0.0.0.0.861
READING CONF FILES...
driver: started dumper0 pid 4504
driver: started dumper1 pid 4505
driver: started dumper2 pid 4506
driver: started dumper3 pid 4507
planner: could not open log file /etc/amanda/daily/logs/log: Permission
denied
could not open log file /etc/amanda/daily/logs/log: Permission denied
planner: pid 4500 finish time Wed Feb 20 04:00:01 2002
driver: adding holding disk 0 dir /home/amanda/dumps size 296960
reserving 89088 out of 296960 for degraded-mode dumps
driver: start time 0.077 inparallel 4 bandwidth 2000 diskspace 296960 dir
OBSOLETE datestamp 20020220 driver: drain-ends tapeq LFFO big-dumpers 1
taper: pid 4503 executable taper version 2.4.2p2
dumper: dgram_bind: socket bound to 0.0.0.0.861
dumper: pid 4504 executable dumper version 2.4.2p2, using port 861
dumper: dgram_bind: socket bound to 0.0.0.0.860
dumper: pid 4505 executable dumper version 2.4.2p2, using port 860
dumper: dgram_bind: socket bound to 0.0.0.0.731
dumper: pid 4506 executable dumper version 2.4.2p2, using port 731
dumper: dgram_bind: socket bound to 0.0.0.0.732
dumper: pid 4507 executable dumper version 2.4.2p2, using port 732
taper: read label `Lomond-Daily-Wed' date `20020208'
taper: wrote label `Lomond-Daily-Wed' date `20020220'
driver: result time 4.569 from taper: TAPER-OK
driver: state time 4.569 free kps: 2000 space: 296960 taper: idle
idle-dumpers: 4 qlen tapeq: 0 runq: 0 roomq: 0 wakeup: 86400 driver-idle:
not-idle
driver: interface-state time 4.569 if : free 600 if ETH0: free 400 if LOCAL:
free 1000
driver: hdisk-state time 4.569 hdisk 0: free 296960 dumpers 0
driver: QUITTING time 4.569 telling children to quit
driver: send-cmd time 4.569 to dumper0: QUIT
driver: send-cmd time 4.569 to dumper1: QUIT
driver: send-cmd time 4.569 to dumper2: QUIT
driver: send-cmd time 4.569 to dumper3: QUIT
driver: send-cmd time 4.569 to taper: QUIT
taper: DONE [idle wait: 0.002 secs]
taper: writing end marker. [Lomond-Daily-Wed OK kb 0 fm 0]
driver: FINISHED time 8.630
amdump: end at Wed Feb 20 04:00:10 GMT 2002
===========================================

Amanda.conf
===========
#
# amanda.conf - Amanda configuration file.
#
# On lomomd, this file lives in /etc/amanda/daily/amanda.conf
#

org "Lomond Backup" # the text in the subject line

#
#
mailto "[EMAIL PROTECTED] lzlb9f"      # space separated list of operators
at your site
dumpuser "amanda"       # the user to run dumps under
inparallel 4            # maximum dumpers that will run in parallel (max 63)
                        # this maximum can be increased at compile-time,
                        # modifying MAX_DUMPERS in server-src/driverio.h
netusage  600 Kbps      # maximum net bandwidth for Amanda, in KB per sec

#dumpcycle 1 weeks      # the number of days in the normal dump cycle
#runspercycle 5         # the number of amdump runs in dumpcycle days
                        # (4 weeks * 5 amdump runs per week -- just
weekdays)
#tapecycle 5 tapes      # the number of tapes in rotation
                        # 4 weeks (dumpcycle) times 5 tapes per week (just
                        # the weekdays) plus a few to handle errors that
                        # need amflush and so we do not overwrite the full
                        # backups performed at the beginning of the previous
                        # cycle

#This makes every tape a full, non-incremental backup
dumpcycle 0
#We have 5 tapes
runspercycle 5
tapecycle 5


### ### ###
# WARNING: don't use `inf' for tapecycle, it's broken!
### ### ###

bumpsize 20 Mb          # minimum savings (threshold) to bump level 1 -> 2
bumpdays 1              # minimum days at each level
bumpmult 4              # threshold = bumpsize * bumpmult^(level-1)

etimeout 300            # number of seconds per filesystem for estimates.
#etimeout -600          # total number of seconds for estimates.
# a positive number will be multiplied by the number of filesystems on
# each host; a negative number will be taken as an absolute total time-out.
# The default is 5 minutes per filesystem.

dtimeout 1800           # number of idle seconds before a dump is aborted.

ctimeout 30             # maximum number of seconds that amcheck waits
                        # for each client host
 
tapebufs 20
runtapes 1              # number of tapes to be used in a single run of
amdump
# tpchanger "chg-manual"        # the tape-changer glue script
tapedev "/dev/nst0"     # the no-rewind tape device to be used
# rawtapedev "/dev/null"        # the raw device to be used (ftape only)
# changerfile "/usr/adm/amanda/DailySet1/changer"
# changerfile "/usr/adm/amanda/DailySet1/changer-status"
# changerfile "/usr/local/etc/amanda/DailySet1/changer.conf"
# changerdev "/dev/null"

tapetype DLT4000-IV             # what kind of tape it is (see tapetypes
below)
labelstr "^Lomond-Daily-[Mon Tue Wed Thr Fri]*$"        # label constraint
regex: all tapes must match

holdingdisk hd1 {
    comment "main holding disk"
    directory "/home/amanda/dumps"      # where the holding disk is
    use 290 Mb          # how much space can we use on it
                        # a non-positive value means:
                        #        use all space but that value
    chunksize 1Gb       # size of chunk if you want big dump to be
                        # dumped on multiple files on holding disks
                        #  N Kb/Mb/Gb split images in chunks of size N
                        #             The maximum value should be
                        #             (MAX_FILE_SIZE - 1Mb)
                        #  0          same as INT_MAX bytes
    }

reserve 30 # percent
# This means save at least 30% of the holding disk space for degraded
# mode backups.  

infofile "/etc/amanda/daily/curinfo"    # database DIRECTORY
logdir   "/etc/amanda/daily/logs"               # log directory
indexdir "/etc/amanda/daily/index"      # index directory
tapelist "/etc/amanda/daily/tapelist"   # list of used tapes

define tapetype DLT4000-IV { 
    comment "DLT4000 writing DLT4000 format with DLTtape IV uncompressed"
    length 20000 mbytes
    filemark 8 kbytes
    speed 1500 kbytes
} 

# dumptypes
#
<Snip. Standard amanda.conf below this point>

Reply via email to