From an earlier post this week... Great!
Now you have to modify the mtx-changer.cmd script. This will make sure that the drives are set corectly across reboots. :cmdLoad CALL :debug "Doing mtx -f %ctl% load %slot% %drive%" %MTX% -f %ctl% load %slot% %drive% SET rtn=%ERRORLEVEL% IF ERRORLEVEL 1 GOTO :cmdExit CALL :wait_for_drive %device% REM Force block size to 0 for variable #add this %MT% -f %device% setblk 0 #add this GOTO :cmdExit Rex Wheeler wrote: > It appears that setting the block size to 0 corrected the problem. > Thanks! > > Is this something that I will have to do with each backup job, each > reboot of the operating system, or each power cycle of the tape drive? > > Is there a place in the bacula configuration that I can get bacula to > issue the mt command for me so I don't have to worry about it? > > Thanks, > > Rex > > (Here is the tape info you requested, although probably moot at this > point:) > > C:\Program Files\Bacula\bin>tapeinfo -f Tape0 > Product Type: Tape Drive > Vendor ID: 'QUANTUM ' > Product ID: 'DLT7000 ' > Revision: '296D' > Attached Changer API: No > SerialNumber: 'CX730S2150' > MinBlock:2 > MaxBlock:16777214 > SCSI ID: 0 > SCSI LUN: 0 > Ready: yes > BufferedMode: yes > Medium Type: 0x85 > Density Code: 0x1b > BlockSize: 0 > DataCompEnabled: no > DataCompCapable: yes > DataDeCompEnabled: yes > CompType: 0x10 > DeCompType: 0x10 > BOP: yes > Block Position: 0 > ActivePartition: 0 > EarlyWarningSize: 0 > NumPartitions:0 > MaxPartitions:0 > > > > >> -----Original Message----- >> From: Brian Debelius [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, March 27, 2007 8:21 AM >> To: Rex Wheeler >> Cc: bacula-users@lists.sourceforge.net >> Subject: Re: [Bacula-users] Should tapes drives on windows work? >> >> What does tapeinfo say?, and try this >> >> mt -f Tape0 setblk 0 >> >> then run btape again. >> >> >> Rex Wheeler wrote: >> >>> I tried to get a tape drive working with the storage daemon on >>> > Windows > >>> without success. Before I bang my head against the wall too much, I >>> wanted to ask if in general this works or not. I realize that the >>> Windows side of stuff is still "experimental". >>> >>> I am running Windows 2003 Server that is up to date patch-wise. I am >>> trying to use a DLT-7000 tape drive. The tape drive seems to work >>> correctly with Windows backup and Veritas Backup Exec. The tape >>> > drive > >>> passed both the Quantum and HP DLT diagnostics. >>> >>> I installed the 2.0.3 binaries on the server and set up the >>> configuration files. My director on another machine can communicate >>> > with > >>> it. >>> >>> My problem is that there seems to be some basic issue talking to the >>> tape drive. When I fire up btape and try something simple like >>> > asking > >>> for capabilities I get: >>> >>> *cap >>> Configured device capabilities: >>> EOF BSR BSF FSR FSF FASTFSF !BSFATEOM EOM REM !RACCESS AUTOMOUNT >>> > !LABEL > >>> !ANONVOLS ALWAYSOPEN MTIOCGET >>> Device status: >>> OPENED TAPE LABEL !MALLOC !APPEND !READ !EOT !WEOT !EOF !NEXTVOL >>> > !SHORT > >>> Device parameters: >>> Device name: Tape0 >>> File=0 block=0 >>> Min block=0 Max block=0 >>> Status: >>> Bacula status: file=0 block=0 >>> Device status: BOT ONLINE IM_REP_EN file=0 block=0 >>> btape: ../../stored/btape.c:1799 Device status: 645. >>> ERR=../../stored/dev.c:1545 ioctl MTBSR error on "DLT-7000" (Tape0) >>> . ERR=Input/output error. >>> >>> If I run the btape test command I don't even get past the first >>> > step. > >>> Is there something basic about setting up tape drives under Windows >>> > I am > >>> missing? >>> >>> Rex >>> >>> >>> > ------------------------------------------------------------------------ > >> - >> >>> Take Surveys. Earn Cash. Influence the Future of IT >>> Join SourceForge.net's Techsay panel and you'll get the chance to >>> > share > >> your >> >>> opinions on IT & business topics through brief surveys-and earn cash >>> >>> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE > V > >>> _______________________________________________ >>> Bacula-users mailing list >>> Bacula-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/bacula-users >>> >>> > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users