Hello list, I have always problems with my tape drive and Bacula. A problem resolved, another appears. I'm despaired to make this drive working with Bacula ... this is my last mail before I plan to backup on disk only (which is a pity enough ..).
First my complete configuration : OS: Linux (Debian) with kernel 2.6.15 Bacula: 1.38.9 with PostgreSQL (8.1.4) Tape drive: Sony SDX-500C (AIT2) phoenix:/var/backups# cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 06 Lun: 00 Vendor: SONY Model: SDX-500C Rev: 0204 Type: Sequential-Access ANSI SCSI revision: 02 Scsi: phoenix:/var/backups# cat /proc/scsi/aic7xxx/0 Adaptec AIC7xxx driver version: 7.0 Adaptec 2940 Ultra SCSI adapter aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs Tape drive is on ID 06: Target 6 Negotiation Settings User: 20.000MB/s transfers (10.000MHz, offset 127, 16bit) Goal: 20.000MB/s transfers (10.000MHz, offset 8, 16bit) Curr: 20.000MB/s transfers (10.000MHz, offset 8, 16bit) Channel A Target 6 Lun 0 Settings Commands Queued 3098509 Commands Active 0 Command Openings 1 Max Tagged Openings 0 Device Queue Frozen Count 0 This is the problem I currently have : I followed the bacula documentation about "variable block size" (setblk 0) and to init the drive correctly under linux (stoptions 7). Here are the full operations I made: phoenix:/etc/bacula# mt -f /dev/nst0 setblk 0 phoenix:/etc/bacula# mt -f /dev/nst0 stoptions 7 phoenix:/etc/bacula# mt -f /dev/nst0 rewind phoenix:/etc/bacula# mt -f /dev/nst0 weof phoenix:/etc/bacula# mt -f /dev/nst0 rewind phoenix:/etc/bacula# mt -f /dev/nst0 status drive type = Generic SCSI-2 tape drive status = 822083584 sense key error = 0 residue count = 0 file number = 0 block number = 0 Tape block size 0 bytes. Density code 0x31 (unknown). Soft error count since last status=0 General status bits on (41010000): BOT ONLINE IM_REP_EN phoenix:/etc/bacula# tapeinfo -f /dev/nst0 mtx: Request Sense: Long Report=yes mtx: Request Sense: Valid Residual=no mtx: Request Sense: Error Code=0 (Unknown?!) mtx: Request Sense: Sense Key=No Sense mtx: Request Sense: FileMark=no mtx: Request Sense: EOM=no mtx: Request Sense: ILI=no mtx: Request Sense: Additional Sense Code = 00 mtx: Request Sense: Additional Sense Qualifier = 00 mtx: Request Sense: BPV=no mtx: Request Sense: Error in CDB=no mtx: Request Sense: SKSV=no INQUIRY Command Failed phoenix:/etc/bacula# /etc/init.d/bacula-sd start Starting Bacula Storage daemon: bacula-sd. phoenix:/etc/bacula# /etc/init.d/bacula-director start Starting Bacula Director: bacula-dir. (now switching to bacula console) *label Automatically selected Storage: tape-st Enter new Volume name: Full-Tape-0001 Defined Pools: 1: canis-incr-disk-pool 2: full-tape-pool Select the Pool (1-2): 2 Connecting to Storage daemon tape-st at 164.15.xxx.xxx:9103 ... Sending label command for Volume "Full-Tape-0001" Slot 0 ... 3000 OK label. Volume=Full-Tape-0001 Device="sony SDX-500C" (/dev/nst0) Catalog record for Volume "Full-Tape-0001", Slot 0 successfully created. Requesting to mount sony SDX-500C ... 3001 Device "sony SDX-500C" (/dev/nst0) is mounted with Volume "Full-Tape-0001" *run A job name must be specified. The defined Job resources are: 1: canis-job 2: canis-job-restore Select Job resource (1-2): 1 Run Backup job JobName: canis-job FileSet: canis-fs Level: Full Client: canis-fd Storage: tape-st Pool: full-tape-pool When: 2006-07-13 09:52:51 Priority: 10 OK to run? (yes/mod/no): yes Job started. JobId=5 * 13-Jul 09:53 phoenix-dir: Start Backup JobId 5, Job=canis-job.2006-07-13_09.53.02 13-Jul 09:53 phoenix-sd: Wrote label to prelabeled Volume "Full-Tape-0001" on device "sony SDX-500C" (/dev/nst0) * (The job completes successfully) *umount Automatically selected Storage: tape-st 3002 Device "sony SDX-500C" (/dev/nst0) unmounted. *quit phoenix:/etc/bacula# bconsole Connecting to Director phoenix:9101 1000 OK: phoenix-dir Version: 1.38.9 (02 May 2006) Enter a period to cancel a command. *mount Using default Catalog name=catpgsql DB=bacula2 Automatically selected Storage: tape-st block.c:263 Volume data error at 0:0! Wanted ID: "BB02", got "". Buffer discarded. 3902 Cannot mount Volume on Storage Device "sony SDX-500C" (/dev/nst0) because: Requested Volume "" on "sony SDX-500C" (/dev/nst0) is not a Bacula labeled Volume, because: ERR=block.c:263 Volume data error at 0:0! Wanted ID: "BB02", got "". Buffer discarded. 3905 Device "sony SDX-500C" (/dev/nst0) open but no Bacula volume is mounted. If this is not a blank tape, try unmounting and remounting the Volume. *quit phoenix:/etc/bacula# /etc/init.d/bacula-sd stop Stopping Bacula Storage daemon: bacula-sd. phoenix:/etc/bacula# /etc/init.d/bacula-sd start Starting Bacula Storage daemon: bacula-sd. phoenix:/etc/bacula# bconsole Connecting to Director phoenix:9101 1000 OK: phoenix-dir Version: 1.38.9 (02 May 2006) Enter a period to cancel a command. *mount Using default Catalog name=catpgsql DB=bacula2 Automatically selected Storage: tape-st 3905 Device "sony SDX-500C" (/dev/nst0) open but no Bacula volume is mounted. If this is not a blank tape, try unmounting and remounting the Volume. I'v read the bacula doc at least 3 times (especially the FAQ and the Testing your drive with Bacula) After this reading I ran the same job with the following options in bacula-sd.conf : - First with BlockPositioning = no, without success - Second with MinimumBlockSize = 1024 and MaximumBlockSize = 1024, without success - Third with MinimumBlockSize = 1024 and MaximumBlockSize = 1024 and BlockPositioning = no, without success !! Important: the "btape test" completes successfully (with /dev/nst0). I also did a "btape fill", with success too. I'm 100% sure that the tapes are ok (they are new) and I've cleaned the tape too ... The scsi cable should be OK, the jobs never fail Any idea before I throw this drive through the window ... ? In advance thanks, and sorry for my poor english Julien ------------------------------------------------------------------------- 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