Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Sep 2008 17:24:15 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Jason Selwitz <jselwitz@vvisions.com>
Cc:        freebsd-scsi@freebsd.org
Subject:   Re: scsi errors when trying to move tapes.
Message-ID:  <20080916222415.GA66380@dan.emsphone.com>
In-Reply-To: <48CFC480.804@vvisions.com>
References:  <48CFC480.804@vvisions.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Sep 16), Jason Selwitz said:
> For some reason I can query status  and get Barcode information back from the changer with both chio and mtx however when I try to move media into the drive I get errors see below.
> 
> valbbacula# camcontrol devlist
> <IBM ULTRIUM-TD4 77BB>             at scbus0 target 0 lun 0 (sa0,pass0)
> <SPECTRA PYTHON 2000>              at scbus0 target 0 lun 1 (ch0,pass1)
> 
> vvalbbacula# chio params
> /dev/ch0: 50 slots, 1 drive, 1 picker
> /dev/ch0: current picker: 0
> 
> vvalbbacula# chio status -a
> picker 0:  sense: <0x00/0x00> voltag: <:0> avoltag: <:0> source: <> intaddr: <1> scsi: <?:?>
> slot 0: <ACCESS,FULL> sense: <0x00/0x00> voltag: <027734L4:8224> avoltag: <:0> source: <> intaddr: <4096> scsi: <?:?>
[...]
> slot 49: <ACCESS,FULL> sense: <0x00/0x00> voltag: <029135L4:8224> avoltag: <:0> source: <> intaddr: <4145> scsi: <?:?>
> drive 0: <ACCESS> sense: <0x00/0x00> voltag: <:0> avoltag: <:0> source: <> intaddr: <256> scsi: <?:?>
> 
> vvalbbacula# chio move slot 0 drive 0
> chio: /dev/ch0: CHIOMOVE: Device not configured
> 
> vvalbbacula# tail /var/log/messages
> Sep 16 10:11:10 vvalbbacula kernel: (ch0:isp0:0:0:1): MOVE MEDIUM. CDB: a5 0 0 1 10 0 1 0 0 0 0 0 
> Sep 16 10:11:10 vvalbbacula kernel: (ch0:isp0:0:0:1): CAM Status: SCSI Status Error
> Sep 16 10:11:10 vvalbbacula kernel: (ch0:isp0:0:0:1): SCSI Status: Check Condition
> Sep 16 10:11:10 vvalbbacula kernel: (ch0:isp0:0:0:1): ILLEGAL REQUEST asc:25,0
> Sep 16 10:11:10 vvalbbacula kernel: (ch0:isp0:0:0:1): Logical unit not supported
> Sep 16 10:11:10 vvalbbacula kernel: (ch0:isp0:0:0:1): Unretryable error

Depending on how smart the changer is, you may have to split that move
into two:

move slot 0 picker 0
move picker 0 drive 0

SCSI Mode page 1F has a table of bits that tell you what source and
destinations are allowed in a MOVE MEDIUM command.  If you have a T-50
loader, then according to 

http://www.spectralogic.com/index.cfm?fuseaction=home.displayFile&DocID=286

, the ST->DT bit should be set to 1, so your original command should
have worked.  The ->MT bits are all zero, though, as if there really
isn't a picker at all, so my suggestion to split the command may not
work, either.

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080916222415.GA66380>