View Full Version : Not getting estimates

February 22nd, 2007, 05:42 AM
I've just installed amanda on a second RHEL4 box pretty much exactly the same as on another RHEL server. Except this time it set the default libexec directory as /usr/lib/amanda, no idea why as i ran up2date. However when i try to do a dump i am getting this. The estimates don't fail on the other client which is pretty much the same. I checked all perms on the client btw.

DISK planner host.domain.com /home
START planner date 20070222
INFO planner Adding new disk host.domain.com:/home.
START driver date 20070222
FAIL planner host.domain.com /home 20070222 0 [disk /home, all estimate failed]
FINISH planner date 20070222
WARNING driver WARNING: got empty schedule from planner
STATS driver startup time 0.074
START taper datestamp 20070222 label Daily-Set1-14 tape 0
INFO taper tape Daily-Set1-14 kb 0 fm 0 [OK]
FINISH driver date 20070222 time 0.109

so why did my estimate fail


host.domain.com /home comp-root-tar

## amanda.conf

org "DailySet1" # your organization name for reports
mailto "" # 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
netusage 600 Kbps # maximum net bandwidth for Amanda, in KB per sec

dumpcycle 7 # the number of days in the normal dump cycle
runspercycle 5 # the number of amdump runs in dumpcycle days

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 1000 # number of seconds per filesystem for estimates.

#runtapes 1 # number of tapes to be used in a single run of amdump

tpchanger "chg-multi"
changerfile "chg-multi.conf" # name of the special configuration file
tapecycle 14 # rotate every 20 days

tapetype USB-DISK # what kind of tape it is (see tapetypes below)

holdingdisk hd1 {
comment "main holding disk"
directory "/var/tmp/amandatmp" # where the holding disk is
use 50 Gb # how much space can we use on it

define tapetype USB-DISK {
comment "Dump onto hard disk"
length 50 Gb

infofile "/var/lib/amanda/DailySet1/curinfo" # database filename
logdir "/var/lib/amanda/DailySet1" # log directory
indexdir "/var/lib/amanda/DailySet1/index" # index directory
tapelist "/var/lib/amanda/DailySet1/tapelist" # list of used tapes

define dumptype global {
comment "Global definitions"
# This is quite useful for setting global parameters, so you don't have
# to type them everywhere. All dumptype definitions in this sample file
# do include these definitions, either directly or indirectly.
# There's nothing special about the name `global'; if you create any
# dumptype that does not contain the word `global' or the name of any
# other dumptype that contains it, these definitions won't apply.
# Note that these definitions may be overridden in other
# dumptypes, if the redefinitions appear *after* the `global'
# dumptype name.
# You may want to use this for globally enabling or disabling
# indexing, recording, etc. Some examples:
# index yes
# record no

define dumptype always-full {
comment "Full dump of this filesystem always"
compress none
priority high
dumpcycle 0

define dumptype root-tar {
program "GNUTAR"
comment "root partitions dumped with tar"
compress none
#exclude list "/usr/local/lib/amanda/exclude.gtar"
priority low

define dumptype user-tar {
comment "user partitions dumped with tar"
priority medium

define dumptype high-tar {
comment "partitions dumped with tar"
priority high

define dumptype comp-root-tar {
comment "Root partitions with compression"
exclude list "exclude.gtar"
compress client fast

define dumptype nocomp-user-tar-full {
program "GNUTAR"
compress none
comment "slow high priority user partition no compression"
exclude list "exclude.gtar"
priority high
#estimate calcsize
dumpcycle 0

define dumptype comp-user-tar {
compress client fast

February 22nd, 2007, 10:38 AM
Did you run amcheck (http://wiki.zmanda.com/index.php/Amcheck)?

Please look for information on the client /tmp/amanda directory. Look for sendsize
and/or amandad logs.


February 23rd, 2007, 12:31 AM
I looked at the runtar and sendsize logs and found they were complaining about being run by the user 'amanda'. In the linux rpm the default user is amandabackup. So i got th source code via up2date --get-source amanda-client and went in and configured the source to use the proper user, --with-user=amandabackup.
I also was able to go into config.h and set all the directories for logs and stuff to nicer paths that /usr/local/amanda/var/ etc etc
Once I'd fixed the suer i got the proper estimates.
Now I have another problem.

I am using a 500GB external usb disk for storage. I don't have a tape drive. So i used the chg-multi and made a lot of virtual tapes. howerver I'm now getting short writes even though I've specified each virtual-tape as being 50Gb