Amanda-Users

Re: Problem with chg-scsi on linux

2003-09-25 04:51:10
Subject: Re: Problem with chg-scsi on linux
From: Franz Regensburger <Franz.Regensburger AT siemens DOT com>
To: amanda users <amanda-users AT amanda DOT org>
Date: Thu, 25 Sep 2003 10:45:38 +0200
Hello Joshua,

Joshua Baker-LePain wrote:
> 
> On Wed, 24 Sep 2003 at 7:21pm, Franz Regensburger wrote
> 
> > st1 (nst1) for the scsi tape drive (QUANTUM DLT8000)
> > sg1 for the tape changer. (ATL M2500; this is emulated by the SUN
> > changer)
> >
> > What I do NOT get is a generic scsi device sg? for the scsi tape.
> 
> Actually, you do (it just isn't noted in the message log.  Look at the
> output of 'cat /proc/scsi/scsi'.  The first device in there corresponds to
> sg0, the next to sg1, etc.
> 

Thanks a lot for your reply!
You are right, I actualy have a generic scsi device for my tape drive.
It is /dev/sg2
The interaction between tape changer and tape access commands works.
E.g.
        amtape Robot label Robot-02

works without any access violations.
However, it takes very long to change tapes (see below)

>From my debug file in /tmp/amanda:

chg-scsi: debug 1 pid 700 ruid 37 euid 37 start time Wed Sep 24 23:15:45
2003
ARG [0] : chg-scsi
ARG [1] : -slot
ARG [2] : 0
Number of configurations: 1
....
Tapeconfig Nr: 0
  Drivenumber   : 0
  Startslot     : 0
  Endslot       : 20
  Cleanslot     : 20
  Devicename    : /dev/nst1
  changerident  : generic
  SCSITapedev   : /dev/sg2
  tapeident     : generic
...
##### START OpenDevice
OpenDevice : /dev/sg2
SCSI_OpenDevice : use SG interface
SCSI_OpenDevice : current timeout 6000
SCSI_OpenDevice : timeout set to 60000
##### START SCSI_Inquiry
SCSI_Inquiry start length = 56:
##### START DecodeSCSI
SCSI_ExecuteCommand :  INQUIRY 12 00 00 00 38 00
##### STOP DecodeSCSI
01 80 02 02 33 00 00 38 51 55 41 4E 54 55 4D 20    ....3..8QUANTUM.
44 4C 54 38 30 30 30 20 20 20 20 20 20 20 20 20    DLT8000.........
30 32 35 30 81 50 00 05 22 0F 01 00 13 9C 13 00    0250.P..........
00 00 00 02 43 30 30 33
SCSI_Inquiry : end 0
...

Great!
The command 'chg-scsi -slot 0' now works and the command only returns
after the tape is realy changed

However (these guys are never satisfied), changing tapes takes some time
(1-2 minutes).
The reasons seems to be the 'GenericRewind' that is performed with
'every' slot change.
Even if I change from slot 0 to 1 and back I always have to wait a long
time for the rewind to finish.

##### STOP DecodeSCSI
GenericRewind : Ready after 74 sec, true = 0
##### START SCSI_TestUnitReady

Is it OK that the tape rewind takes so long, even if I change tapes back
and forth?
Since I never used a changer before I have no idea how long a tape
change is supposed to last.

Is there a 'tape forward' after every tape insert such that the tape
rewind is realy needed and takes so long before the tape can be ejected?

Do I still have to adjust some parameters in order to speed up the tape
change operations?

Thanx for replies

Franz

-- 
 Dr. Franz Regensburger, Siemens AG, ICM N PG C E A 4
 Tel.: +49 89 722-55468, +49 89 58999675, +49 175 7243 260 
 Fax.: +49 89 722-58726
 E-Mail: Franz.Regensburger AT siemens DOT com

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