Operating System - HP-UX
1844425 Members
2462 Online
110233 Solutions
New Discussion

How can I tell which tape device uses compression?

 
SOLVED
Go to solution
RobertCarback
Frequent Advisor

How can I tell which tape device uses compression?

Just purchased a new DAT72 tape drive and see the following devices --
/dev/rmt/0m
/dev/rmt/0mnb
/dev/rmt/c3t3d0BESTn
/dev/rmt/c3t3d0DDSb
/dev/rmt/0mb
/dev/rmt/c3t3d0BEST
/dev/rmt/c3t3d0BESTnb
/dev/rmt/c3t3d0DDSn
/dev/rmt/0mn
/dev/rmt/c3t3d0BESTb
/dev/rmt/c3t3d0DDS
/dev/rmt/c3t3d0DDSnb

Which is/are used for compression?
9 REPLIES 9
Court Campbell
Honored Contributor

Re: How can I tell which tape device uses compression?

The ones with the word BEST.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
James R. Ferguson
Acclaimed Contributor

Re: How can I tell which tape device uses compression?

Hi Robert:

The manpages for 'mt(7)' offer the insights you want.

Regards!

...JRF...
OldSchool
Honored Contributor

Re: How can I tell which tape device uses compression?

and the 0m / Omn should be ok as well.

try lssf /dev/rmt/0m, it should say "best available" for density
RobertCarback
Frequent Advisor

Re: How can I tell which tape device uses compression?

Thanks,
I would imagine that the 'n' after BEST is no-rewind. What is 'BESTb' ?
Court Campbell
Honored Contributor
Solution

Re: How can I tell which tape device uses compression?

It's berkeley compression vs. at&t. b = berkeley.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
RobertCarback
Frequent Advisor

Re: How can I tell which tape device uses compression?

Thanks!
A. Clay Stephenson
Acclaimed Contributor

Re: How can I tell which tape device uses compression?

Note: There is no such thing as Berkeley or AT&T compression. The 'b' in no way indicates compression but is rather the "style" attribute and determines the way the tape is positioned after a read of a file on a norewind device. Do a man 7 mt and look under the "Tape Behavioral Characteristics" section for a detailed explanation. When given a choice, choose the Berkeley style because the AT&T style to my mind is insane.
If it ain't broke, I can fix that.
Court Campbell
Honored Contributor

Re: How can I tell which tape device uses compression?

Thanks, Clay. You learn something new everyday.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Raju_S
Frequent Advisor

Re: How can I tell which tape device uses compression?

Hello Robert,

The word "BEST" indicates that with this device file, the highest possible capacity format will be used. This will also include data compression if it is supported by the device. The character "n" shows that the tape will not be rewound at the end of the operation. The "b" character shows that the tape drive will follow the Berkley style instead of AT&T.

Tape Drive Device File Options


Density Use one of the four: BEST, NOMOD, DDS, or D. The BEST option uses the highest capacity, including compression. The NOMOD option can be used on DDS and 8-mm devices only, and it maintains the density of previously written data. DDS shows the number of the DDS standard used, i.e., DDS2 or DDS3. The D option followed by a number defines the density of the tape as a numeric value.

C Compress. The optional number following C shows the compression algorithm.

n No rewind at the end of the operation.

b Berkley-style tape behavior.

w Wait for the physical completion of the operation before returning the status.

Regards