* Dustin J. Mitchell <[email protected]> [20100504 18:53]:
> On Tue, May 4, 2010 at 4:44 PM, Jean-Francois Malouin
> <[email protected]> wrote:
> > One question: should the changerfile parameter for chg-robot point to
> > the same file for both child-changers:
>
> Yes, it should - that will allow the changers to avoid stepping on each other.
Ah! That might explain why the amdump run ended with an error last
night. amreport said:
gustav /raid/mafalda lev 0 partial taper: from av48-half-1: while
ejecting volume: Can't open tape device /dev/nst0: Device or resource busy;
from av48-half-2: while ejecting volume: Can't open tape device /dev/nst1:
Device or resource busy
taper debug file:
Wed May 5 08:29:01 2010: taper: Building type SPLIT_FILE header of
2097152-2097152 bytes with name='gustav' disk='/raid/mafalda' dumplevel=0 and
blocksize=2097152
Wed May 5 08:29:13 2010: taper: Device tape:/dev/nst1 error = 'No space left
on device'
Wed May 5 08:29:13 2010: taper: Device tape:/dev/nst1 setting status flag(s):
DEVICE_STATUS_VOLUME_ERROR
Wed May 5 08:29:13 2010: taper: Device rait:{tape:/dev/nst0,tape:/dev/nst1}
error = 'One or more devices failed to write_block'
Wed May 5 08:29:13 2010: taper: Device rait:{tape:/dev/nst0,tape:/dev/nst1}
setting status flag(s): DEVICE_STATUS_DEVICE_ERROR
Wed May 5 08:30:24 2010: taper: invoking /usr/sbin/mtx -f /dev/changer status
Wed May 5 08:30:24 2010: taper: invoking /usr/sbin/mtx -f /dev/changer status
Wed May 5 08:30:28 2010: taper: av48-half-1: updating state
Wed May 5 08:30:28 2010: taper: av48-half-2: updating state
Wed May 5 08:30:28 2010: taper: Amanda::Taper::Scan::traditional stage 1:
search for oldest reusable volume
Wed May 5 08:30:28 2010: taper: Amanda::Taper::Scan::traditional no oldest
reusable volume
Wed May 5 08:30:28 2010: taper: Amanda::Taper::Scan::traditional stage 2: scan
for any reusable volume
Wed May 5 08:30:28 2010: taper: av48-half-1: too early for another 'status'
invocation
Wed May 5 08:30:28 2010: taper: av48-half-2: too early for another 'status'
invocation
Wed May 5 08:30:28 2010: taper: av48-half-1: loading next relative to current
slot: 2
Wed May 5 08:30:28 2010: taper: av48-half-2: loading next relative to current
slot: 14
Wed May 5 08:30:28 2010: taper: av48-half-1: using drive 0
Wed May 5 08:30:28 2010: taper: av48-half-2: using drive 1
Wed May 5 08:30:28 2010: taper: av48-half-1: unloading drive 0
Wed May 5 08:30:28 2010: taper: av48-half-2: unloading drive 1
Wed May 5 08:30:28 2010: taper: av48-half-1: ejecting tape:/dev/nst0 before
unload
Wed May 5 08:30:28 2010: taper: Device tape:/dev/nst0 error = 'Can't open tape
device /dev/nst0: Device or resource busy'
Wed May 5 08:30:28 2010: taper: Device tape:/dev/nst0 setting status flag(s):
DEVICE_STATUS_DEVICE_BUSY
Wed May 5 08:30:28 2010: taper: new Amanda::Changer::Error: type='failed',
reason='unknown', message='while ejecting volume: Can't open tape device
/dev/nst0: Device or resource busy'
Wed May 5 08:30:28 2010: taper: av48-half-2: ejecting tape:/dev/nst1 before
unload
Wed May 5 08:30:28 2010: taper: Device tape:/dev/nst1 error = 'Can't open tape
device /dev/nst1: Device or resource busy'
Wed May 5 08:30:28 2010: taper: Device tape:/dev/nst1 setting status flag(s):
DEVICE_STATUS_DEVICE_BUSY
Wed May 5 08:30:28 2010: taper: new Amanda::Changer::Error: type='failed',
reason='unknown', message='while ejecting volume: Can't open tape device
/dev/nst1: Device or resource busy'
Wed May 5 08:30:28 2010: taper: new Amanda::Changer::Error: type='failed',
reason='unknown', message='from av48-half-1: while ejecting volume: Can't open
tape device /dev/nst0: Device or resource busy; from av48-half-2: while
ejecting volume: Can't open tape device /dev/nst1: Device or resource busy'
Wed May 5 08:30:28 2010: taper: Amanda::Taper::Scan::traditional result:
error=from av48-half-1: while ejecting volume: Can't open tape device
/dev/nst0: Device or resource busy; from av48-half-2: while ejecting volume:
Can't open tape device /dev/nst1: Device or resource busy
Wed May 5 08:30:28 2010: taper: Cancelling <x...@0x1402bc0
(<xfersourcehold...@0x13d0000> -> <xferdesttapersplit...@0x13c7030>)>
Wed May 5 08:30:28 2010: taper: pid 10718 finish time Wed May 5 08:30:28 2010
********************************************************************
I've corrected this by using the same state file in both
child-changer. I'm now experiencing other problems, maybe due to some
mis-config from my part:
~# su amanda -c "/opt/amanda-3.1.0beta2/sbin/amtape rait taper"
slot ?: from av48-half-1: slot 14 not in use-slots (1-12)
slot {1,13}: volume 'RAIT-001.L4' is still active and cannot be overwritten
slot {2,14}: volume 'RAIT-002.L4'
Will write to volume RAIT-002.L4 in slot {2,14}.
What's the 'slot ?:' thingie?
~# su amanda -c "/opt/amanda-3.1.0beta2/sbin/amadmin rait tape"
The next Amanda run should go onto 6 new tapes.
The next 6 new tapes already labelled are: RAIT-002.L4, RAIT-003.L4,
RAIT-004.L4, RAIT-005.L4, RAIT-006.L4, RAIT-007.L4
~# su amanda -c "/opt/amanda-3.1.0beta2/sbin/amtape rait label RAIT-002.L4"
slot {2,14}: RAIT-002.L4
slot {2,14}: time X label RAIT-002.L4
label RAIT-002.L4 is now loaded from slot {2,14}
The amtape debug contains a lot of warnings:
Wed May 5 14:12:00 2010: amtape: pid 13697 ruid 110 euid 110 version
3.1.0beta2: start at Wed May 5 14:12:00 2010
Wed May 5 14:12:00 2010: amtape: pid 13697 ruid 110 euid 110 version
3.1.0beta2: rename at Wed May 5 14:12:00 2010
Wed May 5 14:12:00 2010: amtape: chg-robot: using statefile
'/opt/amanda-3.1.0beta2/etc/amanda/av48-state'
Wed May 5 14:12:00 2010: amtape: chg-robot: using statefile
'/opt/amanda-3.1.0beta2/etc/amanda/av48-state'
Wed May 5 14:12:00 2010: amtape: find_volume labeled 'RAIT-002.L4'
Wed May 5 14:12:00 2010: amtape: invoking /usr/sbin/mtx -f /dev/changer status
Wed May 5 14:12:02 2010: amtape: av48-half-1: updating state
Wed May 5 14:12:02 2010: amtape: av48-half-2: too early for another 'status'
invocation
Wed May 5 14:12:02 2010: amtape: warning: Use of uninitialized value in
bitwise or (|) at /opt/amanda-3.1.0beta2/perl/Amanda/Changer/rait.pm line 572.
harmless?
thanks, 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