Operating System - HP-UX
1820554 Members
3585 Online
109626 Solutions
New Discussion юеВ

using tar on files larger that 2gb

 
SOLVED
Go to solution
lawrenzo_1
Super Advisor

using tar on files larger that 2gb

Hello,

I use this command to write files to tape,

#tar cvf |rsh dd of=/dev/rmt/1m obs=20b

This doesn't work on files larger that 2gb because tar doesn't support this.

what are the implications of changing the block size? will this allow me to write the larger files to tape?

TIA
hello
12 REPLIES 12
RAC_1
Honored Contributor

Re: using tar on files larger that 2gb

tar does not support files larger than 2gb. With patch you can do that.

Also you can use GNU tar.
There is no substitute to HARDWORK
Michael Tully
Honored Contributor

Re: using tar on files larger that 2gb

You could have a look at the GNU offering which does support files larger than 2Gb

http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.14/
Anyone for a Mutiny ?
Sridhar Bhaskarla
Honored Contributor

Re: using tar on files larger that 2gb

Hi,

Changing the block size will have no effect on the limitation of tar.

Try the patch PHCO_29229. It should allow upto 8GB. This is for 11.0.. Search for 'tar' in itrc's patch website.

Or try gtar as indicated above.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Sundar_7
Honored Contributor

Re: using tar on files larger that 2gb

Why not use dd on both the sides

# dd if=/file of=- | rsh dd of=/dev/rmt/1m obs=20b
Learn What to do ,How to do and more importantly When to do ?
lawrenzo_1
Super Advisor

Re: using tar on files larger that 2gb

Sundar,

where dd if=/file of=-

what is the output of=- ?

I'm not sure what to replace at -

many thanks
hello
Sundar_7
Honored Contributor
Solution

Re: using tar on files larger that 2gb

Sorry, try this

# dd if= bs=1024k | rsh "dd of=/target-file bs=1024k"

Learn What to do ,How to do and more importantly When to do ?
Rick Garland
Honored Contributor

Re: using tar on files larger that 2gb

In addition to the tar utility not supporting over 2GB, other utilities so not support over 2GB as well. The cpio comes to mind. Get the GNU versions of these utilities and no more worries.
Geoff Wild
Honored Contributor

Re: using tar on files larger that 2gb

Get gnu tar or use HP's fbackup.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Cheryl Griffin
Honored Contributor

Re: using tar on files larger that 2gb

At 11i you can tar over 2 gig
8 gig 11i tar patch
http://www2.itrc.hp.com/service/cki/patchDocDisplay.do?patchId=PHCO_28992

Pre 11.11, go with gnutar.
"Downtime is a Crime."
Geoff Wild
Honored Contributor

Re: using tar on files larger that 2gb

BTW - you can also patch HP's 11.11 tar to do up to 8GB:

Patch Name: PHCO_28992

Patch Description: s700_800 11.11 tar(1) cumulative patch


http://www2.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.main|patch.breadcrumb.search|&patchid=PHCO_28992&context=hpux:800:11:11

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
lawrenzo_1
Super Advisor

Re: using tar on files larger that 2gb

Thanks everyone for all your help

Sundar has given me the best solution for my task at hand!

"Only Sundar has the answer!"

Thanks to all again
hello
lawrenzo_1
Super Advisor

Re: using tar on files larger that 2gb

Thank you!
hello