Bacula-users

[Bacula-users] mt Command and Tape ONLINE status

2009-02-17 03:51:28
Subject: [Bacula-users] mt Command and Tape ONLINE status
From: Thomas <thomas AT ic3s DOT de>
To: bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Tue, 17 Feb 2009 09:48:23 +0100
Hi List,

yesterday i did an upgrade from etch to lenny.
after the update bacula was no longer able to verify
that the tapes are loaded correctly.

from the job log:

2009-02-16 16:25:26     3301 Issuing autochanger "loaded? drive 0" command.
2009-02-16 16:25:26     3302 Autochanger "loaded? drive 0", result: nothing 
loaded.
2009-02-16 16:25:26     3304 Issuing autochanger "load slot 9, drive 0" command.
2009-02-16 16:30:27     Fatal error: 3992 Bad autochanger "load slot 9, drive 
0": ERR=Child died from signal 15: Termination.
Results=Loading media from Storage Element 9 into drive 0...done
Program killed by Bacula watchdog (timeout)
2009-02-16 16:30:27     Fatal error: job.c:1817 Bad response to Append Data 
command. Wanted 3000 OK data
, got 3903 Error append data

mtx.log:

20090216-16:34:19 Doing mtx -f /dev/sg2 load 9 0
20090216-16:34:38 Device /dev/nst0 - not ready, retrying...
20090216-16:34:39 Device /dev/nst0 - not ready, retrying...
20090216-16:34:40 Device /dev/nst0 - not ready, retrying...
20090216-16:34:41 Device /dev/nst0 - not ready, retrying...
20090216-16:34:42 Device /dev/nst0 - not ready, retrying...
.....
20090216-16:39:19 Device /dev/nst0 - not ready, retrying...

5 Minutes of retrying until it was killed.


the mtx-changer script greps ONLINE in the mt outpout:

ready = ONLINE
....
wait_for_drive() {
  i=0
  while [ $i -le 300 ]; do  # Wait max 300 seconds
    if ${MT} -f $1 status | grep ${ready}       >/dev/null 2>&1; then
      break
    fi
    debug "Device $1 - not ready, retrying..."
    sleep 1
    i=`expr $i + 1`
  done
}


but the mt output shows no ONLINE


zlato:~# mt -f /dev/nst0 status
drive type = 114
drive status = 1224736768
sense key error = 0
residue count = 0
file number = 0
block number = 0
zlato:~#

this is the output from the etch mt:

/etc/bacula/mt -f /dev/nst0 status
drive type = Generic SCSI-2 tape
drive status = 1224736768
sense key error = 0
residue count = 0
file number = 4
block number = 0
Tape block size 0 bytes. Density code 0x49 (unknown).
Soft error count since last status=0
General status bits on (81010000):
 EOF ONLINE IM_REP_EN


zlato:~# mt --version
mt (GNU cpio 2.9)
zlato:~# /etc/bacula/mt --version
mt (GNU cpio 2.6)
zlato:~#

zlato:~# strings /bin/mt | grep -i online
zlato:~# strings /etc/bacula/mt | grep -i online
 ONLINE
zlato:~#


currently i use the etch mt, but what was the correct way to use the lenny mt?
(compiling mt from source does not help, the output is identically to the lenny 
mt,
so it looks not like a debian problem)

Regards

Thomas
-- 
[:O]###[O:]

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users