Original message with added information:
>
> We have not been successful in nfs mounting file systems onto the LX
> from a Sparc 1+ SunOS 4.1.2 #3.
> We have tried
> 1. exporting to the world
> 2. exporting to (hostname, FQHN, inet address)
>
> The LX is in /etc/hosts on the Sparc 1+. The Sparc 1+ is in the
> LX /etc/hosts.
The error message "permission denied" was due to a duplicate entry in
the LX /etc/hosts; so the LX was requesting a mount from the incorrect
host.
The only modification required on the existing 4.1.2 file server was
the addition to /etc/exports, and executing exportfs.
Thanks to the following people for timely information.
Useful information for system managers is appended below.
marv@iti.gov.sg
corson@infodyn.COM (Tom Corson)
higgins@math.niu.edu
stern@sunne.East.Sun.COM (Hal Stern - NE Area Systems Engineer)
randy@ncbi.nlm.nih.gov (Rand S. Huntzinger)
davisson@ida.org (Chuck Davisson)
dave@yoyodyne.b11.ingr.com (Dave Vance)
###############################################################################
>From randy@ncbi.nlm.nih.gov (Rand S. Huntzinger)
There are quite a lot of pitfalls here - so I don't know where to begin.
I'm running Sun OS 5.0, but I assume the commands are the same. The basic
command to "export" is now "share", so you'd have to do the following to make
/usr nfs mountable on your LX:
share -F nfs /usr
Now, on your remote system you would need the following to mount it on /mnt
(assuming a SunOS 4.x system):
mount lx_name:/usr /mnt
That should do it assuming that lx_name and it's IP address is known to the
remote machine (ie. in /etc/hosts or the NIS maps or DNS if that's what you
use. /etc/hosts isn't used once the system is up if you're running NIS or
DNS).
That's how to do an ad-hoc mount NFS mount. Now if you want to export it
all the time, you put the appropriate entry into /etc/dfs/dfstab and then
run the shareall command. [This is the equivalent to editing /etc/exports and
running exportfs under SunOS 4.1x]. A typical entry might be:
share -F nfs -o rw -d "Sparc LX /usr directory" /usr
Hopefully this discription will help you find the problem. It works fine under
SunOS 5.0 (Solaris 2.0) - I don't have 5.1 yet so I can't comment directly on
that.
###############################################################################
>From dave@yoyodyne.b11.ingr.com (Dave Vance)
1) if you are trying to mount the LX what does your
/etc/dfs/dfstab file look like? for instance to
export to the world we use:
share -F nfs -d "/usr4" /usr4 /usr4
then do a shareall or reboot since you wont be at
init level 3 withour a dfstab entry.
2) if you are trying to mount the LX, what is the error?
we use the normal mount syntax since nfs is the default,
mount machine:/directory /directory and have had
no problems.
We have successfully mounted back and forth between the LX and
a Sparc 2 with the networks file set up for DNS, NIS, NIS+ and
with just using the /etc files.
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:53 CDT