My offsite Amanda config, which was working nicely under 2.6.1, only
seems to write a single tape with 3.2.1 and I'm at a loss as to why.

I can't find any obvious errors in the debug files or in the
logs. Amanda clearly seems to think it is supposed to use 4 tapes for
each run:

$ su -m backup -c "amadmin offsite tape"
The next Amanda run should go onto tape offsite-019 or a new tape.
                                   tape offsite-020 or a new tape.
                                   tape offsite-021 or a new tape.
                                   tape offsite-022 or a new tape.

But the amanda run writes to one tape and then stops and doesn't do
any others. When the dump is done and 1 tape has been written to I run
amflush, but each run of amflush writes one and only one tape also.

Here is my config, and the amdump and log files from a recent run
along with the taper debug file can be found at

  http://www.meridian-enviro.com/rand/amanda/


org             "Meridian Off Site"
dumpcycle       1 weeks         # Full backup each week
runspercycle    1
runtapes        4
tapecycle       20 tapes
tapetype        SDX-700C-AIT3
tapedev         "offsite"
labelstr        "^offsite-[0-9][0-9]*$"
infofile        "/local-project/amanda/info/offsite"
indexdir        "/local-project/amanda/index/offsite"
logdir          "/var/log/amanda/offsite"

# Offsites get written to tape right away.
flush-threshold-dumped          0
flush-threshold-scheduled       0
taperflush                      0
autoflush                       yes

holdingdisk offsite {
        comment         "Off Site holding disk"
        directory       "/local-project/tmp/amanda/holding/offsite"
        use             -25 gbyte
        chunksize       0 gbyte
}

includefile "/usr/local/etc/amanda/amanda-changer.conf"
includefile "/usr/local/etc/amanda/amanda-defaults.conf"
includefile "/usr/local/etc/amanda/amanda-tapetypes.conf"
includefile "/usr/local/etc/amanda/amanda-dumptypes.conf"
includefile "/usr/local/etc/amanda/amanda-interfaces.conf"

##
## The includefile contents are here:
##

## amanda-changer.conf
define changer daily {
        tapedev "chg-robot:/dev/daily-changer"
        property "tape-device" "0=tape:/dev/daily-tape"
        changerfile"/var/amanda/changer.daily.status"
}

define changer offsite {
        tapedev "chg-robot:/dev/offsite-changer"
        property "tape-device" "0=tape:/dev/offsite-tape"
        changerfile"/var/amanda/changer.offsite.status"
}

## amanda-defaults.conf
mailto                          "backup"
dumpuser                        "backup"
printer                         "lp"
usetimestamps                   yes
netusage                        1000 mbps
inparallel                      20
device-output-buffer-size       5 mb
dumporder                       "BTBTBTBTBTSSSSSSSSSs"
taperalgo                       largestfit
bumpsize                        100 mb
bumpmult                        2
bumpdays                        3 days
reserve                         80
displayunit                     "m"
dtimeout                        1800
etimeout                        300
columnspec                      
"HostName=0:10,Disk=1:24,Level=1:2,OrigKB=1:8,OutKB=1:8,Compress=1:5,DumpTime=1:6,DumpRate=1:6,TapeTime=1:5,TapeRate=1:7"

## amanda-tapetypes.conf
define tapetype SDX-700C-AIT3-parts {
        comment         "Sony LIB-152E AIT-3 changer with 230m tapes"
        length          96000 mbytes    # Supposedly a 100 GB (native) tape
        filemark        5637 kbytes
        speed           12000 kps       # 12 MB/s (native) transfer rate
        part-size       20 gb
        part-cache-type disk
        part-cache-dir  "/local-project/tmp/amanda/part-cache/daily"
}

define tapetype SDX-700C-AIT3 {
        comment         "Sony LIB-152E AIT-3 changer with 230m tapes"
        length          96000 mbytes    # Supposedly a 100 GB (native) tape
        filemark        5637 kbytes
        speed           12000 kps       # 12 MB/s (native) transfer rate
}

define tapetype SDX-500C-230m {
        comment         "Sony LIB-152E AIT-2 changer with 230m tapes"
        length          48000 mbytes    # Supposedly a 50 GB (native) tape
        filemark        5637 kbytes
        speed           6144 kps        # 6 MB/s (native) transfer rate
}

define tapetype HP-C5713A-150m {
        comment         "Hewlett-Packard C5713a DDS-4 changer with 150 meter 
tapes"
        length          19500 mbytes    # Supposedly a 20 GB (native) tape
        filemark        0 kbytes
        speed           3072 kbps       # 3 MB/s (native) transfer rate
}

