Hi there,
I've been having some problems attempting to increase the write speed to my
tape drive through Bacula.
If I use the operating system to communicate directly with the tape drive, I
get the appropriate read and write speeds but using Bacula, I get a third of
the speed. I have tried spooling the data to a separate physical drive before
writing, no luck. I have played around with the block sizes using 64K, 128K,
196K and 256K but still the same performance. I have tried various backup sized
ranging from under 1gb to 80gb but the speed stays constant on all tests.
My average write speed seems to stay around 20mb/s give or take a few
megabytes. I should be getting at least double that speed for the drive and
SCSI card that I am using.
My software setup is as follows:FreeBSD 5.5 x86Bacula 2.2.5 (Installed from
source)MySQL 5.0.45 My hardware setup is as follows:CPU - AMD AM2
5600+Motherboard - Asus M2N-LRSCSI Card - Adaptec 29160NTape Drive - HP
StorageWorks Ultrium 448Data Cartridge - HP LTO2 Ultrium 400GB
Here are some examples:
####DD Read/Write Test####
server1# dd if=/dev/zero of=/dev/nsa0 bs=65536 count=300000300000+0 records
in300000+0 records out19660800000 bytes transferred in 299.338943 secs
(65680729 bytes/sec)server1# mt -f /dev/nsa0 rewindserver1# dd of=/dev/null
if=/dev/nsa0 bs=65536 count=300000300000+0 records in300000+0 records
out19660800000 bytes transferred in 291.253620 secs (67504054 bytes/sec)
####Btape Fill Test####
*fill (abbreviated)19:02:56 Flush block, write EOFWrote blk_block=3140000,
dev_blk_num=4000 VolBytes=202,308,728,832 rate=19647.3 KB/sWrote
blk_block=3145000, dev_blk_num=9000 VolBytes=202,631,288,832 rate=19644.3
KB/sWrote blk_block=3150000, dev_blk_num=14000 VolBytes=202,953,848,832
rate=19648.9 KB/sWrote blk_block=3155000, dev_blk_num=3500
VolBytes=203,276,408,832 rate=19644.0 KB/sWrote blk_block=3160000,
dev_blk_num=8500 VolBytes=203,598,968,832 rate=19650.5 KB/sWrote
blk_block=3165000, dev_blk_num=13500 VolBytes=203,921,528,832 rate=19657.0
KB/s04-Dec 19:04 btape JobId 0: End of Volume "TestVolume1" at 295:14046 on
device "HP_Ultrium" (/dev/nsa0). Write of 64512 bytes got 0.btape: btape.c:2345
Last block at: 295:14045 this_dev_block_num=14046btape: btape.c:2379 End of
tape 297:0. VolumeCapacity=203,956,752,384. Write rate = 19643.3 KB/sDone
writing 0 records ...Wrote state file last_block_num1=14045
last_block_num2=019:04:38 Done filling tape at 297:0. Now beginning re-read of
tape ...04-Dec 19:05 btape JobId 0: Ready to read from volume "TestVolume1" on
device "HP_Ultrium" (/dev/nsa0).Rewinding.Reading the first 10000 records from
0:0.10000 records read now at 1:5084Reposition from 1:5084 to 295:14045Reading
block 14045.The last block on the tape matches. Test succeeded.
####Full Job Email Output####
04-Dec 14:16 server1-dir JobId 57: Start Backup JobId 57,
Job=Client1.2007-12-04_14.16.1904-Dec 14:16 server1-dir JobId 57: Using Device
"HP_Ultrium"04-Dec 14:38 server1-sd JobId 57: Job write elapsed time =
00:22:16, Transfer rate = 24.13 M bytes/second04-Dec 14:38 server1-dir JobId
57: Bacula server1-dir 2.2.5 (09Oct07): 04-Dec-2007 14:38:32 Build OS:
i386-unknown-freebsd5.5 freebsd 5.5-RELEASE JobId: 57
Job: Client1.2007-12-04_14.16.19 Backup Level:
Full Client: "server1-fd" 2.2.5 (09Oct07)
i386-unknown-freebsd5.5,freebsd,5.5-RELEASE FileSet: "Full Set"
2007-12-04 09:08:20 Pool: "Default" (From Job resource)
Storage: "HP_Ultrium" (From Job resource) Scheduled time:
04-Dec-2007 14:16:06 Start time: 04-Dec-2007 14:16:08 End time:
04-Dec-2007 14:38:32 Elapsed time: 22 mins 24 secs
Priority: 1 FD Files Written: 37,640 SD Files Written:
37,640 FD Bytes Written: 32,233,221,269 (32.23 GB) SD Bytes Written:
32,239,016,919 (32.23 GB) Rate: 23983.1 KB/s Software
Compression: None VSS: no Encryption: no
Volume name(s): blahz Volume Session Id: 2 Volume Session Time:
1196806442 Last Volume Bytes: 32,264,322,048 (32.26 GB) Non-fatal FD
errors: 0 SD Errors: 0 FD termination status: OK SD
termination status: OK Termination: Backup OK04-Dec 14:38
server1-dir JobId 57: Begin pruning Jobs.04-Dec 14:38 server1-dir JobId 57: No
Jobs found to prune.04-Dec 14:38 server1-dir JobId 57: Begin pruning
Files.04-Dec 14:38 server1-dir JobId 57: No Files found to prune.04-Dec 14:38
server1-dir JobId 57: End auto prune.
######################### Any help would be very appreciated. Thanks! Brad.
_________________________________________________________________
Introducing the City @ Live! Take a tour!
http://getyourliveid.ca/?icid=LIVEIDENCA006
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users