Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ls problem

Status
Not open for further replies.

leonk

IS-IT--Management
Feb 5, 2003
3
IL
Hi guys

when i'm trying to examine files in /var/spool/mail
using ls -l i'm getting the following error message

>ls: .: Value too large to be stored in data type.
>total 0

while i'm positive that there are 2 zero length files in this directory.
i'm using AIX5.2 and /var is a jfs2 filesystem

any ideas ?

thnx in advance,
Leon.
 
Hi leonk

You can try by using this command syntax

#ls -lrt /var/spool/mail | xargs -l<num_of_files_to_see_at_time>

eg;
#cd /var/spool/mail
#ls -lrt |xargs -l50
You can see 150 files at a time in that path...again u give
piece by piece...





sushveer
IBM certified specialist-p-series AIX5L System Administration
AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator
 
Hi Leonk
sorry for type... in my prevous post

Please read last line as: you can see 50 files at a time

sushveer
IBM certified specialist-p-series AIX5L System Administration
AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator
 
hi

same result
>ls: .: Value too large to be stored in data type.

 
Usually that error : Value too large to be stored in data type. occur for different reasons:You please check based on diffrent aspects ac listed below:

Hereby I am giving the reasons so the remedies should be accordigly...in any case

causes/reasons:
1)If the file system is not large enabled
2)If the specific mount point(dir) has insufficient space
3)If the file access permissions
4)The corrupted file system eg;in this case /var

Note:some times you can't run certain commands..like
rm,mv,cat....

In you case probably ...the corrupted files...
for confirmation sake..why don't you run other commands
from the same path...Let me know whether u are getting same eror...or not? I think that u will get that same error!
Please check and post your message.


sushveer
IBM certified specialist-p-series AIX5L System Administration
AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top