Re: please help - autoloader problem !
2004-08-17 09:22:13
* Ernest Byaruhanga <ernest AT afrinic DOT org> [20040817 09:11]:
> hello,
>
> On Tue, 17 Aug 2004, Christoph Scheeder wrote:
>
> > Hi
> > you definitly use the wrong wrapperscript for your changer.
>
> okay, i have now changed the script from chg-multi to chg-zd-mtx. does
> anyone have a sample config file for this script for an autoloader? please
> help post it to me!
>
> the current error i get is :
>
> [ernest@oshe root]$ amtape oshe show
> amtape: could not get changer info: cannot determine first slot
>
> there is no sample i can use at the moment. please excuse me all for the
> newbie questions!
Here's what I have. Modify to suit your environment:
---
amanda.conf
tpchanger "chg-zd-mtx"
tapedev "/hw/tape/tps12d2nrnsv"
changerfile "/opt/amanda/amanda2/etc/amanda/stk_40-conf2/stk_40"
changerdev "/dev/changer"
---
/opt/amanda/amanda2/etc/amanda/stk_40-conf2/stk_40.conf
firstslot=11 #### First storage slot (element) -- required
lastslot=20 #### Last storage slot (element) -- required
cleanslot=-1 #### Slot with cleaner tape -- default is "-1"
#### Set negative to indicate no cleaner available
autoclean=0 #### Set to '1' or greater to enable
autocleancount=99 #### Number of access before a clean.
havereader=1 #### If you have a barcode reader, set to 1.
offline_before_unload=1 #### Does your robot require an
#### 'mt offline' before mtx unload?
driveslot=1 #### Drive slot number. Defaults to the
#### tape device number (e.g. /dev/nst0 is
#### assumed to be robot drive 0).
poll_drive_ready=3 #### Time (seconds) between tests to see if
#### the tape drive has gone ready (default: 3).
max_drive_wait=120 #### Maximum time (seconds) to wait for the
#### tape drive to become ready (default: 120).
That sets up the second drive (driveslot=1) coreesponding to the tape
device /hw/tape/tps12d2nrnsv using the slots 11-20 in the library.
Note that the extension '.conf' is not to be specified in amanda.conf
for the changerfile.
HTH,
jf
>
> thanks,
>
> ernest.
>
>
> > chg-multi is designed to take multiple tape-drives to glue them together
> > to look like a virtual changer-device.
> > for example you have 5 identical tapedrives and want them to look like a
> > 5-slot tape-changer. then you use chg-multi.
> >
> > what you want to use is one of the other wrappers like chg-scsi, chg-mtx
> > etc.
> > Depends on what tool you use to move your changer by hand.
> > Christoph
> >
> > Ernest Byaruhanga schrieb:
> >
> > > hello Amanda Users,
> > >
> > > I an having a problem with my Dell PowerVault Autoloader: amtape shows me
> > > that all slots are empty, yet 2 of the slots are loaded with tapes!
> > >
> > > see below:
> > >
> > > [ernest@oshe log]$ amtape oshe show
> > > amtape: scanning all 8 slots in tape-changer rack:
> > > slot 8: chg-multi: slot is empty
> > > slot 1: chg-multi: slot is empty
> > > slot 2: chg-multi: slot is empty
> > > slot 3: chg-multi: slot is empty
> > > slot 4: chg-multi: slot is empty
> > > slot 5: chg-multi: slot is empty
> > > slot 6: chg-multi: slot is empty
> > > slot 7: chg-multi: slot is empty
> > > [ernest@oshe log]$
> > >
> > > the chg-multi.conf shows the following:
> > >
> > > #************************************************
> > >
> > > [...]
> > >
> > > multieject 0
> > >
> > > gravity 0
> > >
> > > needeject 0
> > >
> > > ejectdelay 0
> > >
> > > statefile /usr/local/etc/amanda/changer-status
> > >
> > > firstslot 1
> > > lastslot 8
> > > driveslot 0
> > >
> > > slot 1 /dev/st1
> > > slot 2 /dev/st2
> > > slot 3 /dev/st3
> > > slot 4 /dev/st4
> > > slot 5 /dev/st5
> > > slot 6 /dev/st6
> > > slot 7 /dev/st7
> > > slot 8 /dev/st8
> > > #************************************************
> > >
> > > where am i going wrong? first, the system sees the tape as /dev/st . is
> > > the
> > > slot device numbering then correct? also, the autoloader is seen as
> > > /dev/sg2. additionally, the mtx command tells me the right info, please
> > > see
> > > below:
> > >
> > > [ernest@oshe log]$ mtx -f /dev/sg2 status
> > > Storage Changer /dev/sg2:1 Drives, 8 Slots ( 0 Import/Export )
> > > Data Transfer Element 0:Full (Storage Element 1 Loaded)
> > > Storage Element 1:Empty
> > > Storage Element 2:Full
> > > Storage Element 3:Empty
> > > Storage Element 4:Empty
> > > Storage Element 5:Empty
> > > Storage Element 6:Empty
> > > Storage Element 7:Empty
> > > Storage Element 8:Empty
> > > [ernest@oshe log]$
> > >
> > > what is wrong? please help! all help will be greatly appreciated.
> > >
> > > ernesto.
> > >
> >
--
Abashed the Devil stood,
And felt how awful goodness is - John Milton, 'Paradise Lost'
|
|
|