mountd.8 (f93c028ac9fa8d9a86185da83b499017596d6d92) mountd.8 (9432e798fc6daaad341a496e9abcf9e3b760a63b)
1.\" Copyright (c) 1989, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 14 unchanged lines hidden (view full) ---

23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.\" @(#)mountd.8 8.4 (Berkeley) 4/28/95
29.\" $FreeBSD$
30.\"
1.\" Copyright (c) 1989, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 14 unchanged lines hidden (view full) ---

23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.\" @(#)mountd.8 8.4 (Berkeley) 4/28/95
29.\" $FreeBSD$
30.\"
31.Dd October 11, 2020
31.Dd March 18, 2023
32.Dt MOUNTD 8
33.Os
34.Sh NAME
35.Nm mountd
36.Nd service remote
37.Tn NFS
38mount requests
39.Sh SYNOPSIS

--- 113 unchanged lines hidden (view full) ---

153option is used.
154.El
155.Pp
156When
157.Nm
158is started,
159it loads the export host addresses and options into the kernel
160using the
32.Dt MOUNTD 8
33.Os
34.Sh NAME
35.Nm mountd
36.Nd service remote
37.Tn NFS
38mount requests
39.Sh SYNOPSIS

--- 113 unchanged lines hidden (view full) ---

153option is used.
154.El
155.Pp
156When
157.Nm
158is started,
159it loads the export host addresses and options into the kernel
160using the
161.Xr mount 2
161.Xr nmount 2
162system call.
163After changing the exports file,
164a hangup signal should be sent to the
165.Nm
166daemon
167to get it to reload the export information.
168After sending the SIGHUP
169(kill \-s HUP `cat /var/run/mountd.pid`),
170check the syslog output to see if
171.Nm
172logged any parsing
173errors in the exports file.
174.Pp
162system call.
163After changing the exports file,
164a hangup signal should be sent to the
165.Nm
166daemon
167to get it to reload the export information.
168After sending the SIGHUP
169(kill \-s HUP `cat /var/run/mountd.pid`),
170check the syslog output to see if
171.Nm
172logged any parsing
173errors in the exports file.
174.Pp
175If multiple instances of
176.Nm
177are being run, either in multiple jails or both within
178and outside of a jail, care must be taken to export
179any given file system in only one of the instances.
180Note that the
181.Va allow.nfsd
182jail parameter is required to allow
183.Nm
184to run in a jail.
185See
186.Xr jail 8
187for more information.
188.Pp
175If
176.Nm
177detects that the running kernel does not include
178.Tn NFS
179support, it will attempt to load a loadable kernel module containing
180.Tn NFS
181code, using
182.Xr kldload 2 .
183If this fails, or no
184.Tn NFS
185KLD was available,
186.Nm
187exits with an error.
189If
190.Nm
191detects that the running kernel does not include
192.Tn NFS
193support, it will attempt to load a loadable kernel module containing
194.Tn NFS
195code, using
196.Xr kldload 2 .
197If this fails, or no
198.Tn NFS
199KLD was available,
200.Nm
201exits with an error.
202When run in a jail, the
203.Xr kldload 2
204must be done outside the jail, typically by adding
205.Dq nfsd
206to
207.Va kld_list
208in the
209.Xr rc.conf 5
210file on the jail host.
188.Sh FILES
189.Bl -tag -width /var/run/mountd.pid -compact
190.It Pa /etc/exports
191the list of exported file systems
192.It Pa /var/run/mountd.pid
193the pid of the currently running mountd
194.It Pa /var/db/mountdtab
195the current list of remote mounted file systems
196.El
197.Sh SEE ALSO
198.Xr nfsstat 1 ,
199.Xr kldload 2 ,
200.Xr nfsv4 4 ,
201.Xr exports 5 ,
211.Sh FILES
212.Bl -tag -width /var/run/mountd.pid -compact
213.It Pa /etc/exports
214the list of exported file systems
215.It Pa /var/run/mountd.pid
216the pid of the currently running mountd
217.It Pa /var/db/mountdtab
218the current list of remote mounted file systems
219.El
220.Sh SEE ALSO
221.Xr nfsstat 1 ,
222.Xr kldload 2 ,
223.Xr nfsv4 4 ,
224.Xr exports 5 ,
225.Xr rc.conf 5 ,
226.Xr jail 8 ,
202.Xr nfsd 8 ,
203.Xr rpcbind 8 ,
204.Xr showmount 8
205.Sh HISTORY
206The
207.Nm
208utility first appeared in
209.Bx 4.4 .
227.Xr nfsd 8 ,
228.Xr rpcbind 8 ,
229.Xr showmount 8
230.Sh HISTORY
231The
232.Nm
233utility first appeared in
234.Bx 4.4 .