Amanda-Users

Re: First time Changer user

2003-02-06 13:06:34
Subject: Re: First time Changer user
From: "David Flood" <dpf AT scms.rgu.ac DOT uk>
To: Jon LaBadie <jon AT jgcomp DOT com>
Date: Thu, 06 Feb 2003 17:25:02 -0000
On 5 Feb 2003 at 14:20, Jon LaBadie wrote:

> On Wed, Feb 05, 2003 at 06:06:33PM -0000, David Flood wrote:
> > We have had a tape changer running with amanda for a while but it was just 
> > being used 
> > as the a single drive and the data is starting to exceed the size of the 
> > tape.(DLT40 - 
> > 80G compressed)
> > 
> > I'm starting to look into utilizing the functionality of the changer. I've 
> > looked at the docs 
> > and have the impression that all I have to do is specify the chg-scsi in 
> > the amanda.conf 
> > and set-up the chg-scsi.conf. Here are examples of the part of amanda.conf 
> > and 
> > chg-scsi.conf.
> > 
> > amanda.conf:
> > tpchanger "chg-scsi"  # the tape-changer glue script
> > tapedev "0"   # the no-rewind tape device to be used
> > changerfile "/opt/amanda/etc/amanda/homes/chg-scsi.conf"
> > 
> > chg-scsi.conf:
> > number_configs      1
> > eject         0       
> > sleep         60  
> > cleanmax      10
> > changerdev    /dev/rsst4
> > #
> > # Next comes the data for drive 0
> > #
> > config                0
> > drivenum      0
> > dev           /dev/rmt/0bn    
> > startuse      0       
> > enduse                4
> > statfile      /opt/amanda/etc/amanda/homes/tape0-slot  
> > cleancart     5       
> > cleanfile     /opt/amanda/etc/amanda/homes/tape0-clean 
> > agecount        /opt/amanda/etc/amanda/homes/totaltimef
> > tapestatus      /opt/amanda/etc/amanda/homes/tape0-status
> > 
> > 
> > I think I understand the contents of this file but I don't know what to put 
> > for the 
> > changerdev file. Up till now I've been using /dev/rmt/0 for backing up to a 
> > single tape so 
> > how do I find what this value should be for my changer.(/dev/rsst4 does not 
> > exist)
> > 
> > Also when I've got the changer working how do the tape numbers work? If a 
> > night's 
> > backup tape starts on homes02 and spreads 2 tapes will amanda understand 
> > it's 
> > spread over homes02 and homes03? If so how does this affect restores?
> 
> David,
> gotta learn to mention amanda version and OS type.  They may affect the 
> replies.
> 
> Seems to be Solaris you are using (a /opt and /dev/rmt).
> 
> My changer, when installed according to HP's very good and specific 
> directions,
> resulted in two separate /dev/rmt devices, 0 for the tape drive, 1 for the 
> changer
> mechanism.  When earlier, I installed it following "Jon's" instructions and 
> not
> RTFM'ing, I got one device.
> 
> That doesn't mean you will always get 2 /dev/rmt devices, just that is one way
> of working and urging you to get to the docs for your brand and model and OS.
> In my case it even involved getting to the drive itself (removing the case)
> and setting some switches not accessible from outside.  It also required mods
> to the "st" (scsi tape) driver configuration file, /kernel/drv/st.conf.
> 
> If your solaris is a recent update of Solaris 8, Sun has tried to generalize
> tape changer drivers.  It uses something called the "sgen" driver.  When
> configured, changers will be sensed and devices created in 
> /dev/???/changer/XXX.
> I've not done the configuration because "don't fix what ain't broken".  But I
> think you can find stuff about setting it up on "docs.sun.com", man sgen, and
> even this mail list archives on yahoo.
> 
> Myself, I use mtx to manipulate the changer just like mt manipulates the 
> drive.
> And I use chg-mtx, not even chg-zd-mtx.  It is simpler and it works for me.
> 
> 
> As to your final questions, you will also have to set the amanda.conf 
> parameter
> "runtapes" to be more than 1.  Amanda will use extra tapes only if necessary,
> It will continue to use them in the same sequence it currently does, not 
> skipping
> any tapes because it reports "next tapes are 5 and 6" but it only uses 5.  
> However
> you may want to increase the number of tapes in rotation so you can still get
> the same number of dumpcycles in the number of tapes.  Note, you can have more
> tapes in rotation than tapecycle specifies.  That is a minimum.
> 
> Recovery?  No change.  Amanda knows what it put on each tape.  It asks you for
> what tapes are needed.
> 

Firstly thankyou Jon and Gene for answering my first email. Sorry I forgot to 
specify my 
setup. It's as follows:

amanda 2.4.3
Solaris 8
Overland DLT80 (10 tape changer)

Under /dev/rmt I only have '0' which is the one I'm using to get access to the 
drive. 
What is mtx and is it possible I could use this? There was no examples of this 
file under 
the examples directory of the amanda distribution. I am looking at sgen and 
thus far 
don't really understand it but will keep trying. The method I used for setting 
up my 
autochanger was the one I thought was used for any new device attached to a sun:

shutdown
add device
take system up to ok promt
boot -r


-----------------------------------------
David Flood
Systems Administrator
dpf AT comp.rgu.ac DOT uk
Tel: +44 (0)1224 262774
The Robert Gordon University
School of Computing
St. Andrews Street
Aberdeen
-----------------------------------------


<Prev in Thread] Current Thread [Next in Thread>