On Monday 25 July 2005 12:11, Alan Brown wrote:
> Kern,
>
> This is the manifestation which happens when a _truely_ blank tape is
> loaded. (ie, virgin tape, just out of the wrapper.)
>
> 23-Jul 03:43 msslas-sd: 3304 Issuing autochanger "load slot 3, drive 0"
> command.
> 23-Jul 03:43 msslas-sd: 3305 Autochanger "load slot 3, drive 0", status is
> OK.
> 23-Jul 03:48 msslas-sd: Low-churn-peace2.2005-07-23_01.16.02 Warning:
> Couldn't rewind device /dev/nst0 ERR=dev.c:406 Rewind error on /dev/nst0.
> ERR=Input/output error.
>
> 23-Jul 03:53 msslas-sd: 3301 Issuing autochanger "loaded drive 0" command.
> 23-Jul 03:53 msslas-sd: 3302 Autochanger "loaded drive 0", result is Slot
> 3.
> 23-Jul 03:58 msslas-sd: Low-churn-peace2.2005-07-23_01.16.02 Warning:
> Couldn't rewind device /dev/nst0 ERR=dev.c:406 Rewind error on /dev/nst0.
> ERR=Input/output error.
>
>
> "mt -f /dev/nst0 weof" solves the issue, but this needs to be sorted out
> properly.
>
> What kind of output/debugging do you need to analyse and detect virgin
> blank tapes?
I don't know of any way to detect blank media. If you know how, using standard
Unix system calls, please fill me in. In fact, there is generally, no
universal Unix means of detecting that no medium is in the drive -- some OSes
will tell you, but they are OS specific ioctl(), which I have now started
adding to Bacula.
I'm not 100% sure what the problem is. I see your output, but I don't
understand the problem. Normally if you put up a blank tape and you want to
label it, you will get an error message, and Bacula will go ahead and label
it. I probably could suppress the error message as it is expected and seems
to confuse a lot of people, but I'm a bit reluctant.
Are you telling me that in some cases it doesn't work that way? If so, I need
to understand exactly the sequence of events and how your Device resource is
defined. See below for my analysis of your problem, which IMO is not related
to blank tapes.
By the way, normally when it is not possible to rewind a drive, it is because
there is no tape mounted. I don't understand why there would be an error
trying to rewind a drive containing a blank tape. If that is the case, then
I think your OS is broken.
Before labeling a tape, Bacula does:
- rewind
- read
If the rewind gets an error, Bacula assumes that something important is wrong
and probably gives up or tries another tape if one is available.
If the read fails, Bacula prints the error message and assumes it is a blank
tape, rewinds it, writes the label, re-reads it, then rewinds again.
My reading on the above errors you are seeing:
In the above case, I suspect that you have an autochanger configuration error.
Either you are not waiting long enough after issuing the mtx load command, or
you are not using one of the wait loops that are in the mtx-changer script.
As a consequence, the mtx-changer script returns to Bacula *before* the tape
is loaded and read, Bacula rewinds the drive, and gets an error.
--
Best regards,
Kern
(">
/\
V_V
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users