Re: [Bacula-users] Tape shoe-shining with spooling enabled - why?

2018-12-23 Thread Dmitri Maziuk via Bacula-users
On Sun, 23 Dec 2018 13:27:48 +1000
Adam Nielsen  wrote:

> > So it looks like when Bacula/btape writes an EOF mark, this causes
 
> Support for MTWEOFI was added to the kernel[2] back in October 2010,
> and looks like it was first released in 2.6.37, so it's not something
> new.
> 
> I am not familiar with Bacula's cross-platform support, so is this
> something that can simply be changed?  Or could it just be wrapped by
> an `#ifdef MTWEOFI`?

RHEL 6 is based on 2.6.32 with an unknown number of back-ported
patches. It'll be with us of some time yet.

-- 
Dmitri Maziuk 


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula 9.2.1: Suddenly labelling tapes fails!

2018-12-23 Thread Bill Damage via Bacula-users
Sending label command for Volume "TEST-04" Slot 0 ...3000 OK label. 
VolBytes=64512 VolABytes=0 VolType=0 Volume="TEST-04" 
Device="HP-ULTRIUM-LTO3-EXT2" (/dev/st1)Catalog record for Volume "TEST-04", 
Slot 0  successfully created.Requesting to mount HP-ULTRIUM-LTO3-EXT2 ...3902 
Cannot mount Volume on Storage Device ""HP-ULTRIUM-LTO3-EXT2" (/dev/st1)" 
because:Read label block failed: requested Volume "" on Tape device 
"HP-ULTRIUM-LTO3-EXT2" (/dev/st1) is not a Bacula labeled Volume, because: 
ERR=block_util.c:425 Volume data error at 0:0! Wanted ID: "BB02", got "". 
Buffer discarded.3905 Device ""HP-ULTRIUM-LTO3-EXT2" (/dev/st1)" open but no 
Bacula volume is mounted.If this is not a blank tape, try unmounting and 
remounting the Volume.Do not forget to mount the drive!!!You have messages.
-
I have 2 Fedora 29 servers, both have been running bacula succesfully for years 
through many upgrades.I was asked for a new LTO-3 volume on one, and it failed 
as above. I assumed the tape was bad so tried another with the same result. I 
then tried these 2 tapes on the second server, different tape drive completely, 
and it fails the same way.
I tested it with Testing Your Tape Drive With Bacula

| 
| 
| 
|  |  |

 |

 |
| 
|  | 
Testing Your Tape Drive With Bacula

Testing Your Tape Drive With Bacula
 |

 |

 |



and got this:
[root@tiger bacula]#  btape -c bacula-sd.conf /dev/st1Tape block granularity is 
1024 bytes.btape: butil.c:290-0 Using device: "/dev/st1" for writing.btape: 
btape.c:478-0 open device "HP-ULTRIUM-LTO3-EXT2" (/dev/st1): OK*test
=== Write, rewind, and re-read test ===
I'm going to write 1 records and an EOFthen write 1 records and an EOF, 
then rewind,and re-read the data to verify that it is correct.
This is an *essential* feature ...
btape: btape.c:1161-0 Wrote 1 blocks of 64412 bytes.btape: btape.c:612-0 
Wrote 1 EOF to "HP-ULTRIUM-LTO3-EXT2" (/dev/st1)btape: btape.c:1177-0 Wrote 
1 blocks of 64412 bytes.btape: btape.c:612-0 Wrote 1 EOF to 
"HP-ULTRIUM-LTO3-EXT2" (/dev/st1)btape: btape.c:1219-0 Rewind OK.23-Dec 10:41 
btape JobId 0: Fatal error: block_util.c:425 Volume data error at 0:0! Wanted 
ID: "BB02", got "". Buffer discarded.btape: btape.c:1236-0 Read block 1 failed! 
ERR=block_util.c:425 Volume data error at 0:0! Wanted ID: "BB02", got "". 
Buffer discarded.
*
What gives? Same failure with different tapes in different tape drives on 
different servers right at the same time!!??
Thanks

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users