Amanda-Users

Re: barcodes?

2008-12-03 21:32:05
Subject: Re: barcodes?
From: Chris Hoogendyk <hoogendyk AT bio.umass DOT edu>
To: amanda-users <amanda-users AT amanda DOT org>
Date: Wed, 03 Dec 2008 16:14:12 -0500


Dustin J. Mitchell wrote:
On Wed, Dec 3, 2008 at 8:25 AM, Chris Hoogendyk <hoogendyk AT bio.umass DOT 
edu> wrote:
hmm. I haven't noticed that behavior. Is there some trick to making it work?
just havereader=1 in changer.conf

I have that set.


I've had no particular problem, but Amanda does seem to cycle through on my
system. It does keep the barcodes listed in changer-barcodes. Maybe my
library doesn't have that quick access feature? On the other hand, I always
keep the tapes in order, so the issue rarely comes up.

That's probably why you're not seeing it -- it's hard to distinguish
between loading the "next" tape, and loading the tape with the next
desired label.

If you look at your changer debug file, you can verify that the loads
are by barcode.

ooh. Interesting. I actually just did a recovery yesterday from a tape from last week. So I was way off on the currently loaded tape from what Amanda needed for its daily backup. Perfect opportunity to check the behavior. I wasn't here to watch it, but the debug file claims it did the smart thing. See below.

Is this behavior the same across all Amanda code? Or might amrecover behave differently from amdump? I'm not sure why I would have thought it cycled through the tapes looking at the labels unless amrecover were perhaps different. I've developed the habit of using the front panel on the library to load the tape that amrecover will be expecting before starting it up.


--
---------------

Chris Hoogendyk

-
  O__  ---- Systems Administrator
 c/ /'_ --- Biology & Geology Departments
(*) \(*) -- 140 Morrill Science Center
~~~~~~~~~~ - University of Massachusetts, Amherst
<hoogendyk AT bio.umass DOT edu>

---------------
Erdös 4




--
mormyrid:/usr/local/etc/amanda/daily:amanda$ less 
/tmp/amanda/server/chg-zd-mtx.20081202224507.debug
chg-zd-mtx: debug 1 pid 18995 ruid 555 euid 555: start at Tue Dec  2 22:45:07 
2008
22:45:07 Using config file /usr/local/etc/amanda/daily/changer.conf
22:45:07 Arg info:
        $# = 2
        $0 = "/usr/local/libexec/chg-zd-mtx"
        $1 = "-search"
        $2 = "bio-daily-011"
22:45:08 Running: /usr/local/sbin/mtx status
22:45:08 Exit code: 0
        Stdout:
 Storage Changer /dev/scsi/changer/c7t0d0:1 Drives, 16 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 7 Loaded):VolumeTag = A0CMH4
     Storage Element 1:Full :VolumeTag=A0CMHD
     Storage Element 2:Full :VolumeTag=A0CMHE
     Storage Element 3:Full :VolumeTag=A0CMJ1
     Storage Element 4:Full :VolumeTag=A0CMJ2
     Storage Element 5:Full :VolumeTag=A0CMJ3
     Storage Element 6:Full :VolumeTag=A0CMJ4
     Storage Element 7:Empty
     Storage Element 8:Full :VolumeTag=A0CMJ5
     Storage Element 9:Full :VolumeTag=A0CMH6
     Storage Element 10:Full :VolumeTag=A0CMH7
     Storage Element 11:Full :VolumeTag=A0CMH8
     Storage Element 12:Full :VolumeTag=A0CMH9
     Storage Element 13:Full :VolumeTag=A0CMHA
     Storage Element 14:Full :VolumeTag=A0CMHB
     Storage Element 15:Full :VolumeTag=A0CMHC
     Storage Element 16:Empty
22:45:08 Config info:
        firstslot = "1"
        lastslot = "15"
        cleanslot = "-1"
        cleancycle = "120"
        offline_before_unload = "0"
        unloadpause = "0"
        autoclean = "0"
        autocleancount = "99999"
        havereader = "1"
        driveslot = "0"
        poll_drive_ready = "3"
        initial_poll_delay = "0"
        max_drive_wait = "120"
22:45:10 SEARCH   -> Hunting for label "bio-daily-011"
                 -> barcode is "A0CMH9"
                 -> foundslot is 12
22:45:10 LOADSLOT -> load drive 0 (/dev/rmt/1n) from slot 12
22:45:10 STATUS   -> currently loaded slot = 7
                 -> currently loaded barcode = "A0CMH4"
22:45:10 EJECT    -> ejecting tape from /dev/rmt/1n
22:45:11 STATUS   -> currently loaded slot = 7
                 -> currently loaded barcode = "A0CMH4"
22:45:11 EJECT    -> moving tape from drive 0 to storage slot 7
22:45:11 Running: /usr/local/sbin/mtx unload 7 0
22:46:57 Exit code: 0
        Stderr:
Unloading Data Transfer Element into Storage Element 7...done
22:46:57          -> status 0, result "Unloading Data Transfer Element into Storage 
Element 7...done"
22:46:57 Return (0) -> 7 /dev/rmt/1n
22:46:57 LOADSLOT -> loading tape from slot 12 to drive 0 (/dev/rmt/1n)
22:46:57 Running: /usr/local/sbin/mtx load 12 0
22:47:14 Exit code: 0
22:47:15          -> status 0, result ""
22:47:15 Running: /usr/bin/mt -f /dev/rmt/1n rewind
22:47:37 Exit code: 0
22:47:37 Exit (0) -> 12 /dev/rmt/1n
chg-zd-mtx: pid 19249 finish time Tue Dec  2 22:47:38 2008

mormyrid:/usr/local/etc/amanda/daily:amanda$



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