SCSI Tape/Library Problem
Andrew Mathews
andrew_mathews
Mon May 17 11:43:10 PDT 2004
Brett I. Holcomb wrote:
> On Tue, 14 Jan 2003 10:29:05 -0700
> Andrew Mathews <andrew_mathews at linux-works.org> wrote:
>
> This is a devfs system and st does not exist. If I trace the /proc/scsi/scsi output back using the host luns and targets it goes to sg1. devfs sees it as sg.
>
> The tape is id 0 on the card, the changer id 1 according to the card's output when it boots and that matches the scsi output (host 1, id 0 and 1).
>
> lr-xr-xr-x 1 root root 36 Jan 14 10:01 /dev/sg1 -> scsi/host1/bus0/target0/lun0/generic
>
> /dev/sg:
> total 0
> lr-xr-xr-x 1 root root 39 Jan 14 10:01 c0b0t0u0 -> ../scsi/host0/bus0/target0/lun0/generic
> lr-xr-xr-x 1 root root 39 Jan 14 10:01 c1b0t0u0 -> ../scsi/host1/bus0/target0/lun0/generic
> lr-xr-xr-x 1 root root 39 Jan 14 10:01 c1b0t1u0 -> ../scsi/host1/bus0/target1/lun0/generic
> lr-xr-xr-x 1 root root 39 Jan 14 10:01 c1b0t4u0 -> ../scsi/host1/bus0/target4/lun0/generic
>
>
<snip>
Well, while I don't know about devfs, I do know that the changer and the
drive are not the same device name. How could you tell the changer
device to rewind, or the drive to move the tape to a different slot?
There *has* to be a device name for the drive, even if it's sg1, sg2,
etc. A changer does not use the same commands as a drive, or vice versa,
and sg* is the standard device naming convention for a changer.
--
Andrew Mathews
---------------------------------------------------------------------
11:53am up 16 days, 14:51, 9 users, load average: 1.08, 1.11, 1.17
---------------------------------------------------------------------
A team effort is a lot of people doing what I say.
-- Michael Winner, British film director
More information about the Linux-users
mailing list