Results 1 to 6 of 6

Thread: amlabel - segmentation fault

  1. #1
    Join Date
    May 2008
    Location
    Brazil
    Posts
    8

    Default amlabel - segmentation fault

    Hi,

    I'm having problems with the setup of Amanda at the time to appoint the tape, when launching command: $amlabel diario DIARIO00 with user amanda, it returns the error: segmentation fault.

    I use a drive LTO-3 as tapes of 400/800GB

    in amanda.conf:

    IBM defines tapetype-LTO3580 (
    comment "IBM LTO Ultrium 3580"
    401408 length mbytes
    filemark 0 kbytes
    Speed 74343 kps

    SO: Suse 10.1
    Installation of amanda 2.6.0: /configure --with-user=amanda --with-group=backup --with-bsdtcp-security --with-configdir=/etc/amanda.

    This is a bug in version 2.6.0?

  2. #2
    Join Date
    Oct 2005
    Posts
    1,559

    Default

    What changer are you using (value of "tpchanger" from the amanda.conf)? It will be better if you post the contents of amanda.conf and complete output of amlabel
    command.

    Thanks,
    Paddy

  3. #3
    Join Date
    May 2008
    Location
    Brazil
    Posts
    8

    Default

    The result of command amlabel:
    amanda@backup:~> /usr/local/sbin/amlabel diario DIARIO00
    Segmentation Fault

    amanda.conf:

    org "Backup Diario"
    mailto ""
    dumpuser "amanda"
    dumpcycle 7
    runspercycle 1
    tapecycle 1 tape
    runtapes 1

    tapedev "/dev/IBMtape0n"

    labelstr "DIARIO[0-9][0-9]"

    holdingdisk hd1 {
    comment "Hold Disk Amanda Backup"
    directory "/hold_backup"
    use 470 GB
    }

    logdir "/home/amanda/diario/log"
    infofile "/home/amanda/diario/log/curinfo"
    indexdir "/home/amanda/diario/index"

    tapelist "/home/amanda/diario/tapelist"

    netusage 92160 kbps

    tapetype LTO-3580

    define tapetype IBM-LTO3580 {
    comment "IBM LTO Ultrium 3580"
    length 401408 mbytes
    filemark 0 kbytes
    speed 74343 kps
    }

    define dumptype global {
    comment "Definicoes globais"
    program "GNUTAR"
    compress client best
    index
    record no
    strategy standard
    auth "bsdtcp"
    }

    define dumptype local_servers {
    global
    comment "Backup dos Servidores Locais"
    priority medium
    }

    define dumptype remote_servers {
    global
    comment "Backup de hosts"
    priority high
    }

    define interface local {
    comment "Disco Local/Servidores Locais"
    use 50000 kbps
    }

    define interface eth1 {
    comment "10/100 Mbps ethernet"
    use 90000 kbps
    }


    Thanks for your help!!!
    Last edited by Debux; May 7th, 2008 at 10:34 AM.

  4. #4
    Join Date
    Oct 2005
    Posts
    1,559

    Default

    This looks like a bug. Can you please provide a stack trace using a debugger? Do you see any messages in amlabel logs? You will find it in your log directory under server/<configuration name>/ directory.

    Paddy

  5. #5
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    1,049

    Default

    Quote Originally Posted by Debux View Post
    tapetype LTO-3580

    define tapetype IBM-LTO3580 {
    The tapetype you are using "LTO-3580" is not defined.
    Either change your tapetype to IBM-LTO3580 or define the LTO-3580 tapetype.

  6. #6
    Join Date
    May 2008
    Location
    Brazil
    Posts
    8

    Thumbs up

    You were right, not noticed this detail. I made the change in defines tapetype for "LTO-3580" command and executed:

    amanda@backup:~> /usr/local/sbin/amlabel diario DIARIO00
    Reading label...
    "/dev/IBMtape0n" uses deprecated device naming convention;
    using "tape:/dev/IBMtape0n" instead.
    Error reading 32768 bytes from /dev/IBMtape0n: Input/output error
    Error reading Amanda header.
    Found an unlabeled tape.
    Writing label DIARIO00..
    Checking label...
    Success!
    ___________________________________

    These errors mentioned above can say something important or ignore?

    Thanks martineau, thanks patty.

Posting Permissions

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