Hello,

On 25.09.2005 14:39, Erik P. Olsen wrote:

I am still in the testing phase and I get what seems to me to be a
strange problem. The scenario is as follows:

1. Bacula daemons are started normally.
2. bconsole is started.
3. *run Client1 is issued.
4. Bacula sends "Intervention needed" message asking to mount Volume
"Bacula02" on Storage Device "DDS-4"
5. Tape is ejected manually and true it was a wrong tape (not a bacula
volume).
6. Volume "Bacula02" is inserted.
7. *mount storage=DDS-4 is not accepted and produce the following set of
messages:

*mount DDS-4
block.c:782 Read error at file:blk 0:0 on device /dev/nst0.
ERR=Input/output error.
block.c:782 Read error at file:blk 0:0 on device /dev/nst0.
ERR=Input/output error.
3902 Cannot mount Volume on Storage Device "/dev/nst0" because:
Requested Volume "" on /dev/nst0 is not a Bacula labeled Volume,
because: ERR=block.c:782 Read error at file:blk 0:0 on device /dev/nst0.
ERR=Input/output error.
3905 Device /dev/nst0 open but no Bacula volume is mounted.
If this is not a blank tape, try unmounting and remounting the Volume.

Unmounting and remounting the volume does not change anything. Trying
with another Bacula labeled volume follows the same scenario. Stopping
and starting bacula doesn't change anything either.

First of all I like to understand what bacula is trying to tell me with
these messages. Secondly can a wrong tape (not a bacula volume) cause
this sort of errors and are the volumes which bacula would not accept
now unusable for bacula forever?

With a proper tape drive, it's rather hard to render a tape definitely unusable.*

I suspect that the tapes you insert are either not labeled by bacula or you changed your tape block size settings in between.

In both cases, the easiest solution is to use the label command on them.

If you are absolutely sure that they contain a bacula label, the program btape is a good first start to find out what is wrong with the tapes, although, in your case, he output you give above shows clearly that bacula can't read a volume label off the tapes.

In this case, I have used dd and od with good results - something like 'dd if=/dev/nst0 count=1 bs=65536 | od -t x1c' and playing with block sizes sometimes helped my find the block size on that tape.

Arno

* Proper tape drive means "everything except DDS" :-) No worries, that was partly a joke.

--
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to