From owner-freebsd-fs@freebsd.org Tue Jun 4 00:30:16 2019 Return-Path: Delivered-To: freebsd-fs@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 AFA6315C243A for ; Tue, 4 Jun 2019 00:30:16 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-QB1-obe.outbound.protection.outlook.com (mail-eopbgr660074.outbound.protection.outlook.com [40.107.66.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 51BCF767A2; Tue, 4 Jun 2019 00:30:14 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from YQXPR01MB3128.CANPRD01.PROD.OUTLOOK.COM (52.132.93.160) by YQXPR01MB2342.CANPRD01.PROD.OUTLOOK.COM (52.132.91.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1943.22; Tue, 4 Jun 2019 00:30:13 +0000 Received: from YQXPR01MB3128.CANPRD01.PROD.OUTLOOK.COM ([fe80::f9fe:559f:fdc:9e5a]) by YQXPR01MB3128.CANPRD01.PROD.OUTLOOK.COM ([fe80::f9fe:559f:fdc:9e5a%3]) with mapi id 15.20.1943.018; Tue, 4 Jun 2019 00:30:13 +0000 From: Rick Macklem To: Alan Somers CC: Peter Eriksson , "freebsd-fs@freebsd.org" Subject: Re: RFC: should an incremental reload of exports for mountd be optional? Thread-Topic: RFC: should an incremental reload of exports for mountd be optional? Thread-Index: AQHVF/n5fA6XHqwN4UmNwJInW+ldyaaKg72AgAADv4CAAAwEh4AAAiAAgAAOB/w= Date: Tue, 4 Jun 2019 00:30:13 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8aa3e1d1-c2a6-4dc4-8dad-08d6e883cf22 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600148)(711020)(4605104)(1401327)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:YQXPR01MB2342; x-ms-traffictypediagnostic: YQXPR01MB2342: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0058ABBBC7 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(346002)(39860400002)(366004)(376002)(396003)(199004)(189003)(6916009)(786003)(316002)(2906002)(52536014)(296002)(186003)(229853002)(99286004)(9686003)(446003)(476003)(54906003)(486006)(14444005)(5660300002)(7696005)(14454004)(68736007)(6436002)(46003)(478600001)(55016002)(11346002)(102836004)(256004)(71200400001)(74482002)(6246003)(71190400001)(33656002)(53936002)(74316002)(66476007)(66556008)(64756008)(66446008)(66946007)(76116006)(6506007)(86362001)(8676002)(305945005)(73956011)(25786009)(76176011)(8936002)(81166006)(53546011)(4326008)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:YQXPR01MB2342; H:YQXPR01MB3128.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: uoguelph.ca does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 9ul4YRe7VAB0kqzXD8WlKCEDMusMMJ/D30QvStREAQeo+pXn1R8/wTviKxA9Bn5ULOQ8o52HDF704Vhvm7S82pmQBLnnwfcMBHZ4qEorQtHzo+YIsCRtAaGuzGD3iNVpkE67N9CrbxwhwZlhE2n3msdti8WnmYdZDdiM0IN75Fs76dbivRpPyRaOiXKurhTFyke6WjGy3Erw6U3evj8ipzKjnsqBJn2ilER9dDOSP2pIUnxCogIVy+Zjs0MfWus8p4bY1oPH1uUAQIEEETldu71PMpUmRv5VdAbBedo0lMisCBkfGn7yZ3iCm1NFJuyoTD2Pi1OxMRIs5/+WCkL8/1Lbv/hrbcBE+aJWHOxjRVOV/d0JO/UFfuFBlYPOwmTGMstDLmLg7vuzt+gl1U7Q9jv0PhQPdzHO2ebogTv4NHc= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-Network-Message-Id: 8aa3e1d1-c2a6-4dc4-8dad-08d6e883cf22 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jun 2019 00:30:13.1622 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: rmacklem@uoguelph.ca X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQXPR01MB2342 X-Rspamd-Queue-Id: 51BCF767A2 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of rmacklem@uoguelph.ca designates 40.107.66.74 as permitted sender) smtp.mailfrom=rmacklem@uoguelph.ca X-Spamd-Result: default: False [-3.24 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; SUBJECT_ENDS_QUESTION(1.00)[]; DMARC_NA(0.00)[uoguelph.ca]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: mx2.hc184-76.ca.iphmx.com]; NEURAL_HAM_SHORT(-0.92)[-0.915,0]; RCVD_IN_DNSWL_NONE(0.00)[74.66.107.40.list.dnswl.org : 127.0.3.0]; IP_SCORE(-1.02)[ipnet: 40.64.0.0/10(-2.84), asn: 8075(-2.18), country: US(-0.06)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8075, ipnet:40.64.0.0/10, country:US]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jun 2019 00:30:17 -0000 Alan Somers wrote: >Will a restart of the daemon cause clients to get HUPped if they try >to access an exported filesystem while mountd is restarting? >-Alan I'm not sure what you mean by HUPped, but during a restart of mountd, extan= t mounts should continue to work. What will fail during the mountd restart is new NFSv3 mount attempts, becau= se they won't be able to talk to mountd via the Mount protocol. Usually the failure will be rpcbind not having MOUNTPROG registered. Then a retry of the mount (which will happen after something like 30sec if = you don't C the mount command) will succeed, assuming mountd has restarte= d. Unmounts will complain the MOUNTPROG wasn't registered, but the umount will work anyhow. Then "showmount", which is never guaranteed to return correct info, will re= port it as still mounted. Since "showmount" never knows about NFSv4 mounts and just returns its guess at what is mounted, I don't find it useful anyhow. NFSv4 mounts should continue to work when mountd isn't running, since they= don't use the Mount protocol. And, since they don't use the Mount protocol= , "showmount" never knows about them. So, I restart can cause some disruption, but they are mostly just delays wh= en doing new NFSv3 mounts on the server. rick On Mon, Jun 3, 2019 at 5:13 PM Rick Macklem wrote: > > Thanks everyone for your comments. I just committed the patch with > the incremental reload of exports always enabled. > If people run into problems, I can add some "backdoor" way to disable > it, as suggested by asomers@. > > A restart of the daemon will always do a full reload to work around any > reload failures. > > rick > [stuff snipped]=