- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to make TAR to run faster
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
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
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
тАО05-23-2001 12:46 PM
тАО05-23-2001 12:46 PM
how to make TAR to run faster
I have 7G data needed badly to extract from a 12G tape drive. It runs forever. The server is K260 with 2 cpus. Not much other processes going on.
I guess there is some command to make tar to be running faster.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2001 12:55 PM
тАО05-23-2001 12:55 PM
Re: how to make TAR to run faster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2001 12:59 PM
тАО05-23-2001 12:59 PM
Re: how to make TAR to run faster
Try this, we are going to use dd to icease the input blocking:
dd if=/dev/rmt/0m ibs=2000b obs=1b | tar xvf -
This will reblock input to 2000 512 byte blocks.
You may need to adjust the obs to perhaps 20b depending on the original tar blocking factor.
Before you actually extract, I would pipe the dd to a tar vtf - to attempt a listing first. That way you can adjust the obs setting until you get consistant results. You can kill (or interrupt) the process until you get the settings right. Again, i would start with obs=1b, then try 20b.
This should speed up the process by at least 30x.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2001 01:00 PM
тАО05-23-2001 01:00 PM
Re: how to make TAR to run faster
Thanks for the help.
Would "tar x ...." just enough?
or "tar xf ..." if not use xvf?
I am using xvf that is as slow as whatever.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2001 01:01 PM
тАО05-23-2001 01:01 PM
Re: how to make TAR to run faster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2001 01:07 PM
тАО05-23-2001 01:07 PM
Re: how to make TAR to run faster
Clays solution looks interesting. I may have to play with that myself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2001 01:08 PM
тАО05-23-2001 01:08 PM
Re: how to make TAR to run faster
Thank you for the thought.
Those 7G data are Oracle datafiles used to recover database. I would need to make sure any method would not cause data corruption.
I was using tar to backup, so I use tar to extract.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2001 01:55 PM
тАО05-23-2001 01:55 PM
Re: how to make TAR to run faster
I use oracle user to tar cvf file. While I tar xf extracting file, would I have to use oracle user too? Would root account run faster? Or that would change the file bits?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2001 04:42 PM
тАО05-23-2001 04:42 PM
Re: how to make TAR to run faster
Use tar cvbf 64 /dev/rmt ...
Or tyr pax.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2001 05:00 PM
тАО05-23-2001 05:00 PM
Re: how to make TAR to run faster
So the problem is getting the data to the tape fast enough to prevent data starvation. Like all streaming drives, if the data does not keep ahead of the device, the drive stops, backs up and resyncs, a very costly task (wastes a lot of time).
The tape drive must be on a dedicated bus or on a bus with no activity on any other connected peripheral. If the tape and the disk are on the same bus, there is nothing you can do to improve performance.
It's also important to note that tar (pax, cpio, dump) is NOT recommended for large data backup tasks. It is a couple of decades old and designed for reel-to-reel tape drives holding a whopping 150 megs. Industry standard tar can never handle a file bigger than 2 Gb and has no error recovery procedures. If this data is important, strongly consider a commercial quality backup program. Or as a minimum, use fbackup which does handle large files and has error recovery built-in. Do not use fbackup without a config file to set large records and a large number of helper proceses.
Bill Hassell, sysadmin