Pierre Bernhardt schrieb:
Hi after some time.
The problem comes from a usb to scsi adapter interface which have
some timing problems under vmware.
I've changed to a adaptec 2940 and now the problem is gone.

MfG...
Pierre Bernhardt

> Hi,
> 
> I have no more idea and my search was not successful.
> 
> btape test command will bring my tapes and/or st in an hanging
> state.
> 
> Here my config I made the latest test:
> 
> Device {
>   Name = Loader_8x12
>   Media Type = DDS-3
>   Archive Device = /dev/nst0
>   AutomaticMount = yes;               # when device opened, read it
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
>   RandomAccess = no;
>   Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/sg1
>   AutoChanger = yes
>   Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
>   Hardware End of File = no
>   TWOEOF = yes
>   Fast Forward Space File = no
> }
> 
> I've checked first without Hardware End of File, TWOEOF and
> Fast Forward Space File settings with nearly same results.
> 
> My system is Debian Sarge 2.6.8-2-386 and btape is from
> sarge DVD and has release 1.36.2.
> 
> Here the test with debug:
> 
> debian:~# btape -c /etc/bacula/bacula-sd.conf -d 99 -v -p /dev/nst0
> Tape block granularity is 1024 bytes.
> btape: stored_conf.c:453 Inserting director res: debian-mon
> btape: stored_conf.c:453 Inserting device res: Loader_8x12
> btape: butil.c:258 Using device: "/dev/nst0" for writing.
> btape: dev.c:215 init_dev: tape=1 dev_name=/dev/nst0
> btape: dev.c:255 open_dev: tape=1 dev_name=/dev/nst0 vol=
> btape: dev.c:260 open_dev: device is tape
> btape: dev.c:310 open_dev: tape 3 opened
> btape: butil.c:170 Device opened for read.
> btape: btape.c:335 open_dev /dev/nst0 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: dev.c:374 rewind_dev /dev/nst0
> btape: btape.c:786 Wrote 1000 blocks of 64412 bytes.
> btape: dev.c:1200 weof_dev
> btape: btape.c:465 Wrote 1 EOF to /dev/nst0
> btape: btape.c:802 Wrote 1000 blocks of 64412 bytes.
> btape: dev.c:1200 weof_dev
> btape: btape.c:465 Wrote 1 EOF to /dev/nst0
> btape: dev.c:1200 weof_dev
> btape: btape.c:465 Wrote 1 EOF to /dev/nst0
> btape: dev.c:374 rewind_dev /dev/nst0
> btape: btape.c:811 Rewind OK.
> 1000 blocks re-read correctly.
> 12-Oct 13:44 btape: btape Error: block.c:782 Read error at file:blk 0:1000 on
> device /dev/nst0. ERR=Input/output error.
> btape: btape.c:823 Read block 1001 failed! ERR=Input/output error
> *status
>  Bacula status: file=0 block=1000
> btape: btape.c:1707 Device status: 0. ERR=dev.c:639 ioctl MTIOCGET error on
> /dev/nst0. ERR=Input/output error.
> 
> *quit
> btape: dev.c:1342 really close_dev /dev/nst0
> btape: dev.c:1477 term_dev
> Pool   Maxsize  Maxused  Inuse
> NoPool      256        7      0
> NAME        130        0      0
> FNAME       256        7      0
> MSG       64512        3      0
> EMSG       1024        2      0
> 
> debian:~# mt status
> /dev/tape: Input/output error
> 
> It's look like that the EOF marker could not be found.
> An second drive (DDS-2) which I've checked before has
> exactly the same problem.
> 
> The tape will not really further work but after remove/add
> scsi operation on /proc/scsi/scsi the tape is normaly
> back and functional.
> 
> Normal stores and recovers with dump has no problems shown.



-------------------------------------------------------------------------
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

Reply via email to