RE: Problem with changer
2006-05-10 04:33:22
Quoting Paul Haldane <Paul.Haldane AT newcastle.ac DOT uk>:
From: Ian Turner
Sent: 09 May 2006 16:54
On Tuesday 09 May 2006 11:06, Jon LaBadie wrote:
> > My autoloader is on /dev/st0 and tape are defined on /dev/nst0
>
> I don't think so.
> st0 and nst0 are the "same" device handled differenly on close.
The changer is probably on /dev/sg0 or /dev/sg1.
Yup - I would expect the device to use to talk to the changer to be
of the form /dev/sgN.
There's a pair of useful utilities that come as part of the mtx RPM
- loaderinfo and tapeinfo. If you use these with your sg devices it
will soon become clear which one is your changer. Even if you use
loaderinfo on a device which points at a tape drive) or even a disk
drive) it's pretty obvious what it is. Here's output from one of
my machines ...
# loaderinfo -f /dev/sg9
Product Type: Disk Drive
Vendor ID: 'COMPAQ '
Product ID: 'BD300884C2 '
Revision: 'HPB7'
Attached Changer: No
Bar Code Reader: No
EAAP: No
Transport Geometry Descriptor Page: No
Device Configuration Page: No
# loaderinfo -f /dev/sg10
Product Type: Medium Changer
Vendor ID: 'HP '
Product ID: 'MSL6000 Series '
Revision: '0423'
Attached Changer: No
Bar Code Reader: Yes
EAAP: Yes
Number of Medium Transport Elements: 1
Number of Storage Elements: 58
Number of Import/Export Element Elements: 2
Number of Data Transfer Elements: 2
Transport Geometry Descriptor Page: Yes
Invertable: No
Device Configuration Page: Yes
Can Transfer: Yes
# loaderinfo -f /dev/sg11
Product Type: Tape Drive
Vendor ID: 'HP '
Product ID: 'Ultrium 2-SCSI '
Revision: 'F43W'
Attached Changer: No
Bar Code Reader: No
EAAP: No
Transport Geometry Descriptor Page: No
Device Configuration Page: No
Paul
Hi evrybody
I have tried to do loader -f /dev/sg0 but :
cannot open SCSI device '/dev/.static/dev/sg0' - No such device or address
and i have seen that i have a /dev/.static/dev/sg0 and when i have try
with this device i had this message :
root@ubuntu:/# loaderinfo -f /dev/.static/dev/st0
Product Type: Tape Drive
Vendor ID: 'HP '
Product ID: 'C1557A '
Revision: 'U812'
Attached Changer: No
EAAP: Yes
Number of Medium Transport Elements: 0
Number of Storage Elements: 6
Number of Import/Export Element Elements: 0
Number of Data Transfer Elements: 1
Transport Geometry Descriptor Page: No
Device Configuration Page: Yes
Can Transfer: No
I since i have try to run amanda with /dev/.static/dev/sg0, /dev/sg0
has been created, thus i now use /dev/sg0 and i have another error
message :
amcheck-server: fatal slot 1: Unloading drive 0 into Storage Element
1...mtx: Request Sense: Long Report=yes
ERROR: new tape not found in rack
(expecting a new tape)
Have i a problem with amanda or with mtx ?
|
|
|