09-15-04 02:54 PM
Gabor Melis wrote:
>
> This box is a Dell Poweredge 2600 running Debian/Sarge with kernel 2.6.8.
The
> problem is with the tape:
>
> # tar cf /dev/st0 /lib/modules/2.6.8-1-686-smp/
> # tar xfv /dev/st0
> <produces nothing or "Cannot allocate memory">
>
> After heavy googling I tried passing tar the block size explicitly with -b
> (for both invocations). It is not until '-b 216' that tar finally manages
to
> read back the archive. I can find no documentation for the Quantum DLT7000
> that mentions a minimum block size and since it is a critical server I'm a
> bit worried about this magic number that _seems_ to make it work.
There isn't really a magic number. It just needs to be consistent. You
need to use the same block size when you extract from the tape as you
did when you created the archive. I use a block size of 1024 (512 KB)
in order to get good performance:
tar cvbf 1024 /dev/tape /lib/modules
mt rewind
mkdir test
cd test
tar xvbf 1024 /dev/tape
If you don't specify a block size, GNU tar defaults to 10 KB blocks.
I'm not sure why this wouldn't work, albeit somewhat slowly.
What version of tar are you using? I think there were some problems
with some 1.12 versions of GNU tar. If that is what you have, I'd try
upgrading to 1.13. Mine is 1.13.25 and it works fine.
> # Drive is backwards compatible, use older modes (e.g. from above) as
> required.
> mode1 blocksize=0 density=0x85 # 35GB + compression
> mode2 blocksize=0 density=0x84 # 35GB, no compression
> mode3 blocksize=0 density=0x83 # 20GB + compression (DLT4000 mode)
> mode4 blocksize=0 density=0x82 # 20GB, no compression (DLT4000 mode)
> }
I think that blocksize=0 refers to variable block size.
Good luck,
Steve
--
________________________________________
______________________________
Steve Cousins, Ocean Modeling Group Email: cousins@umit.maine.edu
Marine Sciences, 208 Libby Hall http://rocky.umeoce.maine.edu
Univ. of Maine, Orono, ME 04469 Phone: (207) 581-4302
[ Post a follow-up to this message ]
|