unix:freebsd:system_builds:nfsserver
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
unix:freebsd:system_builds:nfsserver [2019/09/17 01:19] – rodolico | unix:freebsd:system_builds:nfsserver [2023/01/17 20:40] (current) – [Configure and start NFS] rodolico | ||
---|---|---|---|
Line 37: | Line 37: | ||
<code bash exports> | <code bash exports> | ||
- | /media/nfsroot/dom0 -alldirs | + | /media/nfs_root/dom0 -alldirs |
- | /media/nfsroot/ | + | /media/nfs_root/ |
- | /media/nfsroot/ | + | /media/nfs_root/ |
</ | </ | ||
Line 61: | Line 61: | ||
rpcbind_enable=" | rpcbind_enable=" | ||
nfs_server_enable=" | nfs_server_enable=" | ||
- | mountd_flags=" | + | mountd_enable=" |
+ | |||
+ | # the -h below binds nfsd to a specific IP, so a machine with | ||
+ | # multiple IP's will only respond if this one is used for the | ||
+ | # request | ||
+ | mountd_flags=" | ||
# uncomment the following lines if server side file locks are | # uncomment the following lines if server side file locks are | ||
# needed. Note you must replicate this on the clients | # needed. Note you must replicate this on the clients | ||
Line 72: | Line 77: | ||
Note the mountd_flags entry. mountd is what actually handles the mount request from clients. The -r flag allows individual files to be mounted, such as swap a swap file, or a virtual image. Additional flags may be specified. See //man 5 mountd// for more information. Two nice ones are the -h and -p flags which allow you to specify the IP and Port mountd will listen on. | Note the mountd_flags entry. mountd is what actually handles the mount request from clients. The -r flag allows individual files to be mounted, such as swap a swap file, or a virtual image. Additional flags may be specified. See //man 5 mountd// for more information. Two nice ones are the -h and -p flags which allow you to specify the IP and Port mountd will listen on. | ||
+ | ===== Maintenance ===== | ||
+ | |||
+ | If you need to add/ | ||
+ | <code bash> | ||
+ | service mountd reload | ||
+ | </ | ||
+ | At this point, the modifications will be in effect. NOTE, if you have modified a share which was mounted, you should umount it, make the changes, then remount. | ||
===== Links ===== | ===== Links ===== | ||
* https:// | * https:// |
unix/freebsd/system_builds/nfsserver.1568701166.txt.gz · Last modified: 2019/09/17 01:19 by rodolico