Results 1 to 2 of 2

Thread: fatal changer error!

  1. #1
    Join Date
    Nov 2008
    Location
    Italy
    Posts
    19

    Default fatal changer error!

    I'm trying to use amanda 2.6.0p2 with Scalar AIT 220 but amcheck returns error: fatal changer error: slot 2: Unloading drive 0 into Storage Element 2...mtx: Request Sense: Long Report=yes (expecting a new tape). The tapes have already been used by other programs and must be overwritten.
    I also have changer.conf file empty...

    What could be the problem?
    Where can I find information to compile changer.conf?

    Here are some information:

    #amanda.conf
    tpchanger "chg-zd-mtx" # the tape-changer glue script
    tapedev "tape:/dev/nst0" # the no-rewind tape device
    changerfile "/etc/amanda/monthly/changer.conf" # tape changer configuration parameter file
    changerdev "/dev/sg7" # tape changer configuration parameter device
    tapetype AIT-2 # what kind of tape it is
    labelstr "^monthly-[0-9][0-9]*$"

    #cat /proc/scsi/scsi
    Host: scsi4 Channel: 00 Id: 00 Lun: 00
    Vendor: SONY Model: SDX-500C Rev: 01e7
    Type: Sequential-Access ANSI SCSI revision: 02
    Host: scsi4 Channel: 00 Id: 06 Lun: 00
    Vendor: ADIC Model: Scalar AIT 220 Rev: 6.04
    Type: Medium Changer ANSI SCSI revision: 02

    #mtx -f /dev/nst0 inquiry
    Product Type: Tape Drive
    Vendor ID: 'SONY '
    Product ID: 'SDX-500C '
    Revision: '01e7'
    Attached Changer API: No

    # mtx -f /dev/sg6 inquiry
    Product Type: Tape Drive
    Vendor ID: 'SONY '
    Product ID: 'SDX-500C '
    Revision: '01e7'
    Attached Changer API: No

    mtx -f /dev/sg6 status
    mtx: Request Sense: Long Report=yes
    mtx: Request Sense: Valid Residual=no
    mtx: Request Sense: Error Code=70 (Current)
    mtx: Request Sense: Sense Key=Illegal Request
    mtx: Request Sense: FileMark=no
    mtx: Request Sense: EOM=no
    mtx: Request Sense: ILI=no
    mtx: Request Sense: Additional Sense Code = 24
    mtx: Request Sense: Additional Sense Qualifier = 00
    mtx: Request Sense: Field in Error = 05
    mtx: Request Sense: BPV=yes
    mtx: Request Sense: Error in CDB=yes
    mtx: Request Sense: SKSV=yes
    mtx: Request Sense: Field Pointer = 00 02
    Mode sense (0x1A) for Page 0x1D failed
    mtx: Request Sense: Long Report=yes
    mtx: Request Sense: Valid Residual=no
    mtx: Request Sense: Error Code=70 (Current)
    mtx: Request Sense: Sense Key=Illegal Request
    mtx: Request Sense: FileMark=no
    mtx: Request Sense: EOM=no
    mtx: Request Sense: ILI=no
    mtx: Request Sense: Additional Sense Code = 20
    mtx: Request Sense: Additional Sense Qualifier = 00
    mtx: Request Sense: Field in Error = 07
    mtx: Request Sense: BPV=yes
    mtx: Request Sense: Error in CDB=yes
    mtx: Request Sense: SKSV=yes
    mtx: Request Sense: Field Pointer = 00 00
    READ ELEMENT STATUS Command Failed


    #mtx -f /dev/sg7 inquiry
    Product Type: Medium Changer
    Vendor ID: 'ADIC '
    Product ID: 'Scalar AIT 220 '
    Revision: '6.04'
    Attached Changer API: No

    # mtx -f /dev/sg7 status
    Storage Changer /dev/sg7:1 Drives, 21 Slots ( 0 Import/Export )
    Data Transfer Element 0:Full (Storage Element 2 Loaded):VolumeTag = 000000
    Storage Element 1:Full
    Storage Element 2:Empty
    Storage Element 3:Full :VolumeTag=000001
    Storage Element 4:Full :VolumeTag=000002
    Storage Element 5:Full :VolumeTag=000003
    Storage Element 6:Full :VolumeTag=000004
    Storage Element 7:Full :VolumeTag=000005
    Storage Element 8:Full :VolumeTag=000006
    Storage Element 9:Full :VolumeTag=000007
    Storage Element 10:Full :VolumeTag=000008
    Storage Element 11:Full :VolumeTag=000009
    Storage Element 12:Full :VolumeTag=000010
    Storage Element 13:Full :VolumeTag=000011
    Storage Element 14:Full :VolumeTag=000012
    Storage Element 15:Empty
    Storage Element 16:Empty
    Storage Element 17:Empty
    Storage Element 18:Empty
    Storage Element 19:Empty
    Storage Element 20:Empty
    Storage Element 21:Empty

    #less chg-zd-mtx.20081202172404.debug
    1228235044.176040: chg-zd-mtx: pid 29827 ruid 505 euid 505: start at Tue Dec 2 17:24:04 2008
    17:24:04 Using config file /etc/amanda/monthly/changer.conf
    17:24:04 Arg info:
    $# = 2
    $0 = "/usr/libexec/amanda/chg-zd-mtx"
    $1 = "-slot"
    $2 = "current"
    17:24:04 Running: /usr/sbin/mtxRunning: status
    17:24:05 Exit code: 0
    Stdout:
    Storage Changer /dev/sg7:1 Drives, 21 Slots ( 0 Import/Export )
    17:24:05 SLOTLIST -> firstslot set to 1
    17:24:05 SLOTLIST -> lastslot set to 14
    17:24:05 Config info:
    firstslot = "1"
    lastslot = "14"
    cleanslot = "-1"
    cleancycle = "120"
    offline_before_unload = "0"
    unloadpause = "0"
    autoclean = "0"
    autocleancount = "99"
    havereader = "0"
    driveslot = "0"
    poll_drive_ready = "3"
    initial_poll_delay = "0"
    max_drive_wait = "120"
    17:24:05 SETUP -> current slot -1 less than 1 ... resetting to 1
    17:24:05 LOADSLOT -> load drive 0 (/dev/nst0) from slot current
    17:24:05 STATUS -> currently loaded slot = 2
    -> currently loaded barcode = "000000"
    17:24:05 EJECT -> ejecting tape from /dev/nst0
    17:24:05 STATUS -> currently loaded slot = 2
    -> currently loaded barcode = "000000"
    17:24:05 EJECT -> moving tape from drive 0 to storage slot 2
    17:24:05 Running: /usr/sbin/mtxRunning: unloadRunning: 2Running: 0
    17:25:36 Exit code: 1
    Stdout:
    Unloading drive 0 into Storage Element 2... Stderr:
    Unloading drive 0 into Storage Element 2... Stderr:
    mtx: Request Sense: Long Report=yes
    mtx: Request Sense: Valid Residual=no
    mtx: Request Sense: Error Code=70 (Current)
    mtx: Request Sense: Sense Key=Illegal Request
    mtx: Request Sense: FileMark=no
    mtx: Request Sense: EOM=no
    mtx: Request Sense: ILI=no
    mtx: Request Sense: Additional Sense Code = 3B
    mtx: Request Sense: Additional Sense Qualifier = 90
    mtx: Request Sense: BPV=no
    mtx: Request Sense: Error in CDB=no
    mtx: Request Sense: SKSV=no
    MOVE MEDIUM from Element Address 82 to 1 Failed

    #less amcheck.log
    1228235044.119383: amcheck-server: changer_query: changer return was 14 1
    1228235044.119556: amcheck-server: changer_query: searchable = 0
    1228235044.119593: amcheck-server: changer_find: looking for NULL changer is searchable = 0
    1228235136.874239: amcheck-server: changer: got exit: 2 str: 2 Unloading drive 0 into Storage Element 2...mtx: Request Sense: Long Report=yes

    #amlabel.log
    1228230543.614060: amlabel: changer: got exit: 2 str: 2 Unloading drive 0 into Storage Element 2...mtx: Request Sense: Long Report=yes
    1228230543.614222: amlabel: critical (fatal): could not load slot "current": Unloading drive 0 into Storage Element 2...mtx: Request Sense: Long Report=yes

    Thanks to all!
    Last edited by ipv4; December 2nd, 2008 at 05:44 AM.

  2. #2
    Join Date
    Mar 2007
    Location
    Chicago, IL
    Posts
    688

    Default

    It looks like changerdev is pointing at the tape device, rather than the changer (/dev/sg7). You're getting the same messages (Request Sense: Log Report=yes) in your changer debug logs as you did when you ran mtx status -f /dev/sg6.

Posting Permissions

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