- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- writing a large filesystem to tape with tar
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
09-24-2002 05:42 PM
09-24-2002 05:42 PM
Would the following work?
1. tar cvf - ./
I am under the belief that a tar will not work with anything larger than 2GIG. If this is the case, what are my options?
All help would be greatly appreciated. Thanks in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 05:52 PM
09-24-2002 05:52 PM
Re: writing a large filesystem to tape with tar
Depending on the data type, if it is very compressable data, then you may actually be able to get all of the data on the tape with just a generic tar command (tar -cf /dev/rmt/0m ./
Tar will behave very well in this situation. If you were doing something like 'tar -cvf /dir/file.tar ./
If neither of those is an issue, then you won't have a problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 05:57 PM
09-24-2002 05:57 PM
SolutionIn HP-UX, tar and cpio have a 2 Gb limit on the file size. The way you have it on your command line, tar should be fine as long you don't have any files in your filesystem that are over 2 Gb. Your way will have tar create a regular archive, and then you are compressing the archive.
I don't know if gzip will work like that or not, but I've had pretty good luck with the 'compress' program. I'm also a fan of cpio, so I'd try it like this:
find . | cpio -ocm | compress >/dev/rmt/0m
and then on the Sun box:
compress
assuming that those options for cpio are correct for Sun Solaris. I'm not a Sun guy [I don't have any to play with :( ] so I don't know.
I'd suggest trying it with a couple of small files first if you can, that way you will know if it works or not.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 06:13 PM
09-24-2002 06:13 PM
Re: writing a large filesystem to tape with tar
# find /
Those files (if any) can be compressed first before they are tar'ed. The safest (with cross platform tar) is to use just the simplest means ..
# tar cvf /dev/rmt/0m ./
Another concern I have is how would you know if it'll fit the tape (even with gzip). I would almost wanted to suggest splitting the copy to 2 tapes instead, 3GB in each to play safe (at least that's what I would do if I were you).
my $0.02
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 07:32 PM
09-24-2002 07:32 PM
Re: writing a large filesystem to tape with tar
compressdir.
This should bring the file system to the size what you are expecting.
After restoration you should do a uncompressdir
to remove them from .Z extensions.
Just check it out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2002 09:15 AM
09-26-2002 09:15 AM
Re: writing a large filesystem to tape with tar
http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.13.25/
Details on using gnutar/gtar are at:
http://www.gnu.org/manual/tar/html_mono/tar.html
It would involve installing on your HP box, and possibly on the Sun box, but it would do what you are trying to do without any fuss at all, provided that it will fit on the tape.
Speaking of fitting it on the tape, relying on the DAT's HW compression is probably your best choice for compatiblity. The compression/decompression is all hidden from the OS, and all DAT drives that can read a given tape can also uncompress it if it is compressed. One thing you should avoid is multiple compression algorithms. If you compress a file, then try to compress it again, you often end up actually growing the 2-nth version a little. Pick one compression technique and use it once. As I said, I'd just let the tape drive do that part, but lots of ways will work.
Regards, --bmr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2002 09:31 AM
09-26-2002 09:31 AM
Re: writing a large filesystem to tape with tar
tar -zcvf ....
The z signifies compression.