Amanda-Users

Changing Tapes

2002-11-03 03:30:41
Subject: Changing Tapes
From: Steve Simeonidis <steves AT awebd.com DOT au>
To: amanda-users AT amanda DOT org
Date: Sun, 3 Nov 2002 18:28:44 +0500
For some reason AMANDA doesn't ask me to put the second tape in.

Can anyone see any obvious problems??
(please note I'm only evaluating the product at the moment, so
some configuration setting may be weird)


some settings in amanda.conf

-----------------------
dumpcycle 0 days        # the number of days in the normal dump cycle
runspercycle 2 # the number of amdump runs in dumpcycle days
tapecycle 4 tapes       # the number of tapes in rotation

runtapes 2              # number of tapes to be used in a single run of amdump
tpchanger "chg-manual"  # the tape-changer glue script
tapedev "/dev/nst0l"    # the no-rewind tape device to be used
#rawtapedev "/dev/null" # the raw device to be used (ftape only)
changerfile "/var/lib/amanda/DailySet1/changer"
#changerfile "/var/lib/amanda/DailySet1/changer-status"
#changerfile "/etc/amanda/DailySet1/changer.conf"
#changerdev "/dev/null"

tapetype STD-5000               # what kind of tape it is (see tapetypes 
below)
labelstr "^Daily[0-9][0-9]*$"   # label constraint regex: all tapes must match

infofile "/var/lib/amanda/DailySet1/curinfo"    # database filename
logdir   "/var/lib/amanda/DailySet1"            # log directory
indexdir "/var/lib/amanda/DailySet1/index"      # index directory


define tapetype STD-5000 {
    comment "Sony STD-5000 DDS2"
    length 1500 mbytes
    filemark 183 kbytes         # from tapetype util
#    filemark 48 kbytes         # 
    speed 237 kbytes            # from tapetype util
}

define dumptype always-full {
    global
    comment "Full dump of this filesystem always"
    compress none
    priority high
    dumpcycle 0
    holdingdisk no
    index yes
    program "GNUTAR"
    comprate 0.5,0.5
    exclude "*core*"
}

-------------------------------

I decreased the capacity of the tape on purpose so I can force it to use the
second tape.

I had to create the  "/var/lib/amanda/DailySet1/changer" file manually since 
the system was complaining that it couldn't find the file. It is only an 
empty file.

The disklist file
-----------------------------
localhost /etc always-full 0
localhost /home always-full 0
localhost /squid always-full 0
#localhost /usr always-full 0
localhost /var always-full 0
aris /usr/local always-full 0
aris /var always-full 0
aris /home always-full 0
localhost /usr always-full 0
----------------------------


AMANDA's report
-----------------------------------
These dumps were to tape Daily01.
The next 2 tapes Amanda expects to used are: a new tape, a new tape.

FAILURE AND STRANGE DUMP SUMMARY:
  aris       /var lev 0 STRANGE


STATISTICS:
                          Total       Full      Daily
                        --------   --------   --------
Estimate Time (hrs:min)    0:17
Run Time (hrs:min)         1:47
Dump Time (hrs:min)        1:29       1:24       0:05
Output Size (meg)        1386.5     1374.9       11.6
Original Size (meg)      1386.5     1374.9       11.6
Avg Compressed Size (%)     --         --         --    (level:#disks ...)
Filesystems Dumped            8          7          1   (1:1)
Avg Dump Rate (k/s)       265.7      280.7       36.2

Tape Time (hrs:min)        1:29       1:24       0:05
Tape Size (meg)          1386.8     1375.2       11.6
Tape Used (%)              92.5       91.8        0.8   (level:#disks ...)
Filesystems Taped             8          7          1   (1:1)
Avg Tp Write Rate (k/s)   264.9      279.8       36.2


FAILED AND STRANGE DUMP DETAILS:

/-- aris       /var lev 0 STRANGE
sendbackup: start [aris:/var level 0]
sendbackup: info BACKUP=/bin/tar
sendbackup: info RECOVER_CMD=/bin/tar -f... -
sendbackup: info end
? gtar: ./log/samba/log.nmbd: file changed as we read it
| gtar: ./run/vmnat.942: socket ignored
| Total bytes written: 213790720 (204MB, 408kB/s)
sendbackup: size 208780
sendbackup: end
\--------


NOTES:
  planner: Last full dump of localhost:/usr on tape Daily01 overwritten on 
this run.
  planner: Dump larger than tape: full dump of localhost:/usr delayed.
  taper: tape Daily01 kb 1420064 fm 8 [OK]


DUMP SUMMARY:
                                     DUMPER STATS            TAPER STATS 
HOSTNAME     DISK        L ORIG-KB OUT-KB COMP% MMM:SS  KB/s MMM:SS  KB/s
-------------------------- --------------------------------- ------------
aris         /home       0  470752 470752   --   26:29 296.2  26:32 295.7
aris         /usr/local  0  176224 176224   --    7:16 404.6   7:19 401.8
aris         /var        0  208800 208800   --    8:32 407.5   8:34 406.1
localhost    /etc        0    8800   8800   --    0:29 299.1   0:31 288.5
localhost    /home       0  103904 103904   --    8:11 211.5   8:13 210.6
localhost    /squid      0  242496 242496   --   19:58 202.5  20:02 201.9
localhost    /usr        1   11872  11872   --    5:28  36.2   5:29  36.2
localhost    /var        0  196960 196960   --   12:41 258.9  12:42 258.5

(brought to you by Amanda version 2.4.2p2)
------------------------------------

For some reason instead of asking for a second tape so it backs up 
localhost:/usr, it delays the operation and it looks like it does an 
incremental backup.
I'm not using a holddisk.

Thanks
Steve Simeonidis

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