Hi. I'm having a problem completing the btape test routine. The system is running FreeBSD 6.1-release-p1 on a sparc64. The tape drive is a Quantum DLT 4000.
mt -f /dev/nst0 rewind tar cvf /dev/nst0 . mt -f /dev/nst0 rewind tar tvf /dev/nst0 finishes fine, but when I run btape test, I get the following: shiraz# btape -c ../etc/bacula-sd.conf /dev/nsa0 Tape block granularity is 1024 bytes. btape: butil.c:272 Using device: "/dev/nsa0" for writing. btape: btape.c:338 open device "Drive-1" (/dev/nsa0): OK *test === Write, rewind, and re-read test === I'm going to write 1000 records and an EOF then write 1000 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:795 Wrote 1000 blocks of 64412 bytes. btape: btape.c:469 Wrote 1 EOF to "Drive-1" (/dev/nsa0) btape: btape.c:811 Wrote 1000 blocks of 64412 bytes. btape: btape.c:469 Wrote 1 EOF to "Drive-1" (/dev/nsa0) btape: btape.c:469 Wrote 1 EOF to "Drive-1" (/dev/nsa0) btape: btape.c:820 Rewind OK. 1000 blocks re-read correctly. 02-Nov 16:52 btape: btape Error: block.c:944 Read error at file:blk 0:1000 on device "Drive-1" (/dev/nsa0). ERR=Operation not permitted. btape: btape.c:832 Read block 1001 failed! ERR=Operation not permitted I've tried the various settings suggested for FreeBSD, but still can't get anything working. This is the device section from my bacula-sd.conf: Device { Name = Drive-1 Drive Index = 0 Media Type = DLT-4000 Archive Device = /dev/nsa0 AutomaticMount = yes; # when device opened, read it #Changed to no AlwaysOpen = no; #Changed to no RemovableMedia = no; #Changed to yes RandomAccess = yes; AutoChanger = no #FreeBSD Specific - Added 10/24/06 Hardware End of Medium = no BSF at EOM = yes Backward Space Record = no Backward Space File = no Fast Forward Space File = no TWO EOF = yes # # Enable the Alert command only if you have the mtx package loaded # Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" } If anybody has any suggestions that'd be great! Thanks, Kevin ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users