[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Why does oslevel command generate cache return code 228

Posted on 2008-06-18
9
Medium Priority
?
1,409 Views
Last Modified: 2013-11-17
Running AIX 6.1 on a P6 system, the oslevel command returns:

oslevel: Error processing cache, return code 228.
oslevel: Use the -f flag to rebuild cache.

The /tmp/.oslevel* files have been removed (IBM suggested solution) but this doesn't fix it.  I have several other, almost identical, systems that do not exhibit this behavior.
0
Comment
Question by:sjpetrov
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
9 Comments
 
LVL 46

Expert Comment

by:Kent Olsen
ID: 21815929
Hi sjpetrov,

Believe it or not, this is probably a permissions problem.  At least I know that this could happen with AIX 5.x.

Check the permissions on the mlcache file

  ls -l /usr/bin/rm_mlcache_file


They should be -r-sr-xr-x

If not, then

chmod 4555 /usr/bin/rm_mlcache_file


That should fix it.


Good Luck,
Kent
0
 

Author Comment

by:sjpetrov
ID: 21816725
That was the first thing we checked and we had the correct settings.  Sorry I didn't mention that in the original post.
0
 
LVL 46

Expert Comment

by:Kent Olsen
ID: 21816767

Oh, man...   You're no fun.....  :)

Let me ask around.  I've not seen any other cause for this.


Kent
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 10

Expert Comment

by:dfke
ID: 21830613
Also check if the owner of the file is root and if not then :

chown root /usr/bin/rm_mlcache_file

/usr/bin/rm_mlcache_file must have root privileges to perform its task. Setting the s as shown gives the executable the privileges of its owner, which must be root in this case. Then the non-root user can run oslevel and get back a valid result.
0
 

Author Comment

by:sjpetrov
ID: 21830702
It was already owned by root.
I compared several good systems to our bad system and nothing really jumped out.  I looked at lslpp output, contents of /usr/bin and /usr/sbin, tuneables and running processes.  These systems were all cloned at the same time, from the same image, so it just doesn't make sense.
0
 
LVL 46

Expert Comment

by:Kent Olsen
ID: 21831816

What is the device / device type under the file?

0
 

Author Comment

by:sjpetrov
ID: 21831891
I don't understand your question.  Can you send the command I need to type to get you this information?
0
 
LVL 46

Accepted Solution

by:
Kent Olsen earned 750 total points
ID: 21831960

You'd mentioned that all 3 systems were cloned from the same image.  I'm wondering if there may be an access issue to the file system or device where the cache file resides.


Kent
0
 

Author Comment

by:sjpetrov
ID: 21918038
System Admin is planning on rebuilding the machine to see if that solves the problem.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question