Operating System - HP-UX
1833123 Members
3662 Online
110051 Solutions
New Discussion

Re: /etc/exports file not read/sourced

 
P_F
Regular Advisor

/etc/exports file not read/sourced

/etc/exports file not read

Incidents on both 11.23 & 11.31 Itanium servers.

1)
NFS server is properly configured.

2)
One then edits the /etc/exports file, adding the filesystem to be exported.

a) Then restart NFS, and or
b) execute # exportfs -a.

3)
Unfortunately, the filesystem listed in /etc/exports is not exported by NFS as demonstrated by

a) # showmount -e, or
b) # cat /etc/xtab, and
c) the inability to mount from the client.


4)
If one instead manually specifies the same filesystem as is listed in /etc/exports on the command line

a) # exportfs -iv

then
# showmount -e
# cat /etc/xtab
and client mounting

all work as expected.



15 REPLIES 15
kobylka
Valued Contributor

Re: /etc/exports file not read/sourced

Hello Jpeck!


Assuming the system has all pertinent patches for NFS installed, try tracing execution of exportfs using tusc like this:

tusc -o exportfs.tusc exportfs -a


and check if exportfs() syscall is called with the filesystems you specified in /etc/exports as arguments (please attach a copy in next post).



Kind regards,

Kobylka
Michael Steele_2
Honored Contributor

Re: /etc/exports file not read/sourced

patch issue
Support Fatherhood - Stop Family Law
P_F
Regular Advisor

Re: /etc/exports file not read/sourced

Kobylka:

I ran the tusc command, it returned too much much information to post. But nowhere in the file was mention of /etc/exports or the filesystem i had listed in /etc/exports
P_F
Regular Advisor

Re: /etc/exports file not read/sourced

Micheal Steele:

Can you help me to narrow down the patch I need:

HP-UX B.11.31 U ia64
Tingli
Esteemed Contributor

Re: /etc/exports file not read/sourced

You can also double check the syntax in file /etc/exports. Sometimes, a tiny error can cause the problem.
P_F
Regular Advisor

Re: /etc/exports file not read/sourced

Sorry, I left out some other critical info in regards the patching I might need:

swlist -l product | grep -i nfs
NFS B.11.31.02 ONC/NFS; Network-File System,Information Services,Utilities
SG-NFS-Tool A.11.31.02 Serviceguard NFS Script Templates


rpcinfo -p
program vers proto port service
100000 4 tcp 111 rpcbind
100000 3 tcp 111 rpcbind
100000 2 tcp 111 rpcbind
100000 4 udp 111 rpcbind
100000 3 udp 111 rpcbind
100000 2 udp 111 rpcbind
100024 1 udp 49154 status
100024 1 tcp 49152 status
100133 1 udp 49154
100133 1 tcp 49152
100021 1 udp 4045 nlockmgr
100021 2 udp 4045 nlockmgr
100021 3 udp 4045 nlockmgr
100021 4 udp 4045 nlockmgr
100021 1 tcp 4045 nlockmgr
100021 2 tcp 4045 nlockmgr
100021 3 tcp 4045 nlockmgr
100021 4 tcp 4045 nlockmgr
1073741824 1 tcp 49153
100068 2 udp 49159 cmsd
100068 3 udp 49159 cmsd
100068 4 udp 49159 cmsd
100068 5 udp 49159 cmsd
100083 1 tcp 49154 ttdbserver
100005 1 udp 49301 mountd
100005 1 tcp 49442 mountd
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100227 2 udp 2049
100005 2 udp 49301 mountd
100227 3 udp 2049
100005 2 tcp 49442 mountd
100005 3 udp 49301 mountd
100005 3 tcp 49442 mountd
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100227 2 tcp 2049
100227 3 tcp 2049
P_F
Regular Advisor

Re: /etc/exports file not read/sourced

Tingli:

Thanks I have checked the syntax and it is correct, and there are no non printable characters in the file.
P_F
Regular Advisor

Re: /etc/exports file not read/sourced

I think I found the patch:

https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=ONCplus


---> 11.31 NFS client may not get the updated directory contents from NFS server.


Although not exactly the issue, it seems close.
kobylka
Valued Contributor

Re: /etc/exports file not read/sourced

Hello Jpeck!


Please update to latest version (B.11.31.08)

https://h20392.www2.hp.com/portal/swdepot/try.do?productNumber=ONCplus


It is always recommended to update your software to the latest version. If the problem persists I will continue to help.


Kind regards,

Kobylka
P_F
Regular Advisor

Re: /etc/exports file not read/sourced

Yes, the ONCplus level is less than *.08.
P_F
Regular Advisor

Re: /etc/exports file not read/sourced

Question ?

Has "share" replaced "exportfs -a" ?

Is this the root problem ?

--------------------------------------------
exportfs(1M) exportfs(1M)

NAME
exportfs - translates exportfs options to share/unshare commands

SYNOPSIS
/usr/sbin/exportfs [-auv]

/usr/sbin/exportfs [-uv] [pathname]

/usr/sbin/exportfs -i [-o options] [-v] [pathname]

DESCRIPTION
exportfs translates HP-UX exportfs options to the corresponding
share/unshare options and invokes share/unshare with the translated
options.

With no options or arguments, exportfs invokes share to print out the
list of all currently shared NFS file systems.

Use share(1M) or unshare(1M) whenever possible.
Dave Olker
Neighborhood Moderator

Re: /etc/exports file not read/sourced

On 11i v3 systems (11.31) the /etc/exports file is replaced by the /etc/dfs/dfstab file and the exportfs command is replaced by the share command. See the dfstab and share man pages for more information.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
P_F
Regular Advisor

Re: /etc/exports file not read/sourced

This was the issue, Dave.

Thanks.
P_F
Regular Advisor

Re: /etc/exports file not read/sourced

user the share / dfstab paradigm.
TTr
Honored Contributor

Re: /etc/exports file not read/sourced

> Dave Olker Sep 24, 2009 17:10:54 GMT 3 pts...

> This was the issue, Dave.
> Thanks.

@Jpeck: Have you read the forum policy about assigning points? It seems that Dave's answer deserved 10 points.