Operating System - HP-UX
1753962 Members
7665 Online
108811 Solutions
New Discussion юеВ

NFS Server hangs when share with option

 
Damir Baronica
Visitor

NFS Server hangs when share with option

Hi all,

I tried to setup simple NFS share between two HP-UX B.11.31 hosts.

NFS Server (server3):
/usr/sbin/share -F nfs -o anon=-1,rw=,ro=server1:server2,root=server2 -d "Share Region" /ddshare Dev

server2:
mount -F nfs server3:/ddshare /mnt
NFS server server3 not responding still trying

server3 syslog:
vmunix: WARNING: nfsauth: mountd not responding

Then shared without option:
NFS Serevr (server3):
/usr/sbin/share -F nfs -d "Share Region" /ddshare Dev

Mount on server2 success, and everything is OK.

What is wrong with ro and rw options?

Regards,
Damir
5 REPLIES 5
OldSchool
Honored Contributor

Re: NFS Server hangs when share with option

according to the man page "rw" is valid, as is "rw=". No ideal what happens when you give "rw=" w/o list.

also, server2 has "root" access, and "read-only?". Not sure what the intent is there, as I'd think if you give root access, it would want tp have "read/write" as well

Steven E. Protter
Exalted Contributor

Re: NFS Server hangs when share with option

Shalom Damir,

Suggest introducing your options one at a time.

I'm not happy with the rw= and no list. That makes no sense. If you want to provide rw access then put a hostname on the list. Otherwise why is it there?

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Damir Baronica
Visitor

Re: NFS Server hangs when share with option


Hi all,

if you use:
/usr/sbin/ncweb -t, then browse to:
SMH-> Networking and Communications-> Networked File Systems-> Share/Unshare Filesystem
and add share with this command, the syntax is exactly as I wrote in my post.

I tried every possible combination of the share command from command line also, but the result is same.
Every time I used less parameter, but any combination of parameters doesn't work except simple command without any parameters, which means that I share to every host with write permission.


The failing commands are:

/usr/sbin/share -F nfs -o anon=-1,rw=,ro=server1:server2,root=server2 -d "Share Region" /ddshare Dev
/usr/sbin/share -F nfs -o ro=server1:server2 -d "Share Region" /ddshare Dev
/usr/sbin/share -F nfs -o ro=server2 -d "Share Region" /ddshare Dev
/usr/sbin/share -F nfs -o rw=server2 -d "Share Region" /ddshare Dev
/usr/sbin/share -F nfs -o rw=server2 /ddshare
/usr/sbin/share -F nfs -o ro=server2 /ddshare

Only this works:
/usr/sbin/share -F nfs /ddshare

If root have read-only or write access to the shared path is irrelevant in this case.
It shouldn't have access at all in final setup.

Regards,
Damir
Damir Baronica
Visitor

Re: NFS Server hangs when share with option


The problem is solved.
During the instalation of the server hostname was given as FQDN: server1.mydomain.local

# hostname
server1.mydomain.local

Changing the hostname to short name: server1
and restart of the nfs services (core, server and client) solved the issue.

# hostname server1

# hostname
server1

Also in the /etc/rc.config.d/netconf/ parameter:

HOSTNAME=server1.mydomain.local

is changed to:

HOSTNAME=server1

to retain short hostname after reboot.

Regards,
Damir
Damir Baronica
Visitor

Re: NFS Server hangs when share with option


The problem is solved changing the host name from FQDN host name server1.mydomain.local to short host name server1.