Operating System - HP-UX
1834116 Members
2402 Online
110064 Solutions
New Discussion

Re: NFS version and "share"

 
SOLVED
Go to solution
Tarun Jain_1
Advisor

NFS version and "share"

I have two questions, related to NFS.
First, How to know which NFS version is running on the HP-UX system ?
Second, when I run "/usr/sbin/share" on HP-UX 11.23, it complains as follows:
"share: Running old NFS library, requires new NFS library"
and there is no man pages for the "share".
I know, I can use "exportfs" instead of "share", but I don't want to do that for some reason.
Any idea, what is the problem and I need to replace which library ?

Thanks in Advance.

Regards,
Tarun
8 REPLIES 8
Sudeesh
Respected Contributor
Solution

Re: NFS version and "share"

How to know which NFS version is running on the HP-UX system ?

use rpcinfo -s

rpcinfo -s
program version(s) netid(s) service owner
100000 2,3,4 udp,tcp,ticlts,ticotsord,ticots rpcbind superuser
100024 1 tcp,udp status superuser
100021 2,4,3,1 udp,tcp nlockmgr superuser
100020 1 tcp,udp llockmgr superuser
100068 5,4,3,2 udp cmsd superuser
100083 1 tcp ttdbserver superuser
100005 3,1 tcp,udp mountd superuser
100003 3,2 udp nfs superuser
1342177279 2,1,3 tcp - superuser




Sudeesh
The most predictable thing in life is its unpredictability
Giacomo TOTTI
Advisor

Re: NFS version and "share"

Hi,
I know that you are familiar whith Solaris because you use share instead exportfs...
You have to use the exportfs command in HP-ux, it works fine in the same manner of share (it reads the /etc/exports file as share command reads /etc/dfs/dfstab file in Solaris).

regards

Giacomo
Tarun Jain_1
Advisor

Re: NFS version and "share"

Thanks Sudeesh and Totti, for quick answers.

Regarding "share", I still want to know why this is not working for HP-UX. Why does it ask for new NFS libraries ?

Regards,
Tarun
Sudeesh
Respected Contributor

Re: NFS version and "share"

can u pls post the out put of:

uname -a
file /usr/sbin/share


Sudeesh
The most predictable thing in life is its unpredictability
Tarun Jain_1
Advisor

Re: NFS version and "share"

Thanks Sudeesh,
Here is o/p, as per requirement:

(root@hp_ux)[/] uname -a
HP-UX hp_ux B.11.23 U 9000/800 2653658371 unlimited-user license

(root@hp_ux)[/] file /usr/sbin/share
/usr/sbin/share: PA-RISC1.1 shared executable dynamically linked -not stripped dynamically linked

***Additional information about 'ldd' on 'share':

(root@hp_ux)[/] ldd /usr/sbin/share
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libnsl.1 => /usr/lib/libnsl.1
/usr/lib/libxti.2 => /usr/lib/libxti.2
Sudeesh
Respected Contributor

Re: NFS version and "share"

I am unable to find any docs to help you on this, though I belive 'share' executable is part of CIFS(Samba). Can you post the out put of:
whereis share


Sudeesh
The most predictable thing in life is its unpredictability
Sudeesh
Respected Contributor

Re: NFS version and "share"

Bad news!! There is no information available in HP regarding share command. Same result for all the related commands.

ll *share*
-r-xr--r-- 1 bin bin 24372 Sep 3 2003 share
-r-xr--r-- 1 bin bin 1515 Sep 3 2003 shareall
-r-xr--r-- 1 bin bin 19956 Sep 3 2003 unshare
-r-xr--r-- 1 bin bin 976 Sep 3 2003 unshareall

/usr/sbin/swlist -l product -l file | grep /usr/sbin/share
NFS.NFS2-SERVER: /usr/sbin/share
NFS.NFS2-SERVER: /usr/sbin/shareall

These commands are part of NFS (see above o/p) and not of Samba. I stand corrected.

Lets hope HP will come up with some information regarding these commands in the near future.


Sudeesh
The most predictable thing in life is its unpredictability
赵臻
New Member

Re: NFS version and "share"

pls user exportfs of command
and edit /etc/exports