Re: Running AIX 5.3, the "find" command is not working as expected.



Since /stage has its own filesystem we must narrow to problem

Possible cause i could think of
- Security setting on underlying mount points.
- Corrupted filesystem causing find to stop traversing the directory
tree
- find is buggy or find is an alias with some strange settings
- acl are used

1)
Check the version of find you are using and use the full path for find

$ which find
$ /usr/bin/find / -name runInstaller

2) Issue the command as an root user.

3) Check what mounts are in between '/' and 'stage'
Example:
mount shows:

/
/usr
....
/test
/stage

Now verify that you can find within the next filesystem an existing
file there.
Meaning that you check if you can find a known file in
/usr
....
/test
/stage

Example:
find / -name unix
find / -name find # Should find /usr/bin/find
....

The filesystem where the test will fail or the fs before that might
cause the problem.

4)
Umount /stage and check the permission on the mount point itself
$ umount /stage
$ ls -ld /stage

5)
Check if ACL are used or not.

6)
run
$ truss -c /usr/bin/find / -name runInstaller
and see whats really going on.

hth
Hajo

.



Relevant Pages

  • Re: mount() function problem !
    ... mount() attaches the filesystem specified by source (which is often a device name, ... point within a file system. ... details of the options available for each filesystem type. ... Specifies the journalling mode for file data. ...
    (comp.lang.c)
  • Re: Unable to unmount idle filesystem on 6.2
    ... devfs on /dev ... # umount -f /usr/ports ... # mount -o ro /usr/ports ... The filesystem was mounted read-only, then upgraded to rw so I could update the ports tree. ...
    (freebsd-questions)
  • Re: [autofs] [RFC] Towards a Modern Autofs
    ... >entangling autofs with that work. ... >filesystem it's willing to export. ... >>map is mounted. ... The result is that some users will see mount points ...
    (Linux-Kernel)
  • Re: What kind of systems are now available?
    ... Unless, of course, you are using Linux in which case it ... leaving the bad mount in place. ... umount: mount-2.12a ... Detach the filesystem from the filesystem hierar- ...
    (comp.os.vms)
  • Re: Unable to unmount idle filesystem on 6.2
    ... devfs on /dev ... # umount -f /usr/ports ... # mount -o ro /usr/ports ... The filesystem was mounted read-only, then upgraded to rw so I could update the ports tree. ...
    (freebsd-questions)