From: Markus B. <bu...@hi...> - 2003-05-28 20:39:26
|
Hi, I have problems getting my HP SureStore 40x6e to work with Bacula 1.30a on= =20 =46reeBSD 5.1-BETA (had the same problems on 4.8-STABLE before upgrading to= 5.1=20 =2DBETA): Device { Name =3D "HP SureStore 40x6e" Media Type =3D DDS-4 AutoChanger =3D Yes Archive Device =3D /dev/nsa0 Changer Device =3D /dev/pass3 Changer Command =3D "/usr/local/sbin/mtx-changer %c %o %S %a" LabelMedia =3D no # lets Bacula label unlabeled media AutomaticMount =3D yes # when device opened, read it AlwaysOpen =3D yes RemovableMedia =3D yes # needed for FreeBSD BSF At EOM =3D yes Hardware End of Medium =3D No } A "test" with btape yields the following: brueffer@ramses:/usr/local/etc # btape -c bacula-sd.conf /dev/nsa0 Tape block granularity is 1024 bytes. btape: butil.c:149 Using device: /dev/nsa0 for writing. *test =3D=3D=3D Append files test =3D=3D=3D This test is essential to Bacula. I'm going to write one record in file 0, two records in file 1, and three records in file 2 btape: btape.c:387 Rewound /dev/nsa0 btape: btape.c:857 Wrote one record of 64412 bytes. btape: btape.c:859 Wrote block to device. btape: btape.c:410 Wrote EOF to /dev/nsa0 btape: btape.c:857 Wrote one record of 64412 bytes. btape: btape.c:859 Wrote block to device. btape: btape.c:857 Wrote one record of 64412 bytes. btape: btape.c:859 Wrote block to device. btape: btape.c:410 Wrote EOF to /dev/nsa0 btape: btape.c:857 Wrote one record of 64412 bytes. btape: btape.c:859 Wrote block to device. btape: btape.c:857 Wrote one record of 64412 bytes. btape: btape.c:859 Wrote block to device. btape: btape.c:857 Wrote one record of 64412 bytes. btape: btape.c:859 Wrote block to device. btape: btape.c:410 Wrote EOF to /dev/nsa0 btape: btape.c:387 Rewound /dev/nsa0 btape: btape.c:695 Now moving to end of media. btape: btape.c:427 Moved to end of media We should be in file 3. I am at file 3. This is correct! Now the important part, I am going to attempt to append to the tape. btape: btape.c:857 Wrote one record of 64412 bytes. btape: btape.c:859 Wrote block to device. btape: btape.c:410 Wrote EOF to /dev/nsa0 btape: btape.c:387 Rewound /dev/nsa0 Done appending, there should be no I/O errors Doing Bacula scan of blocks: 1 block of 64448 bytes in file 1 End of File mark. Total files=3D1, blocks=3D1, bytes =3D 64448 End scanning the tape. We should be in file 4. I am at file 1. This is NOT correct!!!! The above Bacula scan should have output identical to what follows. Please double check it ... =3D=3D=3D Sample correct output =3D=3D=3D 1 block of 64448 bytes in file 1 End of File mark. 2 blocks of 64448 bytes in file 2 End of File mark. 3 blocks of 64448 bytes in file 3 End of File mark. 1 block of 64448 bytes in file 4 End of File mark. Total files=3D4, blocks=3D7, bytes =3D 451136 =3D=3D=3D End sample correct output =3D=3D=3D If the above scan output is not identical to the sample output, you MUST correct the problem or Bacula will not be able to write multiple Jobs to the tape. =3D=3D=3D End Append files test =3D=3D=3D * The tape is reportet by FreeBSD as follows: sa0 at ahc1 bus 0 target 3 lun 0 sa0: <HP C5713A H910> Removable Sequential Access SCSI-2 device sa0: 40.000MB/s transfers (20.000MHz, offset 32, 16bit) ch0 at ahc1 bus 0 target 3 lun 1 ch0: <HP C5713A H910> Removable Changer SCSI-2 device ch0: 40.000MB/s transfers (20.000MHz, offset 32, 16bit) ch0: 6 slots, 1 drive, 0 pickers, 0 portals and: brueffer@ramses:/usr/local/etc # camcontrol devlist <PLEXTOR CD-R PX-R412C 1.07> at scbus0 target 5 lun 0 (cd0,pass0) <IBM DDYS-T36950M SC4D> at scbus1 target 0 lun 0 (pass1,da0) <HP C5713A H910> at scbus1 target 3 lun 0 (sa0,pass2) <HP C5713A H910> at scbus1 target 3 lun 1 (ch0,pass3) Did I miss something? Best Regards, Markus |