NFS under FreeBSD
In rc.conf, enable these options on the NFS serverrpcbind_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
/etc/rc.d/rpcbind start /etc/rc.d/nfsd start
Reload mountd - mountd must be reloaded when /etc/exports get updated.
/etc/rc.d/mountd onereload
NFS client
Out into /etc/rc.confnfs_client_enable="YES"
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
Network tuning
For gbe, the default sendspace (32k) and recvspace (64k) is probably too small.net.inet.tcp.sendspace=3217968 net.inet.tcp.recvspace=3217968
FreeBSD4
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]