Bacula-users

[Bacula-users] Error when writng to LTO-Ultrium 3 cartridge

2008-04-21 12:21:49
Subject: [Bacula-users] Error when writng to LTO-Ultrium 3 cartridge
From: Matias Banchoff <matiasb AT cespi.unlp.edu DOT ar>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 21 Apr 2008 12:57:37 -0300
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
        I have a problem with a LTO-Ultrium 3 cartridge. The problem is Bacula
can't write it, it prints the following error:

- 
------------------------------------------------------------------------------------------------------------------
21-Apr 09:30 silicio-sd: backup_unlp.2008-04-21_09.18.00 Error: Unable
to position to end of data on device "/dev/nst1". ERR=dev.c:494 ioctl
MTEOM error on /dev/nst1. ERR=Input/output error.
- 
------------------------------------------------------------------------------------------------------------------

When I type "status sto" in the bconsole, this appears for a loooooong
time (I mean, initializing the cartridge takes much longer that I would
expect)
- 
----------------------------------------------------------------------------
Device "/dev/nst1" is mounted with Volume "Full-Backups-Tape-LTO-0002"
~    Device is being initialized.
~    Total Bytes Read=0 Blocks Read=0 Bytes/block=0
~    Positioned at File=0 Block=0
- 
----------------------------------------------------------------------------

dmesg prints the following (st1 is my tape - I have another, st0, but
that's ok):
- 
-----------------------------------------------------------------------------------------------------
[11475299.197000] st1: Error with sense data: <6>st1: Current: sense
key: Medium Error
[11475299.197000]     Additional sense: Write error
[11475329.545000] st1: Error with sense data: <6>st1: Current: sense
key: Medium Error
[11475329.545000]     Additional sense: Write error
[11477557.919000] st1: MTSETDRVBUFFER only allowed for root.
[11477666.319000] st1: MTSETDRVBUFFER only allowed for root.
[11478417.283000] st1: Error with sense data: <6>st1: Current: sense
key: Medium Error
[11478417.283000]     Additional sense: Unrecovered read error
[11478417.283000] Info fld=0x7ffea3
[11478417.289000] st1: Error with sense data: <6>st1: Current: sense
key: Medium Error
[11478417.289000]     Additional sense: Unrecovered read error
- 
-----------------------------------------------------------------------------------------------------

Finally, and after the error happens, Bacula marks the volume as "error"
and automatically creates another volume (In this case
Full-Backups-Tape-LTO-0003)

|     178 | Full-Backups-Tape-LTO-0002 | Error     | 222,273,683,747 |
~    348 |    2,592,000 |       1 |    0 |         1 | LTO 3     |
2008-04-21 09:30:36 |
|     184 | Full-Backups-Tape-LTO-0003 | Purged    |               0 |
~      0 |    2,592,000 |       1 |    0 |         0 | LTO 3     |
0000-00-00 00:00:00 |


I have installed
* Ubuntu breezy 5.10 testing/unstable
* Bacula release 1.36.3 (22 April 2005) -- debian testing/unstable
* LTO 114T
* compression=GZIP9 for the filesets
(Yes, everything is a bit old, I'll migrate as soon as possible)

I changed the status using the bconsole, from error to append, using the
update command, but it did not work: Bacula saw the tape as appendable,
tried to use it but finally marked its state as error (printing the
write error mentioned above)
I've tried cleaning the tape device, twice, but I still can't write to
that cartridge in particular.
I was able to run a restore from the cartrdige, so I guess the data is
ok. Also, I introduced another cartridge an run a backup job without any
problem.

I think the cartridge is the problem, but how can I probe it? Is there
any tool or command to test cartridges without destoying its data?

By the way, there is an old post
http://www.mail-archive.com/bacula-users AT lists.sourceforge DOT 
net/msg24654.html
~ where it says that a volume with a state "error" can only be changed to
"append" after it is recycled:
- -------------------------------------------------------------------------
"When a tape is in Error status you can not append. To reuse the tape
you must recycle the tape (removing any backup jobs on the tape) if
you want to add data to the tape."
- -------------------------------------------------------------------------
Is it true? Can't I just change the status using the update command?

Thanks

Matias
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIDLlxlK18JQ6L0qIRAm05AKC8rXEVdRCmRH6BeyxPScbHeamJCwCfXzcU
8KmOQkafxhpPY2FuzQP1DEQ=
=Oy23
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>