Try erasing the tape with mt. If that doesn't solve the problem, use another tape. The btape "test" program does not need the volume to be labeled by Bacula. It will in fact write over any existing label.
On Wednesday 14 June 2006 14:42, Nikolai Brieger wrote: > **********bug report************ > ******************************** > > problem - cannot read/write on tape with Bacula > tar and cpio are working but Bacula don't want to read and write on the > tape. Due to some strange reasons the volume is not detected and cannot be > mounted. There are a lot of Input/Output Errors. Please have a look at the > following outputs. Maybe it is also a problem with the SCSI card? I mean, > it has shown me a lot of these errors ("parity error detected in Data-in > phase") until I disabled the parity check in the boot settings. I also > checked already the cable and the terminations. But I don't know what to do > as I'm just a trainee trying to get Bacula working for a company system. I > would be pleased to recieve some help > Thanks > > OS: Redhat, Centos > Kernel: 2.6.9-34.0.1 EL > Bacula Version: 1.38.9 > Tapedrive: Sony SDX-700C > Cartridge: Sony SDX3-100C > > cat /proc/scsi/scsi > Attached devices: > Host: scsi0 Channel: 00 Id: 00 Lun: 00 > Vendor: SONI Model: SDX-700*unmount SDX3-100C > 3002 Device "SDX-700C" (/dev/nst0) unmounted. > *mount SDX3-100C > block.c:945 Read error at file:blk 0:0 on device "SDX-700C" (/dev/nst0). > ERR=Input/output error. block.c:945 Read error at file:blk 0:0 on device > "SDX-700C" (/dev/nst0). ERR=Input/output error. 3902 Cannot mount Volume on > Storage Device "SDX-700C" (/dev/nst0) because: Requested Volume "" on > "SDX-700C" (/dev/nst0) is not a Bacula labeled Volume, because: > ERR=block.c:945 Read error at file:blk 0:0 on device "SDX-700C" > (/dev/nst0). ERR=Input/output error. 3905 Device "SDX-700C" (/dev/nst0) > open but no Bacula volume is mounted. If this is not a blank tape, try > unmounting and remounting the VolumeC Rev: 0"0' Type: > Sequential-Access ANSI SCSI revision: 02 > > > ******Config.out**************** > Host: i686-pc-linux-gnu -- redhat > Bacula version: 1.38.9 (02 May 2006) > Source code location: . > Install binaries: /usr/sbin > Install config files: /etc/bacula > Scripts directory: /etc/bacula > Working directory: /var/bacula/ > PID directory: /var/run > Subsys directory: /var/lock/subsys > Man directory: /usr/share/man > Data directory: /usr/share > C Compiler: gcc 3.4.5 > C++ Compiler: /usr/bin/g++ 3.4.5 > Compiler flags: -g -O2 -Wall > Linker flags: > Libraries: -lpthread -ldl > Statically Linked Tools: no > Statically Linked FD: no > Statically Linked SD: no > Statically Linked DIR: no > Statically Linked CONS: no > Database type: MySQL > Database lib: -L/usr/lib/mysql -lmysqlclient_r -lz > > Job Output Email: [EMAIL PROTECTED] > Traceback Email: user > SMTP Host Address: localhost > > Director Port: 9101 > File daemon Port: 9102 > Storage daemon Port: 9103 > > Director User: > Director Group: > Storage Daemon User: > Storage DaemonGroup: > File Daemon User: > File Daemon Group: > > SQL binaries Directory /usr/bin > > Large file support: yes > Bacula conio support: yes -ltermcap > readline support: no > TCP Wrappers support: no > TLS support: yes > ZLIB support: yes > enable-smartalloc: yes > enable-gnome: yes Version 2.x > enable-wx-console: no > enable-tray-monitor: yes > client-only: no > build-dird: yes > build-stored: yes > ACL support: yes > Python support: no > > > ******* BTAPE *********** > Tape block granularity is 1024 bytes. > btape: butil.c:272 Using device: "/dev/nst0" for writing. > btape: btape.c:338 open device "SDX-700C" (/dev/nst0): OK > > *test #before labeling the volume > === 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 ... > 03-Jun 17:54 btape: btape Error: block.c:538 Write error at 0:1 on > device "SDX-700C" (/dev/ nst0). ERR=Input/output error. > 03-Jun 18:01 btape: btape Error: Error writing final EOF to tape. This > Volume may not be readable.dev.c:1542 ioctl MTWEOF error on "SDX-700C" > (/dev/nst0). ERR=Input/output error. btape: btape.c:791 Error writing block > to device. > > *test #after labeling the volume > === 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 ... > 14-Jun 12:29 btape: btape Fatal error: Attempt to write on read-only > Volume. btape: btape.c:791 Error writing block to device. > > #So what could be wrong now and what can I do? Even after labeling the > volume it doesn't work #And after closing btape, there is no label > anywhere? Why? > > *status > Bacula status: file=0 block=0 > Device status: ONLINE IM_REP_EN file=0 block=1 > btape: btape.c:1759 Device status: 641. ERR=dev.c:1542 ioctl MTWEOF > error on "SDX-700C" (/dev/nst0). ERR=Input/output error. > > > ****** CONSOLE ************ > *mount SDX3-100C > 3905 Device "SDX-700C" (/dev/nst0) open but no Bacula volume is mounted. > If this is not a blank tape, try unmounting and remounting the Volume. > > *unmount SDX3-100C > 3002 Device "SDX-700C" (/dev/nst0) unmounted. > > *mount SDX3-100C > block.c:945 Read error at file:blk 0:0 on device "SDX-700C" (/dev/nst0). > ERR=Input/output error. block.c:945 Read error at file:blk 0:0 on device > "SDX-700C" (/dev/nst0). ERR=Input/output error. 3902 Cannot mount Volume on > Storage Device "SDX-700C" (/dev/nst0) because: Requested Volume "" on > "SDX-700C" (/dev/nst0) is not a Bacula labeled Volume, because: > ERR=block.c:945 Read error at file:blk 0:0 on device "SDX-700C" > (/dev/nst0). ERR=Input/ output error. > 3905 Device "SDX-700C" (/dev/nst0) open but no Bacula volume is mounted. > If this is not a blank tape, try unmounting and remounting the Volume > > #but I already labeled the tape following the intructions of the bacula > manual and wrote an EOF which should avoid I/O Errors #unmounting and > remounting don't work and I even labeled it with btape and added it than to > the media catalog -- Best regards, Kern ("> /\ V_V All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users