Hi,

09.07.2007 21:01,, Richard White wrote::
>>>> On 7/9/2007 at 11:32 AM, in message
> <[EMAIL PROTECTED]>,
> "John Drescher" <[EMAIL PROTECTED]> wrote:
>> Are you 100% sure that  /dev/sg0 is your changer?
>> 
>> 
>> You can use the tapeinfo command to check that. Here is my
>> Exabyte224
>> 
>> # tapeinfo -f /dev/sg5 Product Type: Medium Changer Vendor ID:
>> 'EXABYTE ' Product ID: 'MAGNUM 224      ' Revision: 'C112' 
>> Attached Changer: No SerialNumber: '000089000435' SCSI ID: 3 SCSI
>> LUN: 1 Ready: yes
> 
> You are right! /dev/sg0 yields some ATA nonsense, but /dev/sg1
> tells me it is an Exabyte 1x10 1u. I will give it another try.
> 
> FWIW, I am making some assumptions about the identity of the tape
> drive in there. tapeinfo -f /dev/st0 or /dev/nst0 shows nothing and
> requires CTL-C to relinquish the command prompt. /dev/st1 gives an
> error.
> 
> The mtx-changer command works, as does the label barcode command.
> WooHoo! I get to keep my miserable job.
> 
> Thanks.
> 
> Does the OS -- and, by extension, Bacula -- associate the device
> names with the SCSI ID number? E.g., if the tape drive is ID 0, it
> will be /dev/st0, and if the changer is ID 1, the device will be
> /dev/sg1?

No, usually not. The [n]stx-devices are just numbered in the order 
they are found.

There are means to get static names related to the controller number, 
bus number, id and lun, but that's not common for a linux system.

Arno

-- 
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to