define tapetype HP-C5713A-125m {
        comment         "Hewlett-Packard C5713A DDS-4 changer with 125 meter 
tapes"
        length          11500 mbytes    # Supposedly a 12 GB (native) tape
        filemark        0 kbytes
        speed           3072 kbps       # 3 MB/s (native) transfer rate
}

define tapetype HP-C5713A-120m {
        comment         "Hewlett-Packard C5713A DDS-4 changer with 120 meter 
tapes"
        length          3500 mbytes     # Supposedly a 4 GB (native) tape
        filemark        0 kbytes
        speed           500 kbps
}

define tapetype HP-C1557A-125m {
        comment         "Hewlett-Packard C1557A DDS-3 changer with 125 meter 
tapes"
        length          11500 mbytes    # Supposedly a 12 GB (native) tape
        filemark        0 kbytes
        speed           1024 kbps
}

define tapetype HP-C1557A-120m {
        comment         "Hewlett-Packard C1557A pretending to be a DDS-2 with 
120 meter tapes"
        length          3500 mbytes     # Supposedly a 4 GB (native) tape
        filemark        100 kbytes
        speed           500 kbps
}

define tapetype HP-C1557A-90m {
        comment         "Hewlett-Packard C1557A pretending to be a DDS-2 DAT 
with 90 meter tapes"
        length          1900 mbytes     # Supposedly a 2 GB (native) tape
        filemark        100 kbytes
        speed           500 kbps
}

define tapetype SDT-7000-120m {
        comment         "Sony SDT-7000 DDS-2 DAT with 120 meter tapes"
        length          3500 mbytes     # Supposedly a 4 GB (native) tape
        filemark        100 kbytes
        speed           750 kbps
}

define tapetype SDT-7000-90m {
        comment         "Sony SDT-7000 DDS-2 DAT with 90 meter tapes"
        length          1900 mbytes     # Supposedly a 2 GB (native) tape
        filemark        100 kbytes
        speed           750 kbps
}

define tapetype SDT-5000-120m {
        comment         "Sony SDT-5000 DDS-2 DAT with 120 meter tapes"
        length          1200 mbytes     # Supposedly a 4 GB tape ??
        filemark        100 kbytes
        speed           115 kbps
}

define tapetype SDT-5000-90m {
        comment         "Sony SDT-5000 DDS-2 DAT with 90 meter tapes"
        length          1850 mbytes     # Supposedly a 2 GB tape
        filemark        100 kbytes
        speed           350 kbps
}

define tapetype SDT-5000-60m {
        comment         "Sony SDT-5000 DDS-2 DAT with 60 meter tapes"
        length          1200 mbytes     # Supposedly a 1.3 GB tape
        filemark        100 kbytes
        speed           350 kbps
}

define tapetype DISK {
        comment         "Dump to local disk for testing."
        length          10240 mbytes
}

## amanda-dumptypes.conf
define dumptype defaults {
        comment         "Global defaults for dump types"
        auth            "BSD"
        compress        client fast
        comprate        0.60, 0.60      # Be somewhat pessemestic about guesses
        estimate        SERVER
        index           yes
        holdingdisk     yes
}

define dumptype dump {
        defaults
        auth                    "bsdtcp"
        program                 "DUMP"
}

define dumptype offdump {
        defaults
        auth                    "bsdtcp"
        dumpcycle               0
        program                 "DUMP"
}

define dumptype tcp {
        defaults
        auth                    "bsdtcp"
        program                 "GNUTAR"
        exclude list            ".amanda.excludes"
}

define dumptype tar {
        defaults
        program                 "GNUTAR"
        exclude list            ".amanda.excludes"
}

define dumptype offsite {
        defaults
        program                 "GNUTAR"
        record                  no
        dumpcycle               0
        exclude list            ".amanda.excludes"
}

define dumptype offtcp {
        defaults
        auth                    "bsdtcp"
        program                 "GNUTAR"
        record                  no
        dumpcycle               0
        exclude list            ".amanda.excludes"
}

define dumptype ssh {
        defaults
        auth                    "ssh"
        ssh-keys                "/var/amanda/.ssh/id_rsa"
        client-username         "backup"
}

define dumptype daily-tar-ssh {
        ssh
        program                 "GNUTAR"
        exclude list optional   ".amanda.excludes"
}

define dumptype offsite-tar-ssh {
        ssh
        program                 "GNUTAR"
        record                  no
        dumpcycle               0
        exclude list optional   ".amanda.excludes"
}

## amanda-interfaces
define interface local {
        comment         "A local disk"
        use             10000 mbps
}

define interface dc0 {
        comment         "100 Mbps Ethernet"
        use             10000 mbps
}

Reply via email to