Results 1 to 2 of 2

Thread: "Malformed output" error when labelling tapes in new LTO6 drive

  1. #1
    Join Date
    Jan 2014
    Posts
    8

    Default "Malformed output" error when labelling tapes in new LTO6 drive

    We recently installed a new LTO6 drive in our enclosure (which already had
    a LTO4 drive).
    Edit: drive 0 is lto4, drive 1 is lto6.

    I'm trying to label the new LTO6 tapes but I keep getting
    a 'malformed output' error. Is it the amanda.conf that is wrongly configured
    (maybe the tapetype) or is it a scsi error?


    This is the error:
    backup@backup1:~$ amlabel Daily1 Tape-051 slot 10
    amlabel: could not load slot "10": Malformed output from changer script -- too many lines

    Some logging:
    ==============
    # cat /var/log/amanda/server/Daily1/amlabel.20140627094727.debug
    1403855247.034505: amlabel: pid 15500 ruid 34 euid 34 version 2.6.1p1: start at Fri Jun 27 09:47:27 2014
    1403855247.035588: amlabel: pid 15500 ruid 34 euid 34 version 2.6.1p1: rename at Fri Jun 27 09:47:27 2014
    1403855247.035876: amlabel: changer: >> -slot 10
    1403855250.260116: amlabel: changer: << EXITSTATUS 1
    1403855250.260156: amlabel: changer: << <error> Malformed output from changer script -- too many lines
    1403855250.260172: amlabel: changer: ERROR <error> Malformed output from changer script -- too many lines
    1403855250.260204: amlabel: critical (fatal): could not load slot "10": Malformed output from changer script -- too many lines
    /usr/lib/amanda/libamanda-2.6.1p1.so(+0x2057c)[0x7f2f7a58757c]
    /lib/libglib-2.0.so.0(g_logv+0x1b9)[0x7f2f793720c9]
    /lib/libglib-2.0.so.0(g_log+0x83)[0x7f2f793724e3]
    amlabel(main+0x835)[0x4025e5]
    /lib/libc.so.6(__libc_start_main+0xfd)[0x7f2f78970c8d]
    amlabel[0x401ca9]
    ============

    My devices:
    ============
    # cat /proc/scsi/scsi
    Attached devices:
    Host: scsi0 Channel: 00 Id: 00 Lun: 00
    Vendor: hp Model: DVD RW AD-7586H Rev: KP03
    Type: CD-ROM ANSI SCSI revision: 05
    Host: scsi2 Channel: 00 Id: 00 Lun: 00
    Vendor: KVM Model: vmDisk-CD Rev: 0.01
    Type: CD-ROM ANSI SCSI revision: 00
    Host: scsi3 Channel: 00 Id: 00 Lun: 00
    Vendor: HP Model: Ultrium 4-SCSI Rev: U62W
    Type: Sequential-Access ANSI SCSI revision: 05
    Host: scsi3 Channel: 00 Id: 01 Lun: 00
    Vendor: HP Model: Ultrium 6-SCSI Rev: 33HW
    Type: Sequential-Access ANSI SCSI revision: 06
    Host: scsi3 Channel: 00 Id: 01 Lun: 01
    Vendor: HP Model: MSL G3 Series Rev: 6.10
    Type: Medium Changer ANSI SCSI revision: 05

    # lsscsi -g
    [0:0:0:0] cd/dvd hp DVD RW AD-7586H KP03 /dev/sr0 /dev/sg0
    [2:0:0:0] cd/dvd KVM vmDisk-CD 0.01 /dev/sr1 /dev/sg1
    [3:0:0:0] tape HP Ultrium 4-SCSI U62W /dev/st0 /dev/sg2
    [3:0:1:0] tape HP Ultrium 6-SCSI 33HW /dev/st1 /dev/sg3
    [3:0:1:1] mediumx HP MSL G3 Series 6.10 /dev/sch0 /dev/sg4
    ==============

    I have changer linked to sg4:
    # ls -l /dev/changer
    lrwxrwxrwx 1 root root 3 2014-06-26 16:00 /dev/changer -> sg4


    With mtx I can see that the tapes are loaded:
    ==============
    # mtx -f /dev/sg4 status
    Storage Changer /dev/sg4:2 Drives, 24 Slots ( 0 Import/Export )
    Data Transfer Element 0:Empty
    Data Transfer Element 1:Full (Storage Element 2 Loaded):VolumeTag = ASX049L6
    Storage Element 1:Full :VolumeTag=CLNU02L1
    Storage Element 2:Empty
    Storage Element 3:Full :VolumeTag=ASX048L6
    Storage Element 4:Empty
    Storage Element 5:Full :VolumeTag=ASX053L6
    Storage Element 6:Full :VolumeTag=ASX050L6
    Storage Element 7:Full :VolumeTag=ASX047L6
    Storage Element 8:Full :VolumeTag=ASX045L6
    Storage Element 9:Full :VolumeTag=ASX032L6
    Storage Element 10:Full :VolumeTag=ASX051L6
    Storage Element 11:Full :VolumeTag=ASX044L6
    Storage Element 12:Full :VolumeTag=ASX033L6
    Storage Element 13:Full :VolumeTag=ASX034L6
    Storage Element 14:Full :VolumeTag=ASX036L6
    Storage Element 15:Full :VolumeTag=ASX041L6
    Storage Element 16:Full :VolumeTag=ASX043L6
    Storage Element 17:Full :VolumeTag=ASX035L6
    Storage Element 18:Full :VolumeTag=ASX040L6
    Storage Element 19:Full :VolumeTag=ASX038L6
    Storage Element 20:Full :VolumeTag=ASX052L6
    Storage Element 21:Full :VolumeTag=ASX037L6
    Storage Element 22:Full :VolumeTag=ASX039L6
    Storage Element 23:Full :VolumeTag=ASX042L6
    Storage Element 24:Full :VolumeTag=ASX046L6
    ==============

    amanda.conf:
    ==============
    org "sample org"
    mailto "root@localhost"
    dumpuser "backup"

    infofile "/var/lib/amanda/state/curinfo-lto6"
    logdir "/var/lib/amanda/state/log-lto6"
    indexdir "/var/lib/amanda/state/index-lto6"


    labelstr "^Tape-[0-9][0-9]*$"
    runtapes 2 # how many tapes for a single amdump
    runspercycle 7 #
    tapecycle 23 tapes # Number of tapes available to Amanda.
    dumpcycle 7 #

    columnspec "HostName=0:9:9,Disk=1:-16:16,Level=1:-1:1,OrigKB=1:-7:0,OutKB=1:-7:0,Compress=1:-6:1,DumpTime=1:-7:7,Dumprate=1:-8:1,TapeTime=1:-6:6,TapeRate=1:-6:1"

    amrecover_changer "changer"
    autoflush yes
    usetimestamps yes

    changerfile "/etc/amanda/Daily1/changer.conf"
    tpchanger "chg-zd-mtx"
    tapedev "tape:/dev/nst1"
    changerdev "/dev/changer"
    tapetype "LTO6"

    displayunit "m"

    bumppercent 10
    bumpdays 2
    bumpmult 2

    define tapetype LTO6 {
    comment "HP-LTO6 Ultrium 6.5Tb - SAS - Compression Off"
    readblocksize 256 kbytes
    blocksize 256 kbytes
    length 6500 gbytes
    filemark 0 kbytes
    }

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

    holdingdisk hd1 {
    comment "Holding disk space can significantly reduce backup time by allowing several dumps to be done at once while the tape is being written."
    directory "/var/lib/holding/Daily1"
    use 0
    chunksize 1024 gbytes
    }

    define dumptype global {
    comment "Global definitions"
    #auth "bsdtcp"
    index yes
    program "GNUTAR"
    }

    define dumptype fullbackup {
    global
    program "APPLICATION"
    application "app_amgtar"
    comment "Full dump of this filesystem always"
    compress none
    index yes
    record yes
    }
    ==============


    changer.conf:
    ==============
    firstslot=1
    lastslot=24
    autoclean=1
    cleanslot=1
    autocleancount=99
    cleancycle=300
    cleanmax=60
    havereader=1
    slotinfofile=slotinfo
    ==============
    Last edited by tacobc; June 27th, 2014 at 01:10 AM.

  2. #2
    Join Date
    Jan 2014
    Posts
    8

    Default

    Solution was simple: underwater the old drive kept being accessed.
    I added "driveslot=1" to changer.conf in order to override the default,
    which is "driveslot=0".

Posting Permissions

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