Hello,
Thanks for this fix I tested it with an LTO7 tape in IBM drives with a SCALAR i-500 librairy.
It works !
btape
*fill ..... ..... Wrote block=15275000, file,blk=188,56939 VolBytes=6,006,374,006,784 rate=292.7 MB/s Wrote block=15280000, file,blk=188,61939 VolBytes=6,008,340,086,784 rate=292.7 MB/s Wrote block=15285000, file,blk=188,66939 VolBytes=6,010,306,166,784 rate=292.7 MB/s Wrote block=15290000, file,blk=188,71939 VolBytes=6,012,272,246,784 rate=292.7 MB/s Wrote block=15295000, file,blk=188,76939 VolBytes=6,014,238,326,784 rate=292.7 MB/s Wrote block=15300000, file,blk=189,559 VolBytes=6,016,204,406,784 rate=292.7 MB/s 07-févr. 20:01 btape JobId 0: End of Volume "TestVolume1" at 189:3427 on device "Drive-1" (/dev/tape/by-id/scsi-3500308c3a347d000-nst). Write of 393216 bytes got -1. 07-févr. 20:01 btape JobId 0: Re-read of last block succeeded. btape: btape.c:2712-0 Last block at: 189:3426 this_dev_block_num=3427 btape: btape.c:2747-0 End of tape 189:0. Volume Bytes=6,017,332,150,272. Write rate = 292.6 MB/s 07-févr. 20:01 btape JobId 0: End of medium on Volume "TestVolume1" Bytes=6,017,332,150,272 Blocks=15,302,867 at 07-févr.-2017 20:01. 07-févr. 20:01 btape JobId 0: 3307 Issuing autochanger "unload slot 1, drive 0" command for vol TestVolume1. 07-févr. 20:03 btape JobId 0: 3304 Issuing autochanger "load slot 2, drive 0" command for vol TestVolume2. 07-févr. 20:03 btape JobId 0: 3305 Autochanger "load slot 2, drive 0", status is OK for vol TestVolume2. Wrote Volume label for volume "TestVolume2". 07-févr. 20:03 btape JobId 0: Wrote label to prelabeled Volume "TestVolume2" on tape device "Drive-1" (/dev/tape/by-id/scsi-3500308c3a347d000-nst) 07-févr. 20:03 btape JobId 0: New volume "TestVolume2" mounted on device "Drive-1" (/dev/tape/by-id/scsi-3500308c3a347d000-nst) at 07-févr.-2017 20:03. btape: btape.c:2315-0 Wrote 1000 blocks on second tape. Done. Done writing 0 records ... Wrote End of Session label. btape: btape.c:2384-0 Wrote state file last_block_num1=3426 last_block_num2=1001 btape: btape.c:2402-0
20:03:36 Done filling tapes at 0:1003. Now beginning re-read of first tape ... btape: btape.c:2480-0 Enter do_unfill 07-févr. 20:03 btape JobId 0: 3307 Issuing autochanger "unload slot 2, drive 0" command for vol TestVolume1. 07-févr. 20:04 btape JobId 0: 3304 Issuing autochanger "load slot 1, drive 0" command for vol TestVolume1. 07-févr. 20:05 btape JobId 0: 3305 Autochanger "load slot 1, drive 0", status is OK for vol TestVolume1. 07-févr. 20:05 btape JobId 0: Ready to read from volume "TestVolume1" on tape device "Drive-1" (/dev/tape/by-id/scsi-3500308c3a347d000-nst). Rewinding. Reading the first 10000 records from 0:0. 10000 records read now at 1:834 Reposition from 1:834 to 189:3426 Reading block 3426.
The last block of the first tape matches.
07-févr. 20:05 btape JobId 0: 3307 Issuing autochanger "unload slot 1, drive 0" command for vol TestVolume2. 07-févr. 20:07 btape JobId 0: 3304 Issuing autochanger "load slot 2, drive 0" command for vol TestVolume2. 07-févr. 20:07 btape JobId 0: 3305 Autochanger "load slot 2, drive 0", status is OK for vol TestVolume2. 07-févr. 20:07 btape JobId 0: Ready to read from volume "TestVolume2" on tape device "Drive-1" (/dev/tape/by-id/scsi-3500308c3a347d000-nst). Reposition from 0:0 to 0:1 Reading block 1.
The first block on the second tape matches.
Reposition from 0:2 to 0:1001 Reading block 1001.
The last block on the second tape matches. Test succeeded.
*
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|