> >> > Hm.....with "mtx -f /dev/sg7 slot first" i haven't problems. The tape
> >> > is changed. Also "mtx -f /dev/sg7 info" have no problems.
> >> But /dev/sg7 is not the tape device, it's the changer device.
> > correct, the tape device is /dev/sg6
> Huh?  This looks very much like the name of a changer device too.  Why
> do you think it's a tape device?

I think, the first scsi device is sg0, the second is sg1 etc.
i have from id0 - id4 scsi drives, id5 is a cd-rom drive, id 7 is the 
adaptec, id8 is the tape and id9 is the changer. So i think
id0 -> sg0
id1 -> sg1
id2 -> sg2
id3 -> sg3
id4 -> sg4
id5 -> sg5
id8 -> sg6
id9 -> sg7

is this correct?

Here the sg-devices from the system:

root@fileserver:/ > ls -l /dev/sg*
crw-------   1 root     disk      21,   0 Nov  8  1999 /dev/sg0
crw-------   1 root     disk      21,   1 Nov  8  1999 /dev/sg1
crw-------   1 root     disk      21,  10 Nov  8  1999 /dev/sg10
crw-------   1 root     disk      21,  11 Nov  8  1999 /dev/sg11
crw-------   1 root     disk      21,  12 Nov  8  1999 /dev/sg12
crw-------   1 root     disk      21,  13 Nov  8  1999 /dev/sg13
crw-------   1 root     disk      21,  14 Nov  8  1999 /dev/sg14
crw-------   1 root     disk      21,  15 Nov  8  1999 /dev/sg15
crw-------   1 amanda   disk      21,   2 Nov  8  1999 /dev/sg2
crw-------   1 amanda   disk      21,   3 Nov  8  1999 /dev/sg3
crw-------   1 amanda   disk      21,   4 Nov  8  1999 /dev/sg4
crw-r--r--   1 amanda   disk      21,   5 Apr 25 11:20 /dev/sg5
crw-r--r--   1 amanda   disk      21,   6 Apr 25 11:21 /dev/sg6
crw-r--r--   1 amanda   disk      21,   7 Apr 25 11:21 /dev/sg7
crwxrwxrwx   1 amanda   disk      21,   8 Nov  8  1999 /dev/sg8
crwxrwxrwx   1 amanda   disk      21,   9 Nov  8  1999 /dev/sg9
lrwxrwxrwx   1 root     root            3 Aug  4  2000 /dev/sga -> sg0
lrwxrwxrwx   1 root     root            3 Aug  4  2000 /dev/sgb -> sg1
lrwxrwxrwx   1 root     root            3 Aug  4  2000 /dev/sgc -> sg2
lrwxrwxrwx   1 root     root            3 Aug  4  2000 /dev/sgd -> sg3
root@fileserver:/ >               

here the result from mtx with sg6 and sg7

root@fileserver: > mtx -f /dev/sg6 status
mtx: Request Sense: 70 00 02 00 00 00 00 16 00 00 00 00 04 00 00 00 00 00 00 
00
mtx: READ ELEMENT STATUS Command Failed

root@fileserver: > mtx -f /dev/sg7 status
Data Transfer Element:  Full (Storage Element 7 Loaded)
Storage Element 1:      Full
Storage Element 2:      Full
Storage Element 3:      Full
Storage Element 4:      Full
Storage Element 5:      Full
Storage Element 6:      Full
Storage Element 7:      Empty
Storage Element 8:      Full
Storage Element 9:      Full
Storage Element 10:     Full
root@fileserver: >   

> > I don't understand that "mtx -f /dev/sg6 info" works fine.
> This probably talks to the tape changer, not to the tape drive.

Sorry, a bug from me, device /dev/sg7 works fine. You can see the resutl from 
"mtx -f /dev/sg7 status" and "mtx -f /dev/sg6 status"

I'm wondering for this:

root@fileserver:/ > mtx -f /dev/sg6 status
mtx: Request Sense: 70 00 02 00 00 00 00 16 00 00 00 00 04 00 00 00 00 00 00 
00
mtx: READ ELEMENT STATUS Command Failed

root@fileserver:/ > mtx -f /dev/nst0 status
mtx: Request Sense: 70 00 02 00 00 00 00 16 00 00 00 00 04 00 00 00 00 00 00 
00
mtx: READ ELEMENT STATUS Command Failed
root@fileserver:/ >  

Is /dev/sg6 and /dev/nst0 the same, eg. the tape?

> > And when i have loaded a tape manually and start "amcheck Daily", the
> > loaded tape was unloaded and than comes the error messages in
> > /tmp/amanda/*.debug It is an input-/output error.
> Looks like your tape changer configuration file is not properly set
> up.  Which changer program are you using?  How does its configuration
> file look like?

I'm using chg-scsi from /usr/local/libexec/chg-scsi
Here is the Config from chg-scsi named chg-scsi.conf

*** Begin Config ***
number_configs  1
eject                 0          # Tapedrives need an eject command
sleep                120       # Seconds to wait until the tape gets ready
cleanmax           50        # How many times could a cleaning tape get used
changerdev      /dev/sg7
 
#
# Next comes the data for drive 0
#
 
config            0
drivenum        0
dev               /dev/st0
scsitapedev   /dev/sg6
startuse         0              # The slots associated with the drive 0
enduse          9                                          #
statfile         /usr/local/etc/amanda/Daily/tape0-slot  # The file where the 
actual slot is stored

cleancart      10  # the slot where the cleaningcartridge for drive 0 is 
located

cleanfile       /usr/local/etc/amanda/Daily/tape0-clean # The file where the 
cleanings are recorded

usagecount      /usr/local/etc/amanda/Daily/totaltime
tapestatus      /usr/local/etc/amanda/Daily/tapestatus  # here will some 
status infos be stored

#labelfile      /usr/local/etc/amanda/Daily/labelfile   # Use this if you 
have an barcode reader            
*** End of Config ***

Bye Juergen
-- 
Dies ist eine Microsoft freie Mail!

Reply via email to