Operating System - HP-UX
1846311 Members
3360 Online
110256 Solutions
New Discussion

Re: problem with tar command

 
SOLVED
Go to solution
praveen..
Super Advisor

problem with tar command

Hi,
I am getting the following error:

GNU tar is being used, located in directory /user/local/bin.
native Tar is being used, located in /usr/bin.
i think The GNU tar has been renamed to tar.orig

This is the output of log file:

2556087 tar: Cannot write to /home/monthly/20060326_20060422/scope/1002.20060326_20060422.1.AMOUNT.tar : File too large

2556088 tar: Error is not recoverable: exiting now

5 REPLIES 5
Peter Godron
Honored Contributor

Re: problem with tar command

Praveen,
please establish which version of tar is being used:
which tar
then also ensure that your filesystem can handle largefiles:
grep home /etc/fstab
Arunvijai_4
Honored Contributor

Re: problem with tar command

Hi Praveen,

Execute "tar" with full path, like # /usr/local/bin/tar

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Johnny Damtoft
Regular Advisor
Solution

Re: problem with tar command

Hi,

If you are using files larger than 2GB, you need the largefiles option enabled.
If you use tar to create a +2GB file that is. :)

Check your lvol for the largefiles option:
Execute:
# fstyp -v /dev/vg00/rlvol9

f_flag: 16 (largefiles enabled)
f_flag: 0 (largefiles disabled)

To set largefiles on:
# fsadm -o largefiles /mount_point
(Where /mount_point is your filesystem mountpoint, not the lvol name. This requires OnlineJFS and no unmount)

Use fstyp command to check the "f_flag" if it's value is 16 - Then your set to go once again with tar.

If your tar file will get bigger than 2GB the native tar in HP-UX will not work.
You can download GNU tar, which does support > 2GB files, from:
http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.15.1/

# tar cf /path/to/file.tar dir_or_file

Have fun. :)

// Damtoft
Johnny Damtoft
Regular Advisor

Re: problem with tar command

If you have downloaded the GNU tar depot you need to unzip it.

# gunzip tar-1.15.1-hppa-11.11.depot.gz

Then use swinstall to install the depot.

# swinstall -s /full/path/to/file/tar-1.15.1-hppa-11.11.depot

And you should be on the way :)

// Damtoft

praveen..
Super Advisor

Re: problem with tar command

thanks