From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199801100853.JAA03644@kotter.atko.at> Date: Sat, 10 Jan 1998 09:53:16 +0100 From: Stefan Traby Subject: Re: RH 5.0 and DAT (including hint: QFA-restore with tar+mt) Hi ! > in problems that i've had in the past with my DAT, i've had to do the > following: > > mt -f /dev/st0 setblk 32768 > > to set the BLOCK SIZE to 32k... after i did this, everything would > communicate with /dev/st0 correctly... Have you an old odd archive phyton DAT ? Can you tell me vendor, model ? I can't imagine that. Most (almost all) DAT supports variable length and fixed length records. The fine difference is the default. Most DAT's (all HP's) came with variable length records and some odd streamer with fixed length. The problem when restoring - you must know the block-size or odd effects may happen (depending on the SILI-Bit (suppress incorrect length indicator) a DAT read command fails, or tar would give up. Ok, one can determinate the block-size by repeated rewinding and read with different block sizes with SILI-Bit set to zero. If no "CHECK CONDITION" comes back, the correct size is found. But did you know that ? :-=) If "mt -f /dev/st0 setblk 0" works (try this) it's IMHO better to use it. This sets the tape to variable length records. Since tar uses fixed blocks, the result is fixed length records (tar) encapsulated in variable length records (tape). Another reason not to use large (32KB or more) fixed records is ECC. In fixed mode, ECC is made over the whole block. If the block-size is too big, ECC may be inefficient. And, even if you use variable-length records, you can manually use QFA with tar if you have an index-file. rec 1: module rec 3: 00index.txt rec 916: System.map rec 1181: System.map.000 rec 1549: System.map.old rec 1816: System.old rec 2076: bin/ rec 2077: bin/fillup rec 2169: bin/tar you can seek to bin/tar with "mt rewind ; mt fsr 43380" (multiply record number by a factor 20) This works with all DAT's (SCSI-II or SCSI-I tandberg seek method) I've ever used. ( If you have multiple "partitions" you must first switch to the right one. If you have multiple tar-sessions, you must do more trivial arithmetic or skip over marks first. ) (Same trick works with some old QIC drives (Archive/Maynard)) -- ciao - Stefan Stefan Traby phone: +43-3133-6107-2 Mitterlasznitzstr. 13 fax: +43-3133-6107-9 8302 Nestelbach mailto://stefan@sime.com Austria -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com