Re: chg-scsi linu
2002-12-17 14:09:22
Allright,
This is my /proc/scsi/scsi:
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ADAPTEC Model: RAID-5 Rev: 320R
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 00
Vendor: ADIC Model: FastStor DLT Rev: 0118
Type: Medium Changer ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 04 Lun: 00
Vendor: QUANTUM Model: DLT7000 Rev: 3213
Type: Sequential-Access ANSI SCSI revision: 02
So my changer is /dev/sg1 and the tapedev /dev/sg2.
if I run:
bash-2.05a$ /usr/lib/amanda/chg-scsi -info
0 5 1 0
bash-2.05a$
looks good, eh?
but if I run:
bash-2.05a$ amcheck DailySet1
Amanda Tape Server Host Check
-----------------------------
Holding disk /home/amanda: 26482476 KB disk space available, that's
plenty
amcheck-server: fatal slot <error>: <error> could not read result from
"/usr/lib/amanda/chg-scsi" (got signal 11)
ERROR: new tape not found in rack
(expecting a new tape)
NOTE: skipping tape-writable test
The amanda.conf file reads:
runtapes 1 # number of tapes to be used in a single run of
amdump
tpchanger "chg-scsi" # the tape-changer glue script
tapedev "0" # the no-rewind tape device to be used
changerfile "/etc/amanda/DailySet1/chg-scsi.conf"
And the chg-scsi.conf fiel reads:
number_configs 1
eject 0 # Tapedrives need an eject command
sleep 90 # Seconds to wait until the tape gets ready
cleanmax 100 # How many times could a cleaning tape get used
changerdev /dev/sg1
#
# Next comes the data for drive 0
#
config 0
drivenum 0
dev /dev/nst0
scsitapedev /dev/sg2
startuse 0 # The slots associated with the drive 0
enduse 4 #
statfile /etc/amanda/DailySet1/tape0-slot # The file where the
actual slot is stored
cleancart 5 # the slot where the cleaningcartridge for drive
0 is located
cleanfile /etc/amanda/DailySet1/tape0-clean # The file where the
cleanings are recorded
usagecount /etc/amanda/DailySet1/totaltime
tapestatus /etc/amanda/DailySet1/tapestatus # here will some status
infos be stored
#labelfile /etc/amanda/DailySet1/labelfile # Use this if you have
an barcode reader
So it seems to find the changer but can't use it?????????????
cheers
Axel
On Tue, 2002-12-17 at 18:55, Aaron Brown wrote:
> /proc/scsi/scsi lists the devices in order starting with /dev/sga.
>
> For example, my medium changer is on /dev/sgc:
>
> aaron@machine:~$ cat /proc/scsi/scsi
> Attached devices:
> Host: scsi1 Channel: 00 Id: 13 Lun: 00
> Vendor: QUANTUM Model: DLT8000 Rev: 0114
> Type: Sequential-Access ANSI SCSI revision: 02
> Host: scsi2 Channel: 00 Id: 00 Lun: 00
> Vendor: QUANTUM Model: ATLAS 10K 18WLS Rev: UCP2
> Type: Direct-Access ANSI SCSI revision: 03
> Host: scsi2 Channel: 00 Id: 05 Lun: 00
> Vendor: HP Model: C7200-8000 Rev: 1520
> Type: Medium Changer ANSI SCSI revision: 03
> Host: scsi2 Channel: 00 Id: 12 Lun: 00
> Vendor: QUANTUM Model: DLT8000 Rev: 0114
> Type: Sequential-Access ANSI SCSI revision: 02
> Host: scsi3 Channel: 00 Id: 11 Lun: 00
> Vendor: QUANTUM Model: DLT8000 Rev: 0114
> Type: Sequential-Access ANSI SCSI revision: 02
>
> This changer expects tapedev to be a number that matches
> a config line in your "changer.conf". I had lots of problems
> with generic scsi support in older kernels, but that mostly
> had to do with my changer. I finally got things working with
> a 2.4.20-ac1 kernel.
>
> The docs directory contains a file called chg-scsi.notes. (at
> least the one that currently in CVS). It helped me more than
> some.
>
> Best of luck,
> --Aaron
>
> On 17 Dec 2002, Axel Haenssen wrote:
>
> > Hi Guys,
> > I am having a hard time configuring my chg-scsi.conf file. I am running
> > amanda-2.4.2-2-7 on Redhat 7.3 with an ADIC FastStor DLT7000 connected
> > to an adaptec raid card 2100S.
> > How do I find out with /dev/sgX settings to use in the chg-scsi.conf
> > file??
> > Thanks
> > Axel
> >
> >
> >
--
Axel Haenssen
Department of Ecology & Evolutionary Biology
Princeton University
Princeton, NJ 08540
USA
phone: +1-609-258-6999
email: axel AT princeton DOT edu
find my public key at:
www.princeton.edu/~axel
|
|
|