Operating System - HP-UX
1752337 Members
5641 Online
108787 Solutions
New Discussion юеВ

Re: Copying files over 2G in size

 
GTENCSS
Occasional Contributor

Copying files over 2G in size

I need to copy oracle database files which spans several directories and some are 2G are greater . The tar and cpio doesn't copy files over 2G in size. I'm not sure if i had the right options but it didn't work with either tar or cpio. Is is possible to copy dirs with tar or cpio with files over 2G in size. My workaround was CP?
9 REPLIES 9
A. Clay Stephenson
Acclaimed Contributor

Re: Copying files over 2G in size

The standard versions of tar and cpio are limited to 2GB. You could have installed the Gnu version of tar. It is available from any of the HP-UX Porting Centre's. The HP method of doing this is fbackup/frestore which does not suffer from the 2GB limitation.
If it ain't broke, I can fix that.
Jeff Schussele
Honored Contributor

Re: Copying files over 2G in size

Hi,

Nope tar & cpio will not handle files > 2Gb.
I would recommend gtar (GNU tar) available at
http://www.gnu.org

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Sajid_1
Honored Contributor

Re: Copying files over 2G in size

hello,

Yes, that's the limitation. You have two options:
a) get GNU tar from the porting centre
b) Use any other copy method
learn unix ..
MANOJ SRIVASTAVA
Honored Contributor

Re: Copying files over 2G in size

gnu tar works for bigger sizes over 2.0 Gb



Manoj Srivastava
James R. Ferguson
Acclaimed Contributor

Re: Copying files over 2G in size

Hi:

If you are running 11.11 there are patches for 'tar' and 'cpio' that enable 8GB handling:

For 11.11 tar - PHCO_26423
For 11.11 pax - PHCO_26422

Regards!

...JRF...
Wodisch_1
Honored Contributor

Re: Copying files over 2G in size

Hi,

with files of that size you wouldn't want to use "tar" nor "cpio", would you?
Which do complain after experiencing a dropout on the tape and ABORT (leaving you with NOTHING).
And perhaps your files are even bigger than 8GB, so the patch won't help much...
How about to investigate into "split-mirror copies", and/or commercial backup-software, like Omniback (ok, it's called "DataProtector", by now)?

Just my $0.02,
Wodisch
George Petrides_1
Honored Contributor

Re: Copying files over 2G in size

Also, you need to make sure that the target directory/filesystem is set for large files else your copy will fail no matter what command you use. Use fsadm to check and change it if necessary.
George
Trond Haugen
Honored Contributor

Re: Copying files over 2G in size

Another option is to use fbackup.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Martin Burnett_2
Trusted Contributor

Re: Copying files over 2G in size

Hello,

Here is what I use:

fbackup -i /var/adm/sw -f - | (cd /data; frecover -Xrf -)

This example is using fbackup to copy the /var/adm/sw directory to standard out, then pipes it into frecover which extracts it directly into the new directory /data.

fbackup does not have the 2gb limitation and is standard on HP-UX systems.

Thanks for participating in the forums,

Martin
Chaos reigns within. Reflect, repent, and reboot. Order shall return.