Amanda-Users

A last question (here) on chg-MTX-ZD

2003-08-08 11:04:14
Subject: A last question (here) on chg-MTX-ZD
From: "Bruntel, Mitchell L" <mbruntel AT att DOT com>
To: <amanda-users AT amanda DOT org>
Date: Fri, 8 Aug 2003 10:00:41 -0500
Hopefully this is it.  sorry it's so lengthy.  

Question is kind of short.

In the changer script chg-zd-mtx script Variable :DriveSlot  
is defined as 
                Figure out the drive slot number.  By default, it is set to 0. 
In the example above, 
                the tape drive ("Data Transfer Element") is in slot 0. If your 
drive slot is not 0, you
                need to set the drive slot number with the "driveslot" variable.

====================
Here's the question.
====================
I'm lucky(?) enough to have a three drive robot.
Drive 0,1, 2 are the names.  Are these absolute values?  IE, if I set my 
tapedev in amanda.conf 
to drive 2 (/dev/rmt/2n)
does DRIVESLOT STILL need to be 2, or can that default to the "default" of 0?
I've tried it both ways (shown below), and am not sure which one is "better" or 
"right"
sorry again for length

OR from the fact that it's all error messages, does tapedev NEED to be set to 
first drive (#0), 
as well as setting my desired tape in driveslot to 2?
(Will try this)--didnt work, see last configuration at bottom 
(driveslot=0,tapedev=0



My chg-zd-mtx.conf shows :
#driveslot=2                 #### Drive slot number.  Defaults to the
# driveslot 2 should be /dev/rmt/0n as tapedev in amanda.conf
(so it is the default of  driveslot=0)

and My amanda.conf shows :
tapedev "/dev/rmt/2n"   # the no-rewind tape device to be used

****WITH driveslot set to zero, and tapedev calling /dev/rmt/2n I show:****

amcheck shows:
-----
changer: got exit: 0 str: 1 80 1 1
changer_query: changer return was 80 1 1
changer_query: searchable = 1
changer_find: looking for NULL changer is searchable = 1
changer: got exit: 0 str: 1 /dev/rmt/2n
changer: got exit: 2 str: <error> <error> could not read result from 
"/usr/local/libexec/chg-zd-mtx" (got signal 10)

SO: is this signal 10 to chg-zd-mtx caused by the driveslot being wrong?  
---start --output of chg-zd-mtx.debug-----with driveslot set to 
zero------------------------

chg-zd-mtx: debug 1 pid 25664 ruid 107 euid 107: start at Thu Aug  7 16:30:29 
2003
16:30:30 Using config file /usr/local/etc/amanda/DailySet1/chg-zd-mtx.conf
16:30:30 Arg info:
         $# = 2
         $0 = "/usr/local/libexec/chg-zd-mtx"
         $1 = "-slot"
         $2 = "next"
16:30:31 Running: /usr/local/sbin/mtx status  ( I love this chg-zd-mtx 
command-- it's so full of info!)
16:30:31 Exit code: 0
         Stdout:
  Storage Changer /dev/scsi/changer/c1t0d0:3 Drives, 86 Slots ( 5 Import/Export 
)
Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag = A0000005   
<----NOTE VOL #
Data Transfer Element 1:Full (Storage Element 14 Loaded):VolumeTag = B0000003  
<----NOTE VOL #
Data Transfer Element 2:Empty
      Storage Element 1:Empty
      Storage Element 2:...13 deleted for brevity
      Storage Element 14:Empty
      Storage Element 15:...81 Deleted for brevity
16:30:32 Config info:
         firstslot = "1"
         lastslot = "81"
         cleanslot = "0"
         cleancycle = "120"
         offline_before_unload = "1"
         unloadpause = "6"
         autoclean = "0"
         autocleancount = "99"
         havereader = "1"
         driveslot = "0"
         poll_drive_ready = "05"
         max_drive_wait = "99"
16:30:33 LOADSLOT -> load drive 0 (/dev/rmt/2n) from slot next
16:30:33 STATUS   -> currently loaded slot = 1
                  -> currently loaded barcode = "A0000005"                      
        <<----------NOTE it's taking the Tape from DRIVE zero here. (wrong 
drive)
16:30:34 EJECT    -> ejecting tape from /dev/rmt/2n                             
        <<-------But here it's trying to eject the correct (drive 2) drive here.
16:30:34 STATUS   -> currently loaded slot = 1
                  -> currently loaded barcode = "A0000005"
16:30:34 EJECT    -> moving tape from drive 0 to storage slot 1                 
<<<----Seems to be trying to do an unload drive zero
16:30:34 Running: /usr/bin/mt -f /dev/rmt/2n offline
16:30:54 Exit code: 1                                                           
        <<<--so exit code one means 
         Stderr:
/dev/rmt/2n: no tape loaded or drive offline
16:31:00 Running: /usr/local/sbin/mtx unload 1 0
16:31:01 Exit code: 1
         Stderr:
Unloading Data Transfer Element into Storage Element 1...mtx: Request Sense: 
Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Not Ready
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 04
mtx: Request Sense: Additional Sense Qualifier = 8D
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
MOVE MEDIUM from Element Address 451 to 0 Failed
16:31:01          -> status 1, result "Unloading Data Transfer Element into 
Storage Element 1...mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Not Ready
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 04
mtx: Request Sense: Additional Sense Qualifier = 8D
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
MOVE MEDIUM from Element Address 451 to 0 Failed"
16:31:01 Return (2) -> 1 Unloading Data Transfer Element into Storage Element 
1...mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Not Ready
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 04
mtx: Request Sense: Additional Sense Qualifier = 8D
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
MOVE MEDIUM from Element Address 451 to 0 Failed
---END --output of chg-zd-mtx.debug-----with driveslot set to zero, and tapedev 
set to /dev/rmt/2n------------------------

%%%%%START%%%%%%%%%%output of chg-zd-mtx.debug%%%%%with driveslot set to two, 
and tapedev set to /dev/rmt/2n%%%%%%%%%%%%%%%%%%%%%%%%%
      ...rest is same...
   

        driveslot = "2"
         poll_drive_ready = "05"
         max_drive_wait = "99"
09:13:39 WARNING  -> current slot 1 not available, setting current slot to next 
slot (2)
09:13:39 LOADSLOT -> load drive 2 (/dev/rmt/2n) from slot current
09:13:39 STATUS   -> currently loaded slot = -1
                  -> currently loaded barcode = ""
09:13:40 EJECT    -> ejecting tape from /dev/rmt/2n
09:13:40 STATUS   -> currently loaded slot = -1
                  -> currently loaded barcode = ""
09:13:40 Return (1) -> -1 Drive was not loaded
09:13:40 LOADSLOT -> loading tape from slot 2 to drive 2 (/dev/rmt/2n)
09:13:40 Running: /usr/local/sbin/mtx load 2 2
09:13:40 Exit code: 1
         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=Not Ready
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 04
mtx: Request Sense: Additional Sense Qualifier = 8D
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
MOVE MEDIUM from Element Address 1 to 453 Failed
09:13:41          -> status 1, result "mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Not Ready
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 04
mtx: Request Sense: Additional Sense Qualifier = 8D
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
MOVE MEDIUM from Element Address 1 to 453 Failed
09:13:41          -> status 1, result "mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Not Ready
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 04
mtx: Request Sense: Additional Sense Qualifier = 8D
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
MOVE MEDIUM from Element Address 1 to 453 Failed"
09:13:41 Exit (2) -> 2 mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Not Ready
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 04
mtx: Request Sense: Additional Sense Qualifier = 8D
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
MOVE MEDIUM from Element Address 1 to 453 Failed
chg-zd-mtx: pid 26736 finish time Fri Aug  8 09:13:41 2003
%%%%%END %%%%%%%%%%output of chg-zd-mtx.debug%%%%%with driveslot set to two, 
and tapedev set to /dev/rmt/0n%%%%%%%%%%%%%%%%%%%%%%%%%



@@@@@@@@start output of chg-zd-mtx.debug with driveslot set to two, and tapedev 
set to /dev/rmt/2n@@@@@@@@@


<Prev in Thread] Current Thread [Next in Thread>