Bacula-users

Re: [Bacula-users] Is anyone using >128K blocks with LTO-4 or LTO-5 drives?

2013-09-17 11:12:30
Subject: Re: [Bacula-users] Is anyone using >128K blocks with LTO-4 or LTO-5 drives?
From: Martin Simmons <martin AT lispworks DOT com>
To: Andreas Koch <koch AT esa.informatik.tu-darmstadt DOT de>
Date: Tue, 17 Sep 2013 16:09:22 +0100
>>>>> On Tue, 17 Sep 2013 16:16:52 +0200, Andreas Koch said:
> 
> > btape: btape.c:1157 Wrote 10000 blocks of 524188 bytes. btape:
> > btape.c:609 Wrote 1 EOF to "LTO-4" (/dev/nst0) btape: btape.c:1173 Wrote
> > 10000 blocks of 524188 bytes. btape: btape.c:609 Wrote 1 EOF to "LTO-4"
> > (/dev/nst0) btape: btape.c:1215 Rewind OK. Got EOF on tape.
> > 
> > 
> > Hmm. Isn't 512K 524288 bytes not 524188 bytes? Could that be the
> > problem?
> 
> Possibly. But see my bacula-sd.conf here, I did indeed request 524288 bytes:
> 
> Device {
>    Name = LTO-5
>    Media Type = LTO-5
>    Archive Device = /dev/nst0
>    AutomaticMount = yes;               # when device opened, read it
>    AlwaysOpen = yes;
>    RemovableMedia = yes;
>    RandomAccess = no;
>    Maximum File Size = 8g;
>    Minimum block size = 524288
>    Maximum block size = 524288
>    Changer Device = /dev/changer
>    AutoChanger = yes
>    # AHK we want to interrogate the drive, not the changer
>    Alert Command = "sh -c 'smartctl -H -l error /dev/sg11'"
>    Maximum Spool Size = 3000g
>    Spool Directory = /etc/bacula/spooldisk/BaculaSpool
>    Maximum Network Buffer Size = 65536
> }
> 
> I have asked myself about the missing 100 bytes, too, but assumed they might
> be some Bacula-internal per-block header (haven't checked that, though).

Yes, btape always prints 100 bytes less than the block size (for some reason
it prints the record size).

Does the splitting problem occur if you write to the tape with dd and then
read it back?

e.g. something like

dd if=/dev/urandom of=/tmp/largefile bs=512k count=10000
mt -f /dev/nst0 rewind
dd if=/tmp/largefile of=/dev/nst0 bs=512k
dd if=/tmp/largefile of=/dev/nst0 bs=512k
mt -f /dev/nst0 rewind
dd if=/dev/nst0 of=/dev/null bs=512k

__Martin

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
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>