Operating System - HP-UX
1848433 Members
4297 Online
104027 Solutions
New Discussion

tar <filename> > 2GB. Not dumped ?

 
SOLVED
Go to solution
Burhan I. Koni
Advisor

tar <filename> > 2GB. Not dumped ?

hello all
i have hp-ux 11.11
regarding this problem i applied patch PHCO_32438 to solve this problem. I still have the same problem, shall i reboot the machine after applying the patch or what shall i do??

Best regards
thanks
Burhan Koni
14 REPLIES 14
Clifford Chi
Advisor

Re: tar <filename> > 2GB. Not dumped ?

Hi Burhan,

The patch doesn't require a reboot, can you check the following:

# swlist -l fileset -a state -a patch_state PHCO_32438

Make sure above output you see the "state" is "configured". If "installed" stated, please "swconfig PHCO_32438 \*" to configure it.

Also, run cksum for the following files and make sure the value is the value as shown below:

225566991 389120 /sbin/pax
410241828 90112 /usr/bin/pax
4106078265 6380 /usr/lib/nls/msg/C/pax.cat

If there is discrepancies found, please consider to reinstall the patch.

Hope above help to resolve your issue.
Darrel Louis
Honored Contributor
Solution

Re: tar <filename> > 2GB. Not dumped ?

Hi,

Did swlist give the configured state as result?
Does your Filesystem support largefiles:
fsadm /home/oracle

If not, do the following:
fsadm -F vxfs -o largefiles /home/oracle
for more info do a man fsadm_vxfs.

PHCO* patch most of the time don't need a reboot.

Darrel
Burhan I. Koni
Advisor

Re: tar <filename> > 2GB. Not dumped ?

the file which is > 2GB is on /u03 volume and this volume accepts >2 GB files.
is it necessary to have /home volume to accept large files > 2GB??.
is it safe to change /home to accept >2GB files??
is it possible to change the home to a volume that accepts >2GB files??

best regards
Burhan
Darrel Louis
Honored Contributor

Re: tar <filename> > 2GB. Not dumped ?

Hi,

In fact you don't want users to put big files in there home-dir.
If you want files greater than 2 Gb in a directory make sure the large file option is set.

Goodluck

Darrel Louis
Burhan I. Koni
Advisor

Re: tar <filename> > 2GB. Not dumped ?

dear Darrel Louis
the source file system for (tar) accepts large files. but /home does not
is it necessary to change /home to accept large files.
note that I use a cron job to schedule the backup script, and the home directory for oracle user is /home/oracle
whats wronge .. why it still give the same problem.

Regards
Burhan Koni
Darrel Louis
Honored Contributor

Re: tar <filename> > 2GB. Not dumped ?

Hi,

If you want to save a file in /home,
which is greater than 2Gb, /home should be mounted with the largefiles option.

Can't you create a folder called /backup, with it's own mountpoint, and backup the oracle DB in this directory.

If /home gets full it might be that users can't login.

Darrel
Burhan I. Koni
Advisor

Re: tar <filename> > 2GB. Not dumped ?

Dear Darrel
the destination is the tape (device file:/dev/rmt/0mn)
this is the case

thanks
Burhan
Darrel Louis
Honored Contributor

Re: tar <filename> > 2GB. Not dumped ?

Hi,

Is it working when you dump it to a directory?
If yes log a call with HP.
Do you have the latest tar patch?

Darrel
Bill Hassell
Honored Contributor

Re: tar <filename> > 2GB. Not dumped ?

How large is the file? The 2Gb limit is for industry standard, while the patch allows pax to handle up to 8Gb (similar to a tar patch). Files larger than 8Gb must use fbackup or a commercial backup program.


Bill Hassell, sysadmin
Burhan I. Koni
Advisor

Re: tar <filename> > 2GB. Not dumped ?

dear Bill
the file size is not greater than 8 GB.
what other causes could be .

your help

Burhan
Bill Hassell
Honored Contributor

Re: tar <filename> > 2GB. Not dumped ?

Check to see where your tar command is found:

whence tar

Use the what command to see if the tar program has actually been patched:

what /usr/lib/tar

Now, are you using tar or pax? The patch you listed is for pax. What is the command you are using? There is a separate patch for tar to handle up to 8Gb files: PHCO_28992


Bill Hassell, sysadmin
Don Mallory
Trusted Contributor

Re: tar <filename> > 2GB. Not dumped ?

You can change the filesystem to largefiles online if you have OnlineJFS installed (and licensed), and the filesystem is vxfs (JFS), then just run the following:

fsadm -F vxfs -o largefiles /mountpoint

If not, you have to create a new mount, when you newfs it, specify -o largefiles. Mount it somewhere and migrate home, if you want this to be a permanent option.

OnlineJFS is better, but it's a bit pricey.

Your problem appears to be more filesystem side, but you might want to consider GNU tar. It has a lot more options, handles absolute file paths better, and supports largefiles natively.

From the porting and archive centre:

http://hpux.ee.ualberta.ca/hppd/hpux/Gnu/tar-1.15.1/

Don



Burhan I. Koni
Advisor

Re: tar <filename> > 2GB. Not dumped ?

Dear all
problem solved by applying patch PHCO_28992 as recommended by Bill.
thank you for you efforts and follow up.

Best Regards
Burhan Koni
Burhan I. Koni
Advisor

Re: tar <filename> > 2GB. Not dumped ?

problem solved by applying patch PHCO_28992 as recommended by Bill.
thank you for you efforts and follow up.