Results 1 to 1 of 1

Thread: Setting up Amanda to work with tape library

  1. #1
    Join Date
    May 2011
    Columbus, OH, USA

    Question Setting up Amanda to work with tape library

    Hello everyone!

    I'm new to Amanda and am still trying to get my arms around it. I've played around with using vtapes to backup and restore both local and remote files; no problem there. I have a Dell TL4000 (aka IBM T3200), and it looks like the chg-robot script is the one I need to use. Beyond that, I'm getting into configuring our tape library and I am at a total loss.

    From all the stuff I've read, I haven't seen anything yet that tells me how Amanda manages a tape library and what I need to do to get Amanda to do that. How do I add tapes to the catalog (or remove them for that matter)? How do I see what's in the catalog? How do I handle moving tapes around in the changer (between the tape drives and the storage slots), and ejecting that day's tape for off-site storage?

    If anyone can point me in the right direction to figure this out, I would greatly appreciate it. Maybe I'm making this harder than it is, but I just don't see how to make this work in Amanda.

    Thank you much,

    Okay, maybe I'm asking the wrong question here... I guess what I need to know is, How does Amanda work with tape changers? I haven't seen anything on how it moves tapes around, or more specifically, what I need to do to get it to do to get Amanda to remove a tape from the one of the drives and put it in the library, or how I get it to retrieve a tape from the library, or even eject one. So my question is: How do I do these things with Amanda? If anyone can point me some good documentation, I'd greatly appreciate it.

    Edit #2:

    Ok, I've almost got it working (I think), but I've run across a behavior I did not expect, and hopefully someone knows the answer to this, or where to find the answer. The example I followed for this setup specified a changerfile with additional parameters for the changer, so I did the same. The contents of my changerfile are:

    havereader=1 #enables barcodes
    firstslot=23 #first slot for amanda to use
    lastslot=26 #last slot for amanda to use
    driveslot=0 #drive number for amanda to use

    Naturally, I expected the changer to go straight to slot 23 and load the tape there. (All four tapes have been successfully labeled with amlabel). It didn't. It started at slot 1 and checked every single tape until it found an Amanda tape in slot 23, then wrote to it. Finally, it found the tape and wrote to it, and I found the following in tapelist afterwards:

    20110511152908 TapeTest2-1 reuse
    0 TapeTest2-4 reuse BARCODE:000036LU
    0 TapeTest2-3 reuse BARCODE:000035LU
    0 TapeTest2-2 reuse BARCODE:000031LU

    It looks like amdump made no effort to use the barcode. Why did amlabel use it, and not amdump? What do I need to do differently? My amanda.conf is below:

    org "TapeTest2" # your organization name for reports
    mailto "amandabackup" # space separated list of operators at your site
    dumpcycle 1 week # the number of days in the normal dump cycle
    #runspercycle 5 # the number of amdump runs in dumpcycle days
    # (1 week * 5 amdump runs per week -- just weekdays)
    tapecycle 10 tapes # the number of tapes in rotation
    # 1 week (dumpcycle) times 5 tapes per week (just
    # the weekdays) plus a few to handle errors that
    # need amflush and so we do not overwrite the full
    # backups performed at the beginning of the previous
    # cycle
    runtapes 1 # number of tapes to be used in a single run of amdump

    define changer TL4000 {
    tpchanger "chg-robot:/dev/changer"
    property "tape-device" "0=tape:/dev/nst0"
    device-property "BLOCK_SIZE" "1048576"
    #tpchanger "chg-robot:/dev/changer" # the tape-changer glue script
    tpchanger "TL4000"
    #tapedev "tape:/dev/nst0" # the no-rewind tape device to be used
    changerfile "/etc/amanda/TapeTest2/changer.conf"
    #changerdev "/dev/changer"
    #tapetype HP-DAT # what kind of tape it is (see tapetypes below)

    define tapetype LTO4 {
    comment "Dell LTO4 800Gb - Compression Off"
    length 802816 mbytes
    filemark 0 kbytes
    speed 4096 mbps

    holdingdisk hd2 {
    directory "/var/lib/amanda/holdings/TapeTest2"
    use 1000 Mb

    labelstr "^TapeTest2-[1-4]*$" # label constraint regex: all tapes must match

    dtimeout 1800 # number of idle seconds before a dump is aborted.
    ctimeout 30 # maximum number of seconds that amcheck waits
    # for each client host
    etimeout 300 # number of seconds per filesystem for estimates.

    define dumptype global {
    comment "Global definitions"
    auth "bsdtcp"

    #define application-tool and dumptype for the amgtar application

    define dumptype simple-gnutar-local {
    auth "local"
    compress none
    program "GNUTAR"

    define dumptype simple-gnutar-remote {
    auth "ssh"
    ssh_keys "/etc/amanda/MyConfig/ssh-key"
    compress none
    program "GNUTAR"

    includefile "./advanced.conf"
    includefile "/etc/amanda/template.d/dumptypes"
    includefile "/etc/amanda/template.d/tapetypes"
    Last edited by le_jawa; May 11th, 2011 at 12:05 PM. Reason: Making progress, and have a new question.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts