Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
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.
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?
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
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.
with compression off will tell the total capacity and speed of the tape
I only meant that I should know how much fits on the tape with compression off.
Quote:
Originally Posted by choogendyk
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.
Thats what I wanted to find out.
Quote:
Originally Posted by choogendyk
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.
Well I guess that's the only option if my first thought isn't possible, but it'll take loooooong time..
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.