Hi John!

> See above.  Mtx "status" sends changer SCSI commands to a device (although
> "info" is a generic command all devices support).  So you can't use mtx
> to talk to the tape drive except with some specific commands -- "status"
> isn't one of them, "info" probably is.

OK, i understand.

> >Is /dev/sg6 and /dev/nst0 the same, eg. the tape?
> They might end up talking to the same physical device, but you cannot
> use mtx (in general) to talk to /dev/nst0 and you cannot use mt to talk
> to /dev/sg6.  Mt sends the tape driver ioctl's to do generic types of
> things (e.g. "rewind").  The driver translates those to the appropriate
> tape (SCSI, in this case) commands.  Amanda (other than chg-scsi) needs
> a real tape device it can issue mt-like ioctl's to.  So you've got to
> get /dev/nst0 fixed.
>
> Chg-scsi can issue raw SCSI commands to a device and bypass the st driver,
> which is why you give it the sg* names.  So with Amanda and chg-scsi,
> you need both to work properly.

OK, i think it's present, because amanda works fine bevor i installed a new 
hard disk. 

> Put another way, the /dev/nst0 driver is at one level between an
> application and the tape device, the /dev/sg* driver is at the next
> level "down" (closer to the device):
>
>   Application (e.g. mt or Amanda, other than chg-scsi)
>   st driver
>   sg driver
>   physical device

When i understand you, than is the application coressponding with the st 
driver, the st driver is coressponding with the sg driver and the sg driver 
is coressponding with the physical device. 

> You said:
> >as user amanda and as user root after typing "mt-f /dev/nst0 rewind" this
> >error message is displayed:
> >mt: /dev/nst0: Input-/output error
> >...
> >I think the device /dev/nst0 is demaged.
> I agree that your /dev/nst0 entry might be wrong.  It's probably still
> telling the tape driver to talk to SCSI ID 5, which is why it hung --

Hm...the tape haven't and hasn't SCSI ID 5, that's the CD-ROM.
First, ID 0, ID1, ID 2, ID 4 are hard drives, ID 5 is the CD-ROM, ID 8 is the 
tape device and ID 9 is the Changer device. ID 7 is the adaptec.
Now, i installed a new hard drive with ID 3 in the system, and from this 
moment amanda can't change the tapes.

> disk drives don't like to be told to rewind :-).  I don't know how

:-)

> you tell Linux to regenerate /dev entries.  Maybe if you just remove
> (or rename would be safer) it, it will come back on the next reboot?

No, i have removed the device /dev/nst0 and rebooted the system, but this 
device isn't come back, so that i must create it from hand.

I made this with "mknod /dev/nst0 c 9 128 but it don't work :-(

Bye Juergen

---
It's friday!

Reply via email to