Amanda-Users

Re: Amanda 2.5.0 upgrade weirdness

2006-05-16 09:51:48
Subject: Re: Amanda 2.5.0 upgrade weirdness
From: Brad Willson <bwil150n AT u.washington DOT edu>
To: Jean-Louis Martineau <martineau AT zmanda DOT com>
Date: Tue, 16 May 2006 05:46:16 -0700
Jean-Louis,

Thank you!  Your answer hit the mark!

Brad

Jean-Louis Martineau wrote:

Brad,

Upgrade to 2.5.0p2
The 'amtape update' was missing from 2.5.0 and barcode will not work with this release.

Jean-Louis


Brad Willson wrote:

Hi,

More information from the log chg-zd-mtx.20060515215442.debug

chg-zd-mtx: debug 1 pid 3280 ruid 34 euid 34: start at Mon May 15 21:54:42 2006
21:54:42 Using config file /etc/amanda/DailySet1/changer.conf
21:54:42 Arg info:
         $# = 2
         $0 = "/usr/lib/amanda/chg-zd-mtx"
         $1 = "-search"
         $2 = "B0000003"
21:54:42 Running: /usr/sbin/mtx status
21:54:42 Exit code: 0
         Stdout:
  Storage Changer /dev/sg0:1 Drives, 10 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 3 Loaded):VolumeTag = B0000003
      Storage Element 1:Full :VolumeTag=B0000001
      Storage Element 2:Full :VolumeTag=B0000002
      Storage Element 3:Empty:VolumeTag=
      Storage Element 4:Full :VolumeTag=B0000004
      Storage Element 5:Full :VolumeTag=B0000005
      Storage Element 6:Full :VolumeTag=B0000006
      Storage Element 7:Full :VolumeTag=B0000007
      Storage Element 8:Full :VolumeTag=B0000008
      Storage Element 9:Full :VolumeTag=B0000009
      Storage Element 10:Full :VolumeTag=B0000010
21:54:42 SLOTLIST -> lastslot set to 9
21:54:42 Config info:
         firstslot = "1"
         lastslot = "9"
         cleanslot = "10"
         cleancycle = "120"
         offline_before_unload = "0"
         unloadpause = "0"
         autoclean = "0"
         autocleancount = "99"
         havereader = "1"
         driveslot = "0"
         poll_drive_ready = "30"
         initial_poll_delay = "0"
         max_drive_wait = "360"
21:54:42 SEARCH   -> Hunting for label "B0000003"
-> !!! label "B0000003" not found in /etc/amanda/DailySet1/changer-barcodes !!! -> Remove /etc/amanda/DailySet1/changer-barcodes and run "/usr/sbin/amtape DailySet1 update" 21:54:42 Exit (2) -> <none> B0000003: label "B0000003" not found in /etc/amanda/DailySet1/changer-barcodes
chg-zd-mtx: pid 3411 finish time Mon May 15 21:54:42 2006

So I followed instructions, deleting /etc/amanda/DailySet1/changer-barcodes, then tried running /usr/sbin/amtape DailySet1 update which informed me there was no such option "update". The amtape man page is apparently out of sync with the current release. Finding no information about the changer-barcodes file format, I copied the current tapelist to changer-barcodes which stopped the complaints about "Hunting for label "X".

amflush DailySet1 "A" and "ALL" both yield the same effect; the changer cycles through the tapes but never stops to write anything.

Finally the amflush report header reads as follows:

*** A TAPE ERROR OCCURRED: [No writable valid tape found].
Some dumps may have been left in the holding disk.
Run amflush again to flush them to tape.
The next 10 tapes Amanda expects to use are: B0000003, B0000004, B0000005, B0000006, B0000007, B0000008, B0000009, B0000010, C0000001, C0000002.

I've tweaked the changer.conf file to adjust the cleaning slot to -1 and will be giving that a try. Everything that should be set to UID/GID backup is set so, the tapes are functional, there have been no issues with the previous release.

Any ideas now?



--
Brad Willson, Sr. Computer Specialist
UW GeneTests, UW Box: 358735
EM: bwil150n AT u.washington DOT edu
W: 206.221.4674, C: 425.891.2732
http://www.genetests.org