Re: oslevel Error processing cache, return code 228



On Mar 29, 7:55 pm, Christopher Petersen <cpeter...@crystallized-
software.com> wrote:
On Thu, 29 Mar 2007 14:07:06 -0700, Stu wrote:
I am running on an AIX 5.2 machine

uname -a
AIX devrs3 2 5 0008148A4C00

When I run theoslevelcommand as "root" it seems ot work and I get
back the following.

/tmp#oslevel
5.2.0.0

When I run it as a user other than "root" I get the following error:

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

I tried runningoslevel-f as root in hopes of fixing the problem but
that did not work.

Does anybody have any ideas?

Thanks to all who answer this post

I'm working from memory at the moment, but I believe the variousoslevel
commands use a cache of information located in /tmp. So, maybe look at
the protection of /tmp or theoslevelcache directory/files in it. If
you've got a much tighter umask on the root ID, that might create/maintain
theoslevelcache in a way that non-root users could not use it...

Just a thought!

-Chris- Hide quoted text -

- Show quoted text -

I even as went as far as to make everything 777 and that did not
appear to work.

ls -ld /tmp
drwxrwxrwt 15 bin bin 24576 Mar 30 08:45 /tmp

# ls -ld /tmp/.oslevel.datafiles
drwxrwxrwx 2 root system 256 Mar 30 8:45 /
tmp/.oslevel.datafiles

find . -depth -exec ls -tl {} ";"
-rwxrwxrwx 1 root system 0 Mar 30
08:40 ./.oslevel.hold
-rwxrwxrwx 1 root system 31293 Mar 30
08:40 ./.oslevel.mlinfo.cache
-rwxrwxrwx 1 root system 908197 Mar 30
08:40 ./.oslevel.rml.cache
-rwxrwxrwx 1 root system 5 Mar 30
08:40 ./.oslevel.cache.sum
total 1848
-rwxrwxrwx 1 root system 5 Mar 30
08:40 .oslevel.cache.sum
-rwxrwxrwx 1 root system 908197 Mar 30
08:40 .oslevel.rml.cache
-rwxrwxrwx 1 root system 31293 Mar 30
08:40 .oslevel.mlinfo.cache
-rwxrwxrwx 1 root system 0 Mar 30 08:40 .oslevel.hold

Does anybody else have any more suggestions?

Thanks to all that answer


.



Relevant Pages

  • Re: oslevel Error processing cache, return code 228
    ... When I run the oslevel command as "root" it seems ot work and I get ... When I run it as a user other than "root" I get the following error: ... Error processing cache, return code 228. ...
    (comp.unix.aix)
  • Re: [rfc] increase struct page size?!
    ... of mem_map whose size ignoring alignment would otherwise fit in the ... I think it is that you could construct mem_map access patterns, ... about 75% more cache misses than a 64 byte aligned one (and you could also ... 64 spare flag bits, or whatever's left over after the VM has its fill. ...
    (Linux-Kernel)
  • Re: double-checked locking in C
    ... My suggestion was to put the flag inside the side object itself. ... Of course you may think that the object takes place on cache line boundary and is only partially updated. ... But as you know, it doesn't solve anything because of the presence of caches on processors, something absent from the norm and very uncommon at the time volatile was invented. ... idiom which consists of delegating the work to an extern function, a function with an implementation in a different translation unit. ...
    (comp.programming.threads)
  • Re: double-checked locking in C
    ... My suggestion was to put the flag inside the side object ... There is no such thing as a cache line. ... >idiom which consists of delegating the work to an extern function, ... processor independent compiled independent code cannot be dependent on what ...
    (comp.programming.threads)
  • Re: [RFC][PATCH 2/2] ip multipath, bk head (EXPERIMENTAL)
    ... > the same key follow in the routing cache chain. ... > we recognize this flag and may apply different load balancing policies ... > to the available routes having the same key. ...
    (Linux-Kernel)