Hello,

I've used amanda before, but never with a changer.  I'm having some 
problems, some of which seem to be amanda-related and some of which seem to 
be changer-related.

Hardware:

Computer running linux
Overland DLT-LXG2016 Global Control Module - 16 tapes
Overland DLT-LXB7110 Base Module - 10 tapes, 1 drive

I can talk to both the changer (/dev/sg2) and the tape drive (/dev/nst0).

The basic config *seems* to work.  When I go to label a tape, though...  
Results are below.  I'd like to know why amlabel grabs the tape from the 
wrong slot.

[amanda@backup fam]$ mtx -f /dev/sg2 status
  Storage Changer /dev/sg2:1 Drives, 26 Slots ( 0 Import/Export )
Data Transfer Element 0:Empty
      Storage Element 1:Full :VolumeTag=PHH369                          
      Storage Element 2:Full :VolumeTag=PHH370                          
      Storage Element 3:Full :VolumeTag=PHH371                          
      Storage Element 4:Full :VolumeTag=PHH372                          
      Storage Element 5:Full :VolumeTag=PHH373                          
      Storage Element 6:Full :VolumeTag=PHH374                          
      Storage Element 7:Empty
      Storage Element 8:Empty
      Storage Element 9:Empty
      Storage Element 10:Empty
      Storage Element 11:Empty
      Storage Element 12:Empty
      Storage Element 13:Empty
      Storage Element 14:Empty
      Storage Element 15:Empty
      Storage Element 16:Empty
      Storage Element 17:Full :VolumeTag=PHH360                          
      Storage Element 18:Full :VolumeTag=PHH361                          
      Storage Element 19:Full :VolumeTag=PHH362                          
      Storage Element 20:Full :VolumeTag=PHH363                          
      Storage Element 21:Full :VolumeTag=PHH364                          
      Storage Element 22:Full :VolumeTag=PHH365                          
      Storage Element 23:Full :VolumeTag=PHH366                          
      Storage Element 24:Full :VolumeTag=PHH367                          
      Storage Element 25:Full :VolumeTag=PHH368                          
      Storage Element 26:Full :VolumeTag=CLN280                          
[amanda@backup fam]$ amlabel fam PHH630 slot 17
labeling tape in slot 17 (/dev/nst0):
rewinding
amlabel: tape_rewind: rewinding tape: /dev/nst0: Input/output error
[amanda@backup fam]$ mtx -f /dev/sg2 status
  Storage Changer /dev/sg2:1 Drives, 26 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 19 Loaded):VolumeTag = PHH362 

      Storage Element 1:Full :VolumeTag=PHH369                          
      Storage Element 2:Full :VolumeTag=PHH370                          
      Storage Element 3:Full :VolumeTag=PHH371                          
      Storage Element 4:Full :VolumeTag=PHH372                          
      Storage Element 5:Full :VolumeTag=PHH373                          
      Storage Element 6:Full :VolumeTag=PHH374                          
      Storage Element 7:Empty
      Storage Element 8:Empty
      Storage Element 9:Empty
      Storage Element 10:Empty
      Storage Element 11:Empty
      Storage Element 12:Empty
      Storage Element 13:Empty
      Storage Element 14:Empty
      Storage Element 15:Empty
      Storage Element 16:Empty
      Storage Element 17:Full :VolumeTag=PHH360                          
      Storage Element 18:Full :VolumeTag=PHH361                          
      Storage Element 19:Empty
      Storage Element 20:Full :VolumeTag=PHH363                          
      Storage Element 21:Full :VolumeTag=PHH364                          
      Storage Element 22:Full :VolumeTag=PHH365                          
      Storage Element 23:Full :VolumeTag=PHH366                          
      Storage Element 24:Full :VolumeTag=PHH367                          
      Storage Element 25:Full :VolumeTag=PHH368                          
      Storage Element 26:Full :VolumeTag=CLN280                          
[amanda@backup fam]$ 

>From amanda.conf:
tpchanger      "chg-scsi"
tapedev         "0"
changerfile    "/usr/etc/amanda/fam/changer.conf"
changerdev     "/dev/sg2"

>From changer.conf:
number_configs          1
eject                   0
sleep                   5
cleanmax                20
changerdev              /dev/sg2
startuse                1
enduse                  26
cleancart               26
statfile                /var/lib/amanda/fam/statfile
cleanfile               /var/lib/amanda/fam/cleanfile
usagecount              /var/lib/amanda/fam/usagecount

config                  0
drivenum                0
dev                     /dev/nst0
~


Reply via email to