[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

How to get Amanda and tape libraries to work?



Been reading docs and working on understanding amanda for about two weeks
now and finally got it up and running with a tape jukebox/library; SORTOF.

I can load/unload/label tapes in the library, and got a valid 'changer.conf',
'disklist', etc.

However cannot get amanda and the 'tpchanger' chg-zd-mtx to backup any disk
that is larger than the size of one tape in the library. Sort of defeats the
whole purpose of using amanda and tape libraries.

Plus no data is written to the disk cache, '/var/tmp', either when tape
drive fails for whatever reason, as advertised in the amanda docs.

There is tons of documentation on amanda, but I have yet to find a single
occurrence of how to get amanda to backup large disk mounts to a library and
automatically change tapes as it needs to. Let alone why no data is being
written to the disk cache, for later writing to the tape when tape errors
occur.

Now I am not even sure amanda even was designed to do so.

Has anyone on the list ever gotten amanda and tape libraries to work? Or
should I look at ufsdump and fsbackup instead?

Here are the specifics:
----------------------------------------------------------------
Debian - sarge
Kernel - 2.6.12.2
User - backup
group - backup
Version of amanda - 2.4.4p3-3
Tape Library - HP SureStore 12000e 

Contents of /etc/amanda/normal/amanda.conf
==============================================================================
org "Linux Workstation" # Title of report
mailto "me" # recipients of report, space separated
dumpuser "backup" # the user to run dumps under
inparallel 4 # maximum dumpers that will run in parallel
netusage 600 # maximum net bandwidth for Amanda, in KB per sec

# a filesystem is due for a full backup once every days
dumpcycle 4 weeks # the number of days in the normal dump cycle
tapecycle 6 tapes # the number of tapes in rotation

bumpsize 20 MB # minimum savings (threshold) to bump level 1 -> 2
bumpdays 1 # minimum days at each level
bumpmult 4 # threshold = bumpsize * (level-1)**bumpmult

runtapes 1
tpchanger "chg-zd-mtx"
changerdev "/dev/sg15"
tapedev "/dev/nst0" # Linux: norewinding
changerfile "/etc/amanda/normal/changer"

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

diskdir "/var/tmp" # where the holding disk is
disksize 1000 MB # how much space can we use on it
infofile "/var/lib/amanda/normal/curinfo" # database filename
logfile "/var/log/amanda/normal/log" # log filename

indexdir "/var/lib/amanda/normal/index"

#define tapetype SDT-5000 {
#comment "Sony SDT-5000"
#length 1584 mbytes
#filemark 0 kbytes
#speed 271 kps
#}

define tapetype HPC1553A {
        comment "HP SureStore12000E"
        length 3900 mbytes
        filemark 160 kbytes
        speed 453 kbytes
}


define dumptype striped_lvol-tar {
program "GNUTAR"
comment "striped_lvol partition dump with tar"
options compress-fast, index, exclude-list "/etc/amanda/normal/striped_lvol.exclude"
priority medium
}

==============================================================================

Contents of /etc/amanda/normal/changer.conf
==============================================================================
changerdev=/dev/sg15
firstslot=1
lastslot=4
cleanslot=-1
autoclean=0
#lastslot=5
#cleanslot=6
# autoclean=1               #### Set to '1' or greater to enable
#
# autocleancount=99         #### Number of access before a clean.
#
# cleancycle=120            #### Time (seconds) to clean drive (default 120)
havereader=0
offline_before_unload=0
OFFLINE_BEFORE_UNLOAD=0
poll_drive_ready=10
max_drive_wait=120
unloadpause=20
driveslot=0
==============================================================================


Output from mtx -f /dev/sg15 inquiry
==============================================================================
Product Type: Medium Changer
Vendor ID: 'HP      '
Product ID: 'C1553A          '
Revision: '9503'
Attached Changer: No
==============================================================================


Output from chg-zd-mtx -info
==============================================================================
1 4 1
==============================================================================


Output from chg-zd-mtx -reset
==============================================================================
1 /dev/nst0
==============================================================================


Contents of E-mail sent by amdump
==============================================================================
FAILURE AND STRANGE DUMP SUMMARY:
  hostname.c /striped_lvol lev 0 FAILED [dump larger than tape, 5968735 KB, but cannot incremental dump new disk]
  planner: FATAL cannot fit anything on tape, bailing out
==============================================================================

Packages and versions:
==============================================================================
ii  mtx            1.2.16rel-4    controls tape autochangers
ii  amanda-client  2.4.4p3-3      Advanced Maryland Automatic Network Disk Arc
ii  amanda-common  2.4.4p3-3      Advanced Maryland Automatic Network Disk Arc
ii  amanda-server  2.4.4p3-3      Advanced Maryland Automatic Network Disk Arc
ii  gnuplot        4.0.0-2        A command-line driven interactive plotting p
ii  gnuplot-nox    4.0.0-2        A command-line driven interactive plotting p
ii  gnuplot-x11    4.0.0-2        X11-terminal driver for gnuplot
ii  gawk           3.1.4-2        GNU awk, a pattern scanning and processing l
ii  libc6          2.3.2.ds1-22   GNU C Library: Shared libraries and Timezone
ii  libc6-dev      2.3.2.ds1-22   GNU C Library: Development Libraries and Hea
ii  libncurses5    5.4-4          Shared libraries for terminal handling
ii  libncurses5-de 5.4-4          Developer's libraries and docs for ncurses
ii  libncursesw5   5.4-4          Shared libraries for terminal handling (wide
ii  mailx          8.1.2-0.200405 A simple mail user agent
ii  cpio           2.5-1.3        GNU cpio -- a program to manage archives of
ii  libtar         1.2.11-2       C library for manipulating tar archives
ii  tar            1.14-2         GNU tar
ii  libperl5.8     5.8.4-8        Shared Perl library
ii  libsnmp-perl   5.1.2-6.2      NET SNMP (Simple Network Management Protocol
ii  liburi-perl    1.35-1         Manipulates and accesses URI strings
ii  libwww-perl    5.803-4        WWW client/server library for Perl (aka LWP)
ii  perl           5.8.4-8        Larry Wall's Practical Extraction and Report
ii  perl-base      5.8.4-8        The Pathologically Eclectic Rubbish Lister
ii  perl-modules   5.8.4-8        Core Perl modules
==============================================================================

-jpg



Reply to: