Questions re: the chg-scsi documentation

2005-08-13 Thread Marcus
I was going through those pages a bit this morning and
had a few questions..;

Firstly, at the Configuration Notes it says I should
be able to get the changer value with modprobe sg.
That command returns nothing; which doesn't seem
right? But if I do a modprobe sg -l then I get:
/lib/modules/2.6.8-24-default/kernel/drivers/scsi/sg.ko
So have I got the right module loaded for sg devices?

Secondly, what does -status do? what is the param you
have to pass it?

Thirdly, around the changerident section, it lists
Faststor DLT which is what I run. It's listed as an
other value. Does that mean chg-scsi supports my
drive w/o the changerident argument? Whenever I try to
add it, chg-scsi just gets cross at me.

Thanks for any help. I'm getting so close to this tape
drive working that I'm almost sick; chg-scsi will now
pick a tape and load it! :} But it still segfaults on
-scan, and it will eject the tape but doesn't know
how to unload it (I have to follow up with mtx -f
/dev/sg1 unload)


Good weekend to everyone..!


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Does Attached Changer matter in mtx inquiry?

2005-08-13 Thread Marcus
Here's what I get

[EMAIL PROTECTED]:~ sudo /usr/sbin/mtx -f /dev/sg0 inquiry
Product Type: Tape Drive
Vendor ID: 'QUANTUM '
Product ID: 'DLT8000 '
Revision: '0232'
Attached Changer: No
[EMAIL PROTECTED]:~ sudo /usr/sbin/mtx -f /dev/sg1 inquiry
Product Type: Medium Changer
Vendor ID: 'ADIC'
Product ID: 'FastStor DLT'
Revision: '0119'
Attached Changer: No
[EMAIL PROTECTED]:~

Does it matter to chg-scsi that it says 'no changer'
like that? Thanks for any help.




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


Re: Does Attached Changer matter in mtx inquiry?

2005-08-13 Thread Michael Loftis
No.  Attached Changer in this context I believe means SCSI 
attachment...something very different from physical attachment.  In any 
case I've only seen one changer that reported as attached.  And IIRC it 
definitely had ot do with it's SCSI bus behaviour.


So it's not saying no changer...it's saying it behaves in such and such a 
way when SCSI commands are sent to it (it detaches from the SCSI bus)


Re: Tape drive device files

2005-08-13 Thread Glenn English
On Tue, 2005-08-09 at 11:14 -0400, Matt Hyclak wrote:
 On Tue, Aug 09, 2005 at 10:51:51AM -0400, LaValley, Brian E enlightened us:
  Can someone point me to a good educational site for /dev information?  I
  have attached a tape drive to my machine, but I can't find the special
  files. I know it should be nst* but they don't exist.  Do they have to be
  created manually?
  
 
 You will probably want to let us know what OS/Distro you're running to give
 us a better idea where to point you.

Since you're looking for /dev/nst*, I'm going to assume you're Linux,
like I am. If not, ignore the following at give the list more info, as
Matt suggests.

And not only Linux, but one with udev or equiv.

They aren't created manually. If your kernel is compiled with mag tape
support (most are, AFAIK) and if the module is loaded (mt, I think) and
if your tape drive is one Linux supports (every SCSI I've tried and at
least one USB, in my experience) and if the drive is connected properly,
the kernel will find it at boot and udev will
create /dev/st0, /dev/nst0, etc.

I assume you're running udev because otherwise the device files would
very likely be there, but any attempt to use them will result in an
error.

Is there a man mt? If not, that's an indication that the system doesn't
support tape -- it didn't install the magtape control program.

-- 
Glenn English
[EMAIL PROTECTED]


Re: Does Attached Changer matter in mtx inquiry?

2005-08-13 Thread Gene Heskett
On Saturday 13 August 2005 16:29, Marcus wrote:
Here's what I get

[EMAIL PROTECTED]:~ sudo /usr/sbin/mtx -f /dev/sg0 inquiry
Product Type: Tape Drive
Vendor ID: 'QUANTUM '
Product ID: 'DLT8000 '
Revision: '0232'
Attached Changer: No
[EMAIL PROTECTED]:~ sudo /usr/sbin/mtx -f /dev/sg1 inquiry
Product Type: Medium Changer
Vendor ID: 'ADIC'
Product ID: 'FastStor DLT'
Revision: '0119'
Attached Changer: No
[EMAIL PROTECTED]:~

Does it matter to chg-scsi that it says 'no changer'
like that? Thanks for any help.

I don't believe so.  I think, but could be wrong, that when mtx
reports an attached changer, it may be at other than the base LUN=0.
If the devices are seperated by their device address on the scsi bus,
as opposed to being at the same address but a different LUN, with
the latter being where mtx picks up on the Attached changer
bits.

But, don't take my word for it, go study the manpages for mtx for the
final word.

-- 
Cheers, Gene
There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order.
-Ed Howdershelt (Author)
99.35% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2005 by Maurice Eugene Heskett, all rights reserved.



RE: Questions re: the chg-scsi documentation

2005-08-13 Thread Scott R. Burns
I had the core dump problem with chg-scsi as well. I am on NetBSD/i386
V2.0.2. I did a couple of things, of the two I am not sure if both were
required but:

I am running a HP SureStore DAT24x6 changer.

The first was:

I set my changerident to: C1553A. (The closest value defined in chg-scsi
to my changer/drive).
I see FastStor DLT is defined. Have you tried that in your chg-scsi.conf ?

I looked through changer-src\sense.c and I see the following special entries
for changers.

ADIC DAT AutoChanger
L500 ATL
HP 1553A
HP 1537A
Tandberg TDS 1420
DLT8000
DLT7000
AIT VLS DLT Library
AIT VLS SDX Library
Exabyte 85058
Exabyte 10e Library
Exabyte 210 Library
Exabyte 230D Library
Spectra Treefrog Library

It would appear that the sense.c structure is defining inquiry results and
defining how to interpret them.
Your changer may require some entries in there.


Here is the chg-scsi.conf that I use that works for me on my HP changer. My
changer device on NetBSD
is /dev/ch0. dev /dev/nrst0 is my no-rewind tape drive device,
scsitapedev /dev/rst0 I added
so that my tapestatus /usr/pkg/etc/amanda/st0-status file gets update with
error status values
after a run. My changer did not seem to require the eject value to be set
so I left it at 0.

scsitapedev may also be key as I think it changes how it talks to the
drive/changer.

With debug 9:0 I get lots of detail in chg-scsi* files I find in
/tmp/amanda.

number_configs  1
eject   0   # Tapedrives need an eject command
sleep   5   # Seconds to wait until the tape gets ready
cleanmax50  # How many times could a cleaning tape get used

changeridentC1553A
changerdev  /dev/ch0
debug   9:0
#
# Next comes the data for drive 0
#
config  0
drivenum0
dev /dev/nrst0  # the device that is used for the tapedrive 0
scsitapedev /dev/rst0
startuse0   # The slots associated with the drive 0
enduse  4   #
statfile/usr/pkg/etc/amanda/st0-slot  # The file where the actual slot 
is
stored
cleancart   5   # the slot where the cleaningcartridge for drive 0 is 
located
cleanfile   /usr/pkg/etc/amanda/st0-clean # The file where the cleanings are
recorded
usagecount  /usr/pkg/etc/amanda/totaltime
tapestatus  /usr/pkg/etc/amanda/st0-status

# This is the end


There is a command documented as: chg-scsi -genconf. What does that do in
your case ? I have never tried it
on my machine.


Can you make some of those available after performing some of the commands
that work and ones that don't ?

Under chgscsi.txt in the docs directory of 2.4.5 there are lots of notes on
chg-scsi.

Scott...




Scott R. Burns
NETCON Technologies Inc.
Suite 135 - 4474 Blakie Road
London, Ontario, Canada
N6L 1G7
Voice: +1.519.652.0401
Fax: +1.519.652.9275


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Marcus
Sent: Saturday, August 13, 2005 2:34 PM
To: amanda-users@amanda.org
Subject: Questions re: the chg-scsi documentation


I was going through those pages a bit this morning and
had a few questions..;

Firstly, at the Configuration Notes it says I should
be able to get the changer value with modprobe sg.
That command returns nothing; which doesn't seem
right? But if I do a modprobe sg -l then I get:
/lib/modules/2.6.8-24-default/kernel/drivers/scsi/sg.ko
So have I got the right module loaded for sg devices?

Secondly, what does -status do? what is the param you
have to pass it?

Thirdly, around the changerident section, it lists
Faststor DLT which is what I run. It's listed as an
other value. Does that mean chg-scsi supports my
drive w/o the changerident argument? Whenever I try to
add it, chg-scsi just gets cross at me.

Thanks for any help. I'm getting so close to this tape
drive working that I'm almost sick; chg-scsi will now
pick a tape and load it! :} But it still segfaults on
-scan, and it will eject the tape but doesn't know
how to unload it (I have to follow up with mtx -f
/dev/sg1 unload)


Good weekend to everyone..!


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com