* Dustin J. Mitchell <[email protected]> [20100506 13:31]:
> On Thu, May 6, 2010 at 12:00 PM, Jean-Francois Malouin
> <[email protected]> wrote:
> > How do you specify a drive number with a mirror rait using chg-robot?
> >
> > ~# su amanda -c "/opt/amanda-3.1.0beta2/sbin/amtape rait eject 1"
> 
> You would specify it as '{1,12}', but it looks like you've uncovered a
> bug there all the same, since '1' is treated as '{1,1}'.

I must have left my brain somewhere but it's still not clear to me how
to specify a `drive' with a mirror/rait:

~# su amanda -c "/opt/amanda-3.1.0beta2/sbin/amtape rait eject '{0,1}'"
ERROR: av48-half-1: invalid drive '{0,1}'; av48-half-2: invalid drive '{0,1}'

~# su amanda -c "/opt/amanda-3.1.0beta2/sbin/amtape rait eject {0,1}"
**
** ERROR:(device.c:494):device_open: assertion failed: (device_name != NULL)

In the second case, the tape in drive 0 was ejected but not the one in
drive 1...

Thu May  6 14:20:06 2010: amtape: pid 7479 ruid 110 euid 110 version 
3.1.0beta2: start at Thu May  6 14:20:06 2010
Thu May  6 14:20:06 2010: amtape: pid 7479 ruid 110 euid 110 version 
3.1.0beta2: rename at Thu May  6 14:20:06 2010
Thu May  6 14:20:06 2010: amtape: chg-robot: using statefile 
'/opt/amanda-3.1.0beta2/etc/amanda/av48-state'
Thu May  6 14:20:06 2010: amtape: chg-robot: using statefile 
'/opt/amanda-3.1.0beta2/etc/amanda/av48-state'
Thu May  6 14:20:06 2010: amtape: 
Amanda::Changer::robot=HASH(0x10cfb18)->eject()
Thu May  6 14:20:06 2010: amtape: 
Amanda::Changer::robot=HASH(0x10d67d8)->eject()
Thu May  6 14:20:06 2010: amtape: invoking /usr/sbin/mtx -f /dev/changer status
Thu May  6 14:20:07 2010: amtape: av48-half-1: updating state
Thu May  6 14:20:07 2010: amtape: av48-half-1: unloading drive 0
Thu May  6 14:20:07 2010: amtape: av48-half-1: ejecting tape:/dev/nst0 before 
unload
Thu May  6 14:20:47 2010: amtape: invoking /usr/sbin/mtx -f /dev/changer unload 
2 0
Thu May  6 14:21:38 2010: amtape: av48-half-1: unload complete
Thu May  6 14:21:40 2010: amtape: invoking /usr/sbin/mtx -f /dev/changer status
Thu May  6 14:21:42 2010: amtape: av48-half-2: updating state
Thu May  6 14:21:42 2010: amtape: av48-half-2: unloading drive 0
Thu May  6 14:21:42 2010: amtape: warning: Use of uninitialized value
$device_name in concatenation (.) or string at 
/opt/amanda-3.1.0beta2/perl/Amanda/Changer/robot.pm line 972.

Thu May  6 14:21:42 2010: amtape: av48-half-2: ejecting  before unload


?
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