From owner-svn-src-projects@freebsd.org Thu May 31 21:22:10 2018 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3638EEFD2DB for ; Thu, 31 May 2018 21:22:10 +0000 (UTC) (envelope-from rmacklem@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DC6BE806B5; Thu, 31 May 2018 21:22:09 +0000 (UTC) (envelope-from rmacklem@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BEA321FA5F; Thu, 31 May 2018 21:22:09 +0000 (UTC) (envelope-from rmacklem@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w4VLM9KD034342; Thu, 31 May 2018 21:22:09 GMT (envelope-from rmacklem@FreeBSD.org) Received: (from rmacklem@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w4VLM9hu034341; Thu, 31 May 2018 21:22:09 GMT (envelope-from rmacklem@FreeBSD.org) Message-Id: <201805312122.w4VLM9hu034341@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rmacklem set sender to rmacklem@FreeBSD.org using -f From: Rick Macklem Date: Thu, 31 May 2018 21:22:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r334446 - projects/pnfs-planb-server/usr.sbin/nfsd X-SVN-Group: projects X-SVN-Commit-Author: rmacklem X-SVN-Commit-Paths: projects/pnfs-planb-server/usr.sbin/nfsd X-SVN-Commit-Revision: 334446 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 May 2018 21:22:10 -0000 Author: rmacklem Date: Thu May 31 21:22:09 2018 New Revision: 334446 URL: https://svnweb.freebsd.org/changeset/base/334446 Log: Update nfsd.8 to reflect the recent change to a distributed mirroring model. Modified: projects/pnfs-planb-server/usr.sbin/nfsd/nfsd.8 Modified: projects/pnfs-planb-server/usr.sbin/nfsd/nfsd.8 ============================================================================== --- projects/pnfs-planb-server/usr.sbin/nfsd/nfsd.8 Thu May 31 20:22:47 2018 (r334445) +++ projects/pnfs-planb-server/usr.sbin/nfsd/nfsd.8 Thu May 31 21:22:09 2018 (r334446) @@ -28,7 +28,7 @@ .\" @(#)nfsd.8 8.4 (Berkeley) 3/29/95 .\" $FreeBSD$ .\" -.Dd April 25, 2015 +.Dd May 31, 2018 .Dt NFSD 8 .Os .Sh NAME @@ -42,6 +42,7 @@ server .Op Fl n Ar num_servers .Op Fl h Ar bindip .Op Fl p Ar pnfs_setup +.Op Fl m Ar mirror_level .Op Fl Fl maxthreads Ar max_threads .Op Fl Fl minthreads Ar min_threads .Sh DESCRIPTION @@ -114,7 +115,7 @@ as a Data Server (DS) for it to use. .Pp The .Ar pnfs_setup -string is a set of fields separated by ',' and '#' characters: +string is a set of fields separated by ',' characters: .Bl -tag -width Ds Each of these fields specifies one Data Server. It consists of a server hostname, followed by a ':' @@ -131,25 +132,24 @@ Would specify two DS servers called nfsv4-data0 and nf the data storage component of the pNFS service. The directories "/data0" and "/data1" are where the data storage servers exported storage directories are mounted on this system (which will act as the MDS). +.El +.It Fl m Ar mirror_level +This option is only meaningful when used with the +.Fl p +option. +It specifies the ``mirror_level'', which defines how many of the DSs will +have a copy of a file's data storage file. +The default of one implies no mirroring of data storage files on the DSs. +The ``mirror_level'' would normally be set to 2 to enable mirroring, but +can be as high as NFSDEV_MAXMIRRORS. .Pp -If the fields are separated by the '#' character, it indicates that these -DSs are to be configured as a mirrored set. -For example: -.sp -nfsv4-data0:/data0#nfsv4-data1:/data1,nfsv4-data2:/data2#nfsv4-data3:/data3 -.sp -Would specify two mirrored pairs of DSs, with nfsv4-data0 plus nfsv4-data1 -comprising one mirrored pair and nfsv4-data2 plus nfsv4-data3 comprising -the other mirrored pair. -.Pp -If there are mirrored sets of DSs, the server must use the Flexible File +If mirroring is enabled, the server must use the Flexible File layout. -If there are no mirrored sets of DSs, the server will use the File layout +If mirroring is not enabled, the server will use the File layout by default, but this default can be changed to the Flexible File layout if the .Xr sysctl 1 vfs.nfsd.default_flexfile is set non-zero. -.El .It Fl t Serve .Tn TCP NFS @@ -288,3 +288,12 @@ you must kill and then restart it, after the .Xr gssd 8 is running. +.Pp +If mirroring is enabled via the +.Fl m +option and there are Linux clients doing NFSv4.1 mounts, those clients +need to be patched to support the ``tightly coupled'' variant of +the Flexible File layout or the +.Xr sysctl 1 +vfs.nfsd.flexlinuxhack +must be set on the MDS as a workaround.