how to determine the tape usage for a streamer?
Hi,
I'm making backups on a tape-drive using tar: Code:
tar -cf /dev/st0 /somedir) Code:
mt -f /dev/st0 compression Alex |
Do you mean how much total data can you write to it now? Well, that depends on the data. Some data is compressible, and some data is not. I've got some partitions that compress to 1/10th of their former size and others that compress to about 90% of their former size. Logs versus images.
I've typically used amtapetype (a utility that comes with Amanda) to assess a tape. It will diagnose whether you have compression on, and, with compression off will tell the total capacity and speed of the tape. It takes a long time to run. You don't need the rest of Amanda to run it, but you could install Amanda and then use that utility. I also use server side software compression rather than the hardware compression on the drive. That gives me more control over planning what will fit on the tape. With adequate cpu, memory, and holding space on the server, that works well for me. In other situations, it might not. |
Hi choogendyk,
I actually meant to read someway the end-block of a tape that has data on it and calculate how much of the tape is used so far. I especially want to do this to be able to compare it to server-side compression, as you mentioned. How much should fit on the tape without compression should be written on it.. is there a reason to doubt that info? Alex |
I'm not clear on your last question.
You can certainly get to the end of written data with `mt eom` (end of media). But I don't know that you can tell where you are, how much you passed over to get there, or how much space is left. The tools like amtapetype treat the tape as a black box. Throw data at it as fast as you can for as long as you can. Record how fast it accepts the data, and record the point at which it throws up its hands and says it can't take anymore. Do that with easily compressible data. Do it with uncompressible data. Compare notes and determine whether the tape is compressing (actually, you can diagnose that in some other ways too, by comparing the speed it takes data between those two cases). So, I think the only way you can know the behavior, capacity, and compression performance of your tape drive is by doing the same sorts of things. Use dd to throw large quantities of data at it, and/or use a utility like amtapetype. |
Quote:
Quote:
Quote:
Quote:
Thanks for your help! |
i have same problem , "to know space left on Tape" i am using LT03. i wrote a script that will list the contents and Total space + used space on Tape.
check this and let me know if you have some problems. thanks Code:
|
All times are GMT -5. The time now is 04:37 AM. |