Amanda-Users

Holding Space Size and autoflush

2005-04-26 09:59:50
Subject: Holding Space Size and autoflush
From: Kuas <ku4s AT users.sourceforge DOT net>
To: amanda-users AT amanda DOT org
Date: Tue, 26 Apr 2005 09:49:12 -0400
I didn't have autoflush turn on before (in amanda.conf), I thought
amanda will flush the content of the holding disk to the tape(=slot,
since I am using file-driver). Is this right? Then I found a problem
with amdump, in the log said that it does not have holding disk anymore.
How big is the holding disk supposed to be? Equal to the size of each
tape? I left it default: use 290 Mb and chunksize 1GB, while my tape
size is 4GB for now. This is the log of amdump:

---------- start amdump log
START driver date 20050425
ERROR taper no-tape [new tape not found in rack]
INFO planner Full dump of <host>:<disk> promoted from 2 days ahead.
FINISH planner date 20050425
STATS driver startup time 6.609
SUCCESS dumper <host:/disk> 20050425 1 [sec 0.108 kb 0 kps 0.0 orig-kb 10]
SUCCESS dumper <host:/disk> 20050425 1 [sec 0.084 kb 11 kps 130.9
orig-kb 70]
SUCCESS dumper <host:/disk> 20050425 2 [sec 2.108 kb 12715 kps 6030.9
orig-kb 16100]
SUCCESS dumper <host:/disk> 20050425 1 [sec 0.802 kb 2312 kps 2881.1
orig-kb 5610]
SUCCESS dumper <host:/disk> 20050425 2 [sec 9.764 kb 12383 kps 1268.2
orig-kb 30840]
FAIL driver <host:/disk> 20050425 1 [no more holding disk space]
FINISH driver date 20050425 time 108.043
------------ endlog


I tried to do amflush manually, the holding disk apparently hold more
than 1 daily backup, it has 5 days worth of backup. Why it didn't flush
them? To summarize the log (full log below), I have the following error
that worries me:

driver: result time 0.245 from taper: TAPE-ERROR [new tape not found in
rack]
dump of driver schedule before start degraded mode:
--------
--------
dump of driver schedule after start degraded mode:
--------
--------

After running the amflush, out of 5 days of backup, only one day is
written. This is the full log of amflush:

------------ start amflush log
Scanning /tmp/amanda-holding...
  20050423: found Amanda directory.
  20050424: found Amanda directory.
  20050425: found Amanda directory.
  20050425173143: found Amanda directory.
  20050426040000: found Amanda directory.

Multiple Amanda directories, please pick one by letter:
  A. 20050423
  B. 20050424
  C. 20050425
  D. 20050425173143
  E. 20050426040000
Select directories to flush [A..E]: [ALL]

Today is: 20050426
Flushing dumps in 20050423, 20050424, 20050425, 20050425173143,
20050426040000 using tape changer "chg-disk".
Expecting a new tape.  (The last dumps were to tape daily1)
Are you sure you want to do this [yN]? y
amflush: start at Tue Apr 26 09:17:12 EDT 2005
amflush: datestamp 20050426
driver: pid 611 executable driver version 2.4.5
driver: tape size 4194304
FLUSH <host:/disk> 20050423 1
/tmp/amanda-holding/20050423/<host>_var_lib_amanda_test-<host>.1
FLUSH ..
FLUSH ..
FLUSH ..
FLUSH ..
ENDFLUSH
driver: send-cmd time 0.005 to taper: START-TAPER 20050426
driver: adding holding disk 0 dir /tmp/amanda-holding size 296960
chunksize 1048576
reserving 296960 out of 296960 for degraded-mode dumps
driver: flush size 378105
driver: start time 0.008 inparallel 4 bandwidth 2000 diskspace 296960
dir OBSOLETE datestamp 20050426 driver:
drain-ends tapeq FIRST big-dumpers sssS
taper: pid 612 executable taper version 2.4.5
taper: page size is 4096
taper: buffer size is 32768
taper: buffer[00] at 0xbf479000
taper: buffer[01] at 0xbf481000
taper: buffer[02] at 0xbf489000
taper: buffer[03] at 0xbf491000
taper: buffer[04] at 0xbf499000
taper: buffer[05] at 0xbf4a1000
taper: buffer[06] at 0xbf4a9000
taper: buffer[07] at 0xbf4b1000
taper: buffer[08] at 0xbf4b9000
taper: buffer[09] at 0xbf4c1000
taper: buffer[10] at 0xbf4c9000
taper: buffer[11] at 0xbf4d1000
taper: buffer[12] at 0xbf4d9000
taper: buffer[13] at 0xbf4e1000
taper: buffer[14] at 0xbf4e9000
taper: buffer[15] at 0xbf4f1000
taper: buffer[16] at 0xbf4f9000
taper: buffer[17] at 0xbf501000
taper: buffer[18] at 0xbf509000
taper: buffer[19] at 0xbf511000
taper: buffer structures at 0xbf519000 for 240 bytes
changer: opening pipe to: /opt/utils/amanda-2.4.5/libexec/chg-disk -info
changer: got exit: 0 str: 3 9 1
changer: opening pipe to: /opt/utils/amanda-2.4.5/libexec/chg-disk -slot
current
changer: got exit: 0 str: 3 file:/amandatapes/daily
taper: slot 3: date 20050422 label daily3 (active tape)
changer: opening pipe to: /opt/utils/amanda-2.4.5/libexec/chg-disk -slot
next
changer: got exit: 0 str: 4 file:/amandatapes/daily
taper: slot 4: date 20050422 label daily1 (active tape)
changer: opening pipe to: /opt/utils/amanda-2.4.5/libexec/chg-disk -slot
next
changer: got exit: 0 str: 5 file:/amandatapes/daily
taper: slot 5: date 20050422 label daily5 (active tape)
changer: opening pipe to: /opt/utils/amanda-2.4.5/libexec/chg-disk -slot
next
changer: got exit: 0 str: 6 file:/amandatapes/daily
taper: slot 6: date 20050422 label daily6 (active tape)
changer: opening pipe to: /opt/utils/amanda-2.4.5/libexec/chg-disk -slot
next
changer: got exit: 0 str: 8 file:/amandatapes/daily
taper: slot 8: date 20050422 label daily8 (active tape)
changer: opening pipe to: /opt/utils/amanda-2.4.5/libexec/chg-disk -slot
next
changer: got exit: 0 str: 9 file:/amandatapes/daily
taper: slot 9: date 20050422 label daily9 (active tape)
changer: opening pipe to: /opt/utils/amanda-2.4.5/libexec/chg-disk -slot
next
changer: got exit: 0 str: 1 file:/amandatapes/daily
taper: slot 1: date 20050425 label daily1 (active tape)
changer: opening pipe to: /opt/utils/amanda-2.4.5/libexec/chg-disk -slot
next
changer: got exit: 0 str: 2 file:/amandatapes/daily
taper: slot 2: date 20050422 label daily2 (active tape)
driver: result time 0.245 from taper: TAPE-ERROR [new tape not found in
rack]
dump of driver schedule before start degraded mode:
--------
--------
dump of driver schedule after start degraded mode:
--------
--------
driver: state time 0.245 free kps: 2000 space: 296960 taper: DOWN
idle-dumpers: 4 qlen tapeq: 29 runq: 0 roomq
: 0 wakeup: 86400 driver-idle: not-idle
driver: interface-state time 0.245 if : free 600 if LE0: free 400 if
LOCAL: free 1000
driver: hdisk-state time 0.245 hdisk 0: free 296960 dumpers 0
driver: state time 0.245 free kps: 2000 space: 296960 taper: DOWN
idle-dumpers: 4 qlen tapeq: 29 runq: 0 roomq
: 0 wakeup: 86400 driver-idle: not-idle
driver: interface-state time 0.245 if : free 600 if LE0: free 400 if
LOCAL: free 1000
driver: hdisk-state time 0.245 hdisk 0: free 296960 dumpers 0
driver: QUITTING time 0.245 telling children to quit
driver: send-cmd time 0.245 to taper: QUIT
taper: DONE [idle wait: 0.000 secs]
driver: FINISHED time 0.246
/usr/sbin/sendmail: No such file or directory
[root@squawfc1 DailySet1]#
taper: buffer[09] at 0xbf4c1000
taper: buffer[10] at 0xbf4c9000
taper: buffer[11] at 0xbf4d1000
taper: buffer[12] at 0xbf4d9000
taper: buffer[13] at 0xbf4e1000
taper: buffer[14] at 0xbf4e9000
taper: buffer[15] at 0xbf4f1000
taper: buffer[16] at 0xbf4f9000
taper: buffer[17] at 0xbf501000
taper: buffer[18] at 0xbf509000
taper: buffer[19] at 0xbf511000
taper: buffer structures at 0xbf519000 for 240 bytes
changer: opening pipe to: /opt/utils/amanda-2.4.5/libexec/chg-disk -info
changer: got exit: 0 str: 3 9 1
changer: opening pipe to: /opt/utils/amanda-2.4.5/libexec/chg-disk -slot
current
changer: got exit: 0 str: 3 file:/amandatapes/daily
taper: slot 3: date 20050422 label daily3 (active tape)
changer: opening pipe to: /opt/utils/amanda-2.4.5/libexec/chg-disk -slot
next
changer: got exit: 0 str: 4 file:/amandatapes/daily
taper: slot 4: date 20050422 label daily1 (active tape)
changer: opening pipe to: /opt/utils/amanda-2.4.5/libexec/chg-disk -slot
next
changer: got exit: 0 str: 5 file:/amandatapes/daily
taper: slot 5: date 20050422 label daily5 (active tape)
changer: opening pipe to: /opt/utils/amanda-2.4.5/libexec/chg-disk -slot
next
changer: got exit: 0 str: 6 file:/amandatapes/daily
taper: slot 6: date 20050422 label daily6 (active tape)
changer: opening pipe to: /opt/utils/amanda-2.4.5/libexec/chg-disk -slot
next
changer: got exit: 0 str: 7 file:/amandatapes/daily
taper: slot 7: date 20050422 label daily7 (active tape)
changer: opening pipe to: /opt/utils/amanda-2.4.5/libexec/chg-disk -slot
next
changer: got exit: 0 str: 8 file:/amandatapes/daily
taper: slot 8: date 20050422 label daily8 (active tape)
changer: opening pipe to: /opt/utils/amanda-2.4.5/libexec/chg-disk -slot
next
changer: got exit: 0 str: 9 file:/amandatapes/daily
taper: slot 9: date 20050422 label daily9 (active tape)
changer: opening pipe to: /opt/utils/amanda-2.4.5/libexec/chg-disk -slot
next
changer: got exit: 0 str: 1 file:/amandatapes/daily
taper: slot 1: date 20050425 label daily1 (active tape)
changer: opening pipe to: /opt/utils/amanda-2.4.5/libexec/chg-disk -slot
next
changer: got exit: 0 str: 2 file:/amandatapes/daily
taper: slot 2: date 20050422 label daily2 (active tape)
driver: result time 0.245 from taper: TAPE-ERROR [new tape not found in
rack]
dump of driver schedule before start degraded mode:
--------
--------
dump of driver schedule after start degraded mode:
--------
--------
driver: state time 0.245 free kps: 2000 space: 296960 taper: DOWN
idle-dumpers: 4 qlen tapeq: 29 runq: 0 roomq
: 0 wakeup: 86400 driver-idle: not-idle
driver: interface-state time 0.245 if : free 600 if LE0: free 400 if
LOCAL: free 1000
driver: hdisk-state time 0.245 hdisk 0: free 296960 dumpers 0
driver: state time 0.245 free kps: 2000 space: 296960 taper: DOWN
idle-dumpers: 4 qlen tapeq: 29 runq: 0 roomq
: 0 wakeup: 86400 driver-idle: not-idle
driver: interface-state time 0.245 if : free 600 if LE0: free 400 if
LOCAL: free 1000
driver: hdisk-state time 0.245 hdisk 0: free 296960 dumpers 0
driver: QUITTING time 0.245 telling children to quit
driver: send-cmd time 0.245 to taper: QUIT
taper: DONE [idle wait: 0.000 secs]
driver: FINISHED time 0.246
/usr/sbin/sendmail: No such file or directory
----------- end amflush log


Kuas.

<Prev in Thread] Current Thread [Next in Thread>