Operating System - HP-UX
1829857 Members
1997 Online
109993 Solutions
New Discussion

dd blocksize for DLT tapes

 
SOLVED
Go to solution
Stuart Abramson
Trusted Contributor

dd blocksize for DLT tapes

I'm copying a big file (3 GB) to DLT tape with "dd", and it's taking forever. Is the problem that I am using the default blocksize, 512, and writing a lot of short blocks?

Should I increase the blocksize with "bs=". How do I know what to use?
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: dd blocksize for DLT tapes

Hi Stuart,

I would bump the obs up to about 1000k as long as the obs is a multiple of your ibs everything will work fine.

Clay
If it ain't broke, I can fix that.
Stuart Abramson
Trusted Contributor

Re: dd blocksize for DLT tapes

I don't know what my input block size is?
A. Clay Stephenson
Acclaimed Contributor

Re: dd blocksize for DLT tapes

Hi Stuart,

One other utility you might look into, if it is Hp to HP is ftio; it forks into multiple processes so that reads and writes are going on simultaneously and you can set the block size on the command line. Man ftio for details.

Clay
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: dd blocksize for DLT tapes

Ok Stuart,

The ibs by default is 512. You can do this:

dd if=myfile ibs=5k obs=1000k of=/dev/rmt/2m

This will work fine and if the last input block is a partial read then it will take care of it.

One thing to be aware of, is that dd may not copy the file with the exact output size; on some implementations it made pad the last output block with NUL's. Normally this does no harm. That's why I would suggest you use ftio -
it takes care of file ownerships and permissions and lengths.

Clay
If it ain't broke, I can fix that.
Carlos Fernandez Riera
Honored Contributor

Re: dd blocksize for DLT tapes


If your file is a raw device use rlvolxx instead lvolxx.

When using ibs and obs option whit the same size it is better do use bs (both ibs and obs).

Recommended bs for DLT is 68k .
unsupported