Operating System - HP-UX
1833047 Members
2510 Online
110049 Solutions
New Discussion

Not able to find using wildcard mask on NFS mounted directory.

 
SOLVED
Go to solution
senthil_kumar_2
Regular Advisor

Not able to find using wildcard mask on NFS mounted directory.

Hi All,

I have configured one directory through NFS on RHEL 4.0 (Server name : server1)

Ex:

# more /etc/exports

/orders 143.242.67.101(rw,sync,no_wdelay,no_root_squash) 10.250.0.187(rw,sync,no_wdelay,no_root_squash)


Some details:

143.242.67.101 (client1) --> HP-UX 11.11

10.250.0.187 (client2) ---> HP-UX 11.31


I have mounted above NFS share from server1 to client1 and client2.

Ex: (both client1 and client2):

# bdf

server1:/orders
51606124 34836592 14148096 71% /orders


Now I am running following commands in both servers.

1)client1:

# ls -l /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include/exec*

lrwxrwxrwx 1 spevacek software 58 Feb 10 16:47 /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include/executive_prototypes.h -> ../../LCC_Release_DC/shared/include/executive_prototypes.h



#ls -l /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include/executive_prototypes.h

lrwxrwxrwx 1 spevacek software 58 Feb 10 16:47 /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include/executive_prototypes.h -> ../../LCC_Release_DC/shared/include/executive_prototypes.h



2)client 2:

# ls -l /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include/exec*

/orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include/execrModule
root 15 not found


# ls -l /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include/executive_prototypes.h

lrwxrwxrwx 1 spevacek software 58 Feb 10 16:47 /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include/executive_prototypes.h -> ../../LCC_Release_DC/shared/include/executive_prototypes.h



Why the same NFS mount is not having any issues on client1 but having issues on client 2?



4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: Not able to find using wildcard mask on NFS mounted directory.

>wildcard mask

(These are wildcard patterns or File Matching Patterns.)

To be able to do a ls(1), you must have the right permissions on the directory, read. Are you root on both machines?

What does this show:
ll -d /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include

You may have to compare this command on all intermediate paths to make sure it isn't one in the middle.

Also in other thread, Doug has mentioned bugs in NFS on readdir and on option to workaround that problem. I'm not sure if this was specific to 11.31?
senthil_kumar_2
Regular Advisor

Re: Not able to find using wildcard mask on NFS mounted directory.

Hi Dennis,

It is file matching pattern.

I have ran the commands as root in client2.

# ll -d /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include

drwxrwxr-x 2 ghazan software 8192 Feb 10 16:56 /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include


# ll -d /orders/
drwxrwxr-x 5700 ccm_root ccm_root 200704 Apr 8 07:33 /orders/


# ll -d /orders/LCC_kcs_20075481~E23.02.03_TRI/
drwxrwxr-x 3 spevacek ccm_root 4096 Feb 10 09:10 /orders/LCC_kcs_20075481~E23.02.03_TRI/



# ll -d /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/
drwxrwxr-x 8 spevacek ccm_root 4096 Apr 6 12:18 /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/



# ll -d /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/
drwxrwxr-x 3 ghazan software 28672 Feb 10 20:35 /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/



# ll -d /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include
drwxrwxr-x 2 ghazan software 8192 Feb 10 16:56 /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include



# ll -d /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include/executive_prototypes.h
lrwxrwxrwx 1 spevacek software 58 Feb 10 16:47 /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include/executive_prototypes.h -> ../../LCC_Release_DC/shared/include/executive_prototypes.h




# ll -d /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include/executive*
/orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include/executive* not found



# ll -d /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include/executive_prototypes.*
/orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include/executive_prototypes.* not found


# ll -d /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include/executive_prototypes.h
lrwxrwxrwx 1 spevacek software 58 Feb 10 16:47 /orders/LCC_kcs_20075481~E23.02.03_TRI/LCC_kcs_20075481/scratch_source/include/executive_prototypes.h -> ../../LCC_Release_DC/shared/include/executive_prototypes.h


What is the workaround given by Doug , could you please give that link.
Dennis Handly
Acclaimed Contributor
Solution

Re: Not able to find using wildcard mask on NFS mounted directory.

senthil_kumar_2
Regular Advisor

Re: Not able to find using wildcard mask on NFS mounted directory.

Hi Dennis,

The issue has been resolved after updating the NFS version to latest.

Old version:

# swlist | grep -i onc
ONCplus B.11.31.06.01 ONC+ 2.3


Newer version:

# swlist | grep -i onc
ONCplus B.11.31.09 ONC+ 2.3