General
cancel
Showing results for 
Search instead for 
Did you mean: 

NFS mounts between 11.11 and 11.31

Gary Cooper_1
Esteemed Contributor

NFS mounts between 11.11 and 11.31

Why do they have to go and change stuff that works OK to start with? (Don't answer that - it's rhetorical).

We're a pa-risc/11.11 shop and are moving to Itanium/11.31. We use NFS extensively. I've just tried (repeatedly) to do an NFS mount from an 11.31 machine to an 11.11 machine with no luck.

I'm finding this really confusing. Smh aside, what is the difference between /etc/dfs/dfstab and /etc/dfs/sharetab?
Some of the HP documentation I've read says to edit dfs tab and then run 'shareall -F nfs'. I've tried that and it doesn't work (if I subsequently try to unshare the directory, it tells me it's not shared).

Just co confuse things futher, some of the other documentation says to edit sharetab and run shareall, which I've done to no avail.

The nearest Ive got to getting this to work was to use smh to share the 11.31 directory, but when I did that, I could (NFS) mount it on another 11.31 machine, but not on an 11.11 machine.

Help....

Thanks in advance,

Gary
6 REPLIES
Dennis Handly
Acclaimed Contributor

Re: NFS mounts between 11.11 and 11.31

What do you have in your dfstab or sharetab?
Do you use a FQDN?
Gary Cooper_1
Esteemed Contributor

Re: NFS mounts between 11.11 and 11.31

Hi Dennis,

Thanks for the response.

On the machine that has the directory to be shared out/exported...

dfstab:
share -F NFS -o anon=65534 -d â NCD Boot Directoryâ /opt/ncd/tekxp/boot

sharetab:
/opt/ncd/tekxp/boot /opt/ncd/tekxp/boot nfs rw none

Not quite sure what you mean by using the FQDN as the syntax neither of these files mentions a host name.

Regards,

Gary
Gary Cooper_1
Esteemed Contributor

Re: NFS mounts between 11.11 and 11.31

dfstab should say:
share -F NFS -o anon=65534 -d "NCD Boot Directory" /opt/ncd/tekxp/boot
Dennis Handly
Acclaimed Contributor

Re: NFS mounts between 11.11 and 11.31

>using the FQDN as the syntax neither of these files mentions a host name.

I was guessing that if you used just rw=foo, you would have to qualify it.
Shibin_2
Honored Contributor

Re: NFS mounts between 11.11 and 11.31

NFS version in 11.11 and 11.31 are different. You may have to specify the version, when you export it.
Regards
Shibin
Gary Cooper_1
Esteemed Contributor

Re: NFS mounts between 11.11 and 11.31

Here's what eventually worked (and could be mounted from 11.31 and 11.11)...

Option 1
Manually share the directory from the command prompt:
# share -F nfs -o rw -d "NCD OCX boot directory" /opt/ncd/tekxp/boot

This causes an entry to be added to /etc/dfs/sharetab:
# cat sharetab
/opt/ncd/tekxp/boot - nfs rw NCD OCX boot directory

This entry is removed when the directory is unshared.

Option 2
Add an entry to /etc/dfs/dfstab, the syntax of which is exactly the same as the manual ‘share’ command, then run shareall…
Add the following to /etc/dfs/dfstab:
share -F nfs -o rw -d "NCD OCX boot directory" /opt/ncd/tekxp/boot
Then run the shareall command
# shareall -F nfs

This causes an entry to be added to /etc/dfs/sharetab:
# cat sharetab
/opt/ncd/tekxp/boot - nfs rw NCD OCX boot directory

This entry is removed when the directory is unshared.

Hope that might help others.

Regards,

Gary