Santa wrote:
> I have two linux boxes, first machine name is "abc" and the second
> machine name is "xyz", I need to access many files of xyz from abc.
> How can I do NFS mount?. fdor example, I have to access files under
> /x/y/z directory on "xyz" machine from "abc" machine. Here "abc" IP
> address is 10.11.12.1 and "xyz" machine IP address is "100.101.102.1".
> Appreciated.
>
> on xyz machine, what are the contents I have to fill in /etc/exports
> file?
Just in case you're working on this...
In /etc/exports on xyz put something like
/x/y/z 10.0.0.0/8(ro,all_squash)
or
/x/y/z 10.11.12.1/32(ro,all_squash)
or something in between. The network address is the range from which to
allow connections.
"man exports" for more options.
On abc, create a mount point with mkdir. I use /mnt/nfs. It's just a
directory. Make sure abc can resolve the name xyz, then
mount xyz:/x/y/z /mnt/nfs
portmap has to be running on both servers.
nfs services have to be running on xyz.
|