- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Splitting and merging large size 'tar' files
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
Discussions
Discussions
Discussions
Forums
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
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
тАО03-01-2006 10:53 PM
тАО03-01-2006 10:53 PM
Hi
Can anybody please tell me the best option for splitting and merging large size tar files?
I have a tar file of 1GB size. I need to split that file into two or three part of small size and merge it back to original.
What is the best option to do this in hp-ux os?
Regards
Manoj
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2006 11:00 PM
тАО03-01-2006 11:00 PM
Re: Splitting and merging large size 'tar' files
have never tried it with tar files, but have a look at the split command.
As a side line, why do you have to split the file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2006 11:52 PM
тАО03-01-2006 11:52 PM
Re: Splitting and merging large size 'tar' files
I have used the split command and splitted 1GB tar file into two parts of 500MB.
But I am not able to merge it back to original tar file using 'merge' command.
I am unable to transfer 1GB file thru network, so I want to split this file into small size and transfer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2006 11:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2006 11:56 PM
тАО03-01-2006 11:56 PM
Re: Splitting and merging large size 'tar' files
You can simplt do
cat xa* > original.tar
Rgds
HGH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2006 11:59 PM
тАО03-01-2006 11:59 PM
Re: Splitting and merging large size 'tar' files
What error you are getting when trying to merge ? Also, few things you can try
1) http://www.chami.com/Tips/internet/110896I.html
2) gzip -9 which gives the best compression ratio. You canb try to .gz the files and send it across.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2006 11:59 PM
тАО03-01-2006 11:59 PM
Re: Splitting and merging large size 'tar' files
You can even do
cat part* | tar xvf -
to unpack without physically merging.
rgds
HGH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2006 12:09 AM
тАО03-02-2006 12:09 AM
Re: Splitting and merging large size 'tar' files
# split -b 10m HWE1100.depot
# ls
xaa xad xag
xab xae xah
xac xaf xai
# cat xaa xab xac xad xae xaf xag xah xai > HWE1100.depot.tar
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2006 02:28 AM
тАО03-02-2006 02:28 AM
Re: Splitting and merging large size 'tar' files
I have tried with all options I have received. Seems all are working.
I could view and extract the content of original tar file.
However tar command comes out with expected (proper)output as well as below error message.
Tar: error! blocksize changed
What does this message indicates?
Thanks & regards
Manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2006 02:36 AM
тАО03-02-2006 02:36 AM
Re: Splitting and merging large size 'tar' files
Check this thread out,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=190047
[Tar: error! blocksize changed]
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2006 02:39 AM
тАО03-02-2006 02:39 AM
Re: Splitting and merging large size 'tar' files
if the tarfile is 1Gb in size, how can it be a >2Gb file issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2006 04:23 AM
тАО03-02-2006 04:23 AM
Re: Splitting and merging large size 'tar' files
The tar error regarding blocksize changed comes from the fact that you are trying to unpack the contents of the tar file in a dir which doesn't have enough space left to accomodate the unpacked files. Solution would be to either unpack it to a mount point large enough or to extend the current one, though the former option would be the fastest one.
cheers!