Re: Potential Bug

2010-11-05 Thread Jean-Louis Martineau

Rhys Rhaven wrote:
Using amanda 3.2.0 on everything. I have 2 hosts and a server 
currently. 1 host and the server are ubuntu 10.04 and the other host 
(that I'm having issues with) is 8.04.


I can run amdump for each host individually with no problem. Running 
amdump for the config (daily) will fail with the following. Talking to 
djmitche in IRC, told me to post to the list. My tapes are 200GB, so 
they shouldn't be filling up. I'm using vtapes and no holding disks.


FAILURE DUMP SUMMARY:
  asterisk-it0.mydomain.com / RESULTS MISSING
  asterisk-it0.mydomain.com / lev 1  FAILED [can't dump in degraded mode]

log:
START driver date 2010110501

amdump.1
amdump: starttime 20101105115136
The log and amdump.1 files are not for the same run, can you send both 
files for the same run.


Jean-Louis


Re: Potential Bug

2010-11-05 Thread Rhys Rhaven

Sorry bout that.

amdump: start at Fri Nov  5 00:00:01 CDT 2010
amdump: datestamp 20101105
amdump: starttime 2010110501
amdump: starttime-locale-independent 2010-11-05 00:00:01 CDT
driver: pid 3102 executable /usr/libexec/amanda/driver version 3.2.0
planner: pid 3101 executable /usr/libexec/amanda/planner version 3.2.0
planner: build: VERSION=Amanda-3.2.0
planner:BUILT_DATE=Mon Oct 18 09:20:30 PDT 2010 BUILT_MACH=
planner:BUILT_REV=3545 BUILT_BRANCH=3_2_0
planner:CC=i486-linux-gnu-gcc
planner: paths: bindir=/usr/bin sbindir=/usr/sbin
planner:libexecdir=/usr/libexec
planner:amlibexecdir=/usr/libexec/amanda mandir=/usr/share/man
planner:AMANDA_TMPDIR=/tmp/amanda
planner:AMANDA_DBGDIR=/var/log/amanda CONFIG_DIR=/etc/amanda
planner:DEV_PREFIX=/dev/ RDEV_PREFIX=/dev/r
planner:DUMP=/sbin/dump RESTORE=/sbin/restore VDUMP=UNDEF
planner:VRESTORE=UNDEF XFSDUMP=/sbin/xfsdump
planner:XFSRESTORE=/sbin/xfsrestore VXDUMP=UNDEF VXRESTORE=UNDEF
planner:SAMBA_CLIENT=/usr/bin/smbclient GNUTAR=/bin/tar
planner:COMPRESS_PATH=/bin/gzip UNCOMPRESS_PATH=/bin/gzip
planner: LPRCMD=UNDEF  MAILER=UNDEF
planner:listed_incr_dir=/var/lib/amanda/gnutar-lists
planner: defs:  DEFAULT_SERVER=localhost DEFAULT_CONFIG=DailySet1
planner:DEFAULT_TAPE_SERVER=localhost DEFAULT_TAPE_DEVICE=
planner:NEED_STRSTR AMFLOCK_POSIX AMFLOCK_FLOCK AMFLOCK_LOCKF
planner:AMFLOCK_LNLOCK SETPGRP_VOID ASSERTIONS AMANDA_DEBUG_DAYS=4
planner:BSD_SECURITY USE_AMANDAHOSTS CLIENT_LOGIN=amandabackup
planner:CHECK_USERID HAVE_GZIP COMPRESS_SUFFIX=.gz
planner:COMPRESS_FAST_OPT=--fast COMPRESS_BEST_OPT=--best
planner:UNCOMPRESS_OPT=-dc
READING CONF INFO...
planner: timestamp 2010110501
driver: tape size 20480
reserving 0 out of 0 for degraded-mode dumps
planner: tape_length is set from tape length (20480 KB) * runtapes 
(1) == 20480 KB

planner: time 0.000: startup took 0.000 secs

SENDING FLUSHES...
ENDFLUSH

SETTING UP FOR ESTIMATES...
planner: time 0.000: setting up estimates for asterisk-it0.mydomain.com:/
setup_estimate: asterisk-it0.mydomain.com:/: command 0, options: none
last_level 0 next_level0 6 level_days 0getting estimates 0 (-3) 1 
(-3) -1 (-3)

planner: time 0.001: setting up estimates for git.mydomain.com:/
driver: started dumper0 pid 3104
driver: send-cmd time 0.003 to dumper0: START 2010110501
driver: started dumper1 pid 3105
driver: send-cmd time 0.003 to dumper1: START 2010110501
driver: started dumper2 pid 3106
driver: send-cmd time 0.004 to dumper2: START 2010110501
driver: started dumper3 pid 3107
driver: send-cmd time 0.004 to dumper3: START 2010110501
driver: send-cmd time 0.004 to taper: START-TAPER worker0 2010110501
driver: start time 0.004 inparallel 4 bandwidth 2048000 diskspace 0  dir 
OBSOLETE datestamp 2010110501 driver: drain-ends tapeq FIRST 
big-dumpers sssS
driver: state time 0.004 free kps: 2048000 space: 0 taper: idle 
idle-dumpers: 4 qlen tapeq: 0 runq: 0 roomq: 0 wakeup: 0 driver-idle: 
not-idle

driver: interface-state time 0.004 if default: free 2048000
driver: hdisk-state time 0.004
setup_estimate: git.mydomain.com:/: command 0, options: none
last_level 0 next_level0 6 level_days 0getting estimates 0 (-3) 1 
(-3) -1 (-3)

planner: time 0.006: setting up estimates took 0.005 secs

GETTING ESTIMATES...
dumper: pid 3105 executable dumper1 version 3.2.0
dumper: pid 3104 executable dumper0 version 3.2.0
dumper: pid 3106 executable dumper2 version 3.2.0
dumper: pid 3107 executable dumper3 version 3.2.0
driver: state time 0.326 free kps: 2048000 space: 0 taper: idle 
idle-dumpers: 4 qlen tapeq: 0 runq: 0 roomq: 0 wakeup: 0 driver-idle: 
not-idle

driver: interface-state time 0.326 if default: free 2048000
driver: hdisk-state time 0.326
driver: result time 0.326 from taper: TAPER-OK worker0
planner: time 6.213: got partial result for host 
asterisk-it0.mydomain.com disk /: 0 - -3K, 1 - -3K, -1 - -3K
planner: time 8.885: got partial result for host git.mydomain.com disk 
/: 0 - -3K, 1 - -3K, -1 - -3K
planner: time 12.423: got partial result for host git.mydomain.com disk 
/: 0 - 1042740K, 1 - -3K, -1 - -3K
planner: time 13.016: got partial result for host git.mydomain.com disk 
/: 0 - 1042740K, 1 - 15570K, -1 - -3K
planner: time 13.016: got result for host git.mydomain.com disk /: 0 - 
1042740K, 1 - 15570K, -1 - -3K
planner: time 199.035: got partial result for host 
asterisk-it0.mydomain.com disk /: 0 - 2492830K, 1 - -3K, -1 - -3K
planner: time 199.578: got partial result for host 
asterisk-it0.mydomain.com disk /: 0 - 2492830K, 1 - 8830K, -1 - -3K
planner: time 199.579: got result for host asterisk-it0.mydomain.com 
disk /: 0 - 2492830K, 1 - 8830K, -1 - -3K

planner: time 199.579: getting estimates took 199.573 secs
FAILED QUEUE: empty
DONE QUEUE:
  0: git.mydomain.com /
  1: asterisk-it0.mydomain.com 

Re: Potential Bug

2010-11-05 Thread Jean-Louis Martineau

Hi Rhys,

It's a bug, can you try the attached patch?

Jean-Louis

Rhys Rhaven wrote:
Using amanda 3.2.0 on everything. I have 2 hosts and a server 
currently. 1 host and the server are ubuntu 10.04 and the other host 
(that I'm having issues with) is 8.04.


I can run amdump for each host individually with no problem. Running 
amdump for the config (daily) will fail with the following. Talking to 
djmitche in IRC, told me to post to the list. My tapes are 200GB, so 
they shouldn't be filling up. I'm using vtapes and no holding disks.


FAILURE DUMP SUMMARY:
  asterisk-it0.mydomain.com / RESULTS MISSING
  asterisk-it0.mydomain.com / lev 1  FAILED [can't dump in degraded mode]
diff --git a/client-src/sendbackup-gnutar.c b/client-src/sendbackup-gnutar.c
index 3b718ae..5e423c7 100644
--- a/client-src/sendbackup-gnutar.c
+++ b/client-src/sendbackup-gnutar.c
@@ -575,6 +575,7 @@ start_backup(
 	g_ptr_array_add(argv_ptr, stralloc(.));
 	}
 	g_ptr_array_add(argv_ptr, NULL);
+sleep(16);
 	dumppid = pipespawnv(cmd, STDIN_PIPE, 0,
 			 dumpin, dumpout, mesgf,
 			 (char **)argv_ptr-pdata);
diff --git a/client-src/sendbackup.c b/client-src/sendbackup.c
index dacb961..80bc5e6 100644
--- a/client-src/sendbackup.c
+++ b/client-src/sendbackup.c
@@ -652,6 +652,7 @@ main(
 	} else {
 		safe_fd(3, 1);
 	}
+sleep(16);
 	execve(cmd, (char **)argv_ptr-pdata, safe_env());
 	exit(1);
 	break;
diff --git a/server-src/driver.c b/server-src/driver.c
index 9a0bb27..8bf5119 100644
--- a/server-src/driver.c
+++ b/server-src/driver.c
@@ -1044,6 +1044,7 @@ allow_dump_dle(
 		enqueue_disk(directq, diskp);
 		diskp-to_holdingdisk = HOLD_NEVER;
 	}
+	if (empty(*rq)) force_flush = 1;
 	}
 } else if (client_constrained(diskp)) {
 	free_assignedhd(holdp);
@@ -1326,6 +1327,7 @@ start_some_dumps(
 		dumper_cmd(dumper, PORT_DUMP, diskp, NULL);
 	}
 	diskp-host-start_t = now + 15;
+	if (empty(*rq)) force_flush = 1;
 
 	if (result_argv)
 		g_strfreev(result_argv);
@@ -3137,6 +3139,7 @@ read_schedule(
 	log_add(L_WARNING, _(WARNING: got empty schedule from planner));
 if(need_degraded==1) start_degraded_mode(runq);
 schedule_done = 1;
+if (empty(runq)) force_flush = 1;
 start_some_dumps(runq);
 startaflush();
 }