* Dustin J. Mitchell <dus...@zmanda.com> [20100504 16:30]:
> On Tue, May 4, 2010 at 1:13 PM, Jean-Francois Malouin
> <ma...@bic.mni.mcgill.ca> wrote:
> > Is it possible with amanda-3.0 and the new changer API to setup a
> > mirror/rait using 2 physical tape drives and only one physical
> > changer?
> 
> Yes!  I tested this lightly at one point, and it should work just fine.

I figured it out: I didn't quite understand how to define a `slot' in
a rait using chg-robot: something like '{1,13}' does the trick. 

One question: should the changerfile parameter for chg-robot point to
the same file for both child-changers:

define changer av48-1 {
  tpchanger "chg-robot:/dev/changer"
  changerfile "/etc/amanda/av48-state-1"
  property "tape-device" "0=tape:/dev/nst0"
  property "eject-before-unload" "yes"
  property "use-slots" "1-12"
  property "load-poll" "20s poll 40s until 120s"
  property "status-interval" "10s"
}
define changer av48-2 {
  tpchanger "chg-robot:/dev/changer"
  changerfile "/etc/amanda/av48-state-2"
  property "tape-device" "1=tape:/dev/nst1"
  property "eject-before-unload" "yes"
  property "use-slots" "13-24"
  property "load-poll" "20s poll 40s until 120s"
  property "status-interval" "10s"
}
tpchanger "chg-rait:{av48-1,av48-2}"

I like the new polling stuff. It will makes my life much easier!
There is a lot of new exciting stuff. Good work guys!

jf


> 
> Dustin
> 
> -- 
> Open Source Storage Engineer
> http://www.zmanda.com

-- 
<° >< Jean-François Malouin          McConnell Brain Imaging Centre        
Systems/Network Administrator       Montréal Neurological Institute
3801 Rue University, Suite WB219          Montréal, Québec, H3A 2B4
Phone: 514-398-8924                               Fax: 514-398-8948

Reply via email to