Operating System - HP-UX
1833161 Members
3014 Online
110051 Solutions
New Discussion

Re: can't lstat.. value too large

 
SOLVED
Go to solution
Mark Henry_1
Frequent Advisor

can't lstat.. value too large

All,

A backup tar file it so large that I can't even 'ls' it!

/usr/local/bin/cls: can't lstat ./backup1.tar: Value too large to be stored in data type.

I tried fsadm'ing the filesystem to support large files but still the same error.. any ideas?

Thanks,
Mark
6 REPLIES 6
Steven Sim Kok Leong
Honored Contributor

Re: can't lstat.. value too large

Hi,

I don't suppose you can stat the file as well. Nevertheless, perhaps you want to give it a try:

# stat backup1.tar

What does the output say?

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Steven Sim Kok Leong
Honored Contributor

Re: can't lstat.. value too large

Hi,

I don't suppose you can stat the file as well. Nevertheless, perhaps you want to give it a try:

# stat backup1.tar

What does the output say?

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Tom Geudens
Honored Contributor

Re: can't lstat.. value too large

Hi,
You might want to run a search on the exact phrase "Value too large". There are several patches that contain the very phrase. I was going to add a patch list but there are patches for both HP-UX 11.00 and HP-UX 10.20 and the lists (especially for HP-UX 11.00) are pretty long.

Hope this helps,
Tom Geudens
A life ? Cool ! Where can I download one of those from ?
Steven Gillard_2
Honored Contributor
Solution

Re: can't lstat.. value too large

You will get this error if you are using a 32bit application that has not been compiled to support large files. Even if a file system has been enabled for large files support with fsadm, there is a special API that needs to be used in order for 32bit programs to work with files >2Gig.

At the very least your application will need to be compiled with -D_FILE_OFFSET_BITS=64.

For more information refer to /usr/share/doc/lg_files.txt

Regards,
Steve
Mark Henry_1
Frequent Advisor

Re: can't lstat.. value too large

Guys,

Thanks for the info - Steven Sim - I can't find the stat command - possibly not installed? - Steven Gillard, how do I determine whether my app is 32 or 64 bit? And, in the even it's 32, is there an easier way to get a 64 bit version of the 'ls' command rather than compiling it (which I wouldn't have a clue how to do).

Thanks!

Mark
Steven Gillard_2
Honored Contributor

Re: can't lstat.. value too large

You can use the 'chatr' or 'file' commands to see if an executable is 64bit. Eg for a 64bit executable the file command will output:

# file oracle
oracle: ELF-64 executable object file - PA-RISC 2.0 (LP64)

The 'ls' command shipped with HPUX supports large files, see section 5.2.4 of /usr/share/doc/lg_files.txt for a full list of commands.

In your post you appear to be using a third party command /usr/local/bin/cls (perhaps aliased to ls?) which is obviously a 32bit executable not compiled with large file support.

Regards,
Steve