cancel
Showing results for 
Search instead for 
Did you mean: 

size of the data in tape.

Lashin
Advisor

size of the data in tape.

hi..
Please provide the commands to find.

1 size of the data inside the tape inserted on tape drive.(how much data occupied on tape)
2 capacity of the tape inserted on tape drive.(how much data it can accomedate maximum)


6 REPLIES
Steven Schweda
Honored Contributor

Re: size of the data in tape.

> Please provide the commands to find.

uname -a

If your tape drive is compressing the data,
then none of these data may be available or
useful.
Lashin
Advisor

Re: size of the data in tape.

HP-UX hosting1 B.11.23 U ia64 2030476592 unlimited-user license
Dennis Handly
Acclaimed Contributor

Re: size of the data in tape.

>Please provide the commands to find.

What tool did you use to write the tape?
For something like DP, there maybe a GUI button that tells you this info.
Lashin
Advisor

Re: size of the data in tape.

backup is happenging through tar. No GUI is used..i am not aware of the source data size copying to the tape. but i want to know the size of data on tape.
Shrikant Lavhate
Esteemed Contributor

Re: size of the data in tape.


#mt -f status
Will it remain a personal, if I broadcast it here!
Alzhy
Honored Contributor

Re: size of the data in tape.

Lashin

1 size of the data inside the tape inserted on tape drive.(how much data occupied on tape)

Nearly impossible to discern if you do not tell us what software you're using/you've used on the tape.

If the tape format is TAR, then you can do a series of mt and tar combos:

mt -f /dev/rmt0mn rew
tar tvf /dev/rmt/0mn
mt /dev/rmt0mn fsf 1
tar tvf /dev/rmt/0mn
Until you hit EOT

Then sum up the file sizes. Note it will give you only an estimate though if compression was used on the tape and the type of data backed up.


2 capacity of the tape inserted on tape drive.(how much data it can accomedate maximum)

Generally - mt -f /dev/rmt0mn stat

will give you the type of media loaded - DDS4 - will give you 72GB native/140GB compressed, LTO4 - 800GB native/1.6 TB compressed, etc, etc (see www.lto.org and ww.dlt.org for the capacities of various DLT and LTO media)

Note too that the compresses capacity assumes a mix of half ASCII and half non-ASCII data backed up.
Hakuna Matata.