- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- tape size
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 09:41 PM
04-19-2004 09:41 PM
tape size
how to check the size of the tape.
means how many space is available on the
tape.
Amit Singh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 09:57 PM
04-19-2004 09:57 PM
Re: tape size
tar tvf tarfile.tar|awk '{n+=$3; print n}'
the last line indicates the sum of the sizes of all files in the tar files.
You may need to adapt this to your dat /tar type. Then you should make the difference from your dat size and the command output.
Peace, R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 10:12 PM
04-19-2004 10:12 PM
Re: tape size
# dd if=/dev/zero of=/dev/rmt/0m bs=10240
will report the number of 10k blocks that could be written on the tape
there is - as far as I know of - no C API or control command to return the free space left on tape from the current point on (as is available on VCR's)
Then there is another issue of how well the tape is able to compress the data if it is enabled, so predictions can't be made at all
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 10:20 PM
04-19-2004 10:20 PM
Re: tape size
I'm not very familiar with tapes: I use it only for trivial bkups, so get one question for you:
how can you be sure that dd won't overwrite datas on dat?
Peace, R.
PS.Your command is very nice! I'll never thought of such a thing!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 10:34 PM
04-19-2004 10:34 PM
Re: tape size
You are gonna write on it anyway, so who cares
Enjoy, Have FUN! H.Merijn [ who never beleives the sizes writen on the tape boxes ]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 10:45 PM
04-19-2004 10:45 PM
Re: tape size
# tar uf /dev/tape file.ext
?
Thanks for the info,
Peace, Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 10:57 PM
04-19-2004 10:57 PM
Re: tape size
# tar cvf /dev/rmt/0m file ...
will put files on tape using tar. one after the other, streaming. a tape is a start-stop streaming device. you cannot delete a file or insert a file
it will only use as much tape as needed to store the data. if you have more data than the tape can store, you get end-of-tape or end-of-media error, and tar asks for a next tape (which might or might not work on restore). Just be sure the data will fit on one tape, which is what the original poster is trying to find out - I guess.
Imagine an audio tape, on which you recorded your favourite record. After a while you decide that you don't like song #3. You cannot push skip as on a CD player, but you could push fast-forward - while listening to the song played in fast mode - until you hear that the bad song is over, and can listen to song #4. You cannot delete song #3, nor can you insert song #3a
When the CD is longer than would fit on the tape, you have to continue on the back, but the last song on side A is kinda broken
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 11:03 PM
04-19-2004 11:03 PM
Re: tape size
Peace, R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 11:50 PM
04-19-2004 11:50 PM
Re: tape size
do you know how to add points to the answers of your questions?
Look here:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2004 02:29 AM
04-21-2004 02:29 AM
Re: tape size
you can get information about the capacity of a tape by using the command "ddsinfo". To use this command it is necessary to have a DDS-Drive.
This command shows informations about the current drive, tape capacity and values in the drive compression logs. It is also possible to clear the drive compression logs. With this little tool you have always informations about the usage of your tape. But as the others always mentioned the capacity varies with the compression ratio!
This tool is available from http://gatekeep.cs.utah.edu/hppd/cgi-bin/search
Sincerely,
Andreas