In rc.conf, enable these options on the NFS server
rpcbind_enable="YES"
nfs_server_enable="YES"
mountd_flags="-r"
Edit /etc/exports to put in filesystems you need to export
/home/sites/webapps 10.0.0.220 -maproot=nobody:nobody
Start nfs service
Reload mountd - mountd must be reloaded when /etc/exports get updated.
/etc/rc.d/mountd onereload
NFS client
Out into /etc/rc.conf
Start nfs client
/etc/rc.d/nfsclient start
Query exported fs on remote server
showmount -e remote-server
Mount the remote share
mount remoteserver:/some/place /my/mount
or put into fstab:
10.0.0.220:/usr/home/sites /usr/home/sites nfs -r=32768,-w=32768,rw,intr,tcp,bg 0 0
This is so old. prolly no one is using it for good reasons. I'm just gonna lay out the dirty steps here.
SERVER
# edit /etc/exports
portmap
/sbin/mountd -r
/sbin/nfsd -tun 3
CLIENT
nfsiod -n 4
mount -onfsv3 1.2.3.4:/blah /blah
There are no comments on this page. [Add comment]