From owner-freebsd-net@freebsd.org Tue Aug 2 23:03:15 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B7A93BAC57E for ; Tue, 2 Aug 2016 23:03:15 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0094.outbound.protection.outlook.com [157.56.111.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 538B41776 for ; Tue, 2 Aug 2016 23:03:14 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from YTXPR01MB0495.CANPRD01.PROD.OUTLOOK.COM (10.165.220.17) by YTXPR01MB0496.CANPRD01.PROD.OUTLOOK.COM (10.165.220.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Tue, 2 Aug 2016 22:48:52 +0000 Received: from YTXPR01MB0495.CANPRD01.PROD.OUTLOOK.COM ([10.165.220.17]) by YTXPR01MB0495.CANPRD01.PROD.OUTLOOK.COM ([10.165.220.17]) with mapi id 15.01.0549.022; Tue, 2 Aug 2016 22:48:52 +0000 From: Rick Macklem To: Slawa Olhovchenkov , "freebsd-net@freebsd.org" Subject: Re: Is NFSv4 mount interruptible? Thread-Topic: Is NFSv4 mount interruptible? Thread-Index: AQHR7Q5869k2obPpPEiFFbi693at8aA2RBqg Date: Tue, 2 Aug 2016 22:48:52 +0000 Message-ID: References: <20160802223728.GN8192@zxy.spb.ru> In-Reply-To: <20160802223728.GN8192@zxy.spb.ru> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=rmacklem@uoguelph.ca; x-originating-ip: [24.57.164.61] x-ms-office365-filtering-correlation-id: 56ad765c-0912-4a52-777a-08d3bb272d1f x-microsoft-exchange-diagnostics: 1; YTXPR01MB0496; 6:JOKBlfUE5JQ6Ud6n6yyaRRwx31Qd/0zCCmPf6h0ZcZXqwfFfB7tCoAuPsfXGtCuCaIgFmcK/vpS9a7lG3VomXsX+P4MSBcrbwPAjr+8VXia/bf+/7LE50nBXn31RFVKNeWeolrdmiYmRL8l6j0T+/qGoPpV931V0gnFvmWqb5xMCvLqW4AJ8q7RLcsotnNeA0TO/RSTfaw2YAkicwA1EYOHveUD6JAJPJ0akznCxRKgYJoGjkk2SK1WlkpvYQLnoN1nVr2U7mzNKps1axWKsRVW5vtde7gJoZSDWjL4xUxNxFzkRKW4scpnUO6I2rd//; 5:zX8Z5VBOTCoFS3Z1cKMs/SNUuOKytYHEZvdyy2Av/F2umyeBXM9yB33RvYZHkiLfkw5OOfkTVso8yKyEaMMdhyPB3PALHfKBFQlZizg1Tcdx0C7pb7uYAsKZqi8wVHwXUAIz3MKnEMbWLlyrVjW0dg==; 24:HLfBYBP+P6n+cWPY8PfiZRQhWWR397q/yjM+ijok5HsBwtRlr2TEO+84H8a5GjnI4Jpwy5VxUWhwtasOngnSuCtAfZRpmEnpFct0a0SLc2E=; 7:pJjLO5BDoTaPs53T06qkEbWbnpLx8ObzE5/SUcZHENjFa2gghidWWQ7qZWNDjey5O3vfntmJ3fJ9MluYsl+dpiWA3j8AohvudP9TxNhKSTAQv5WeyT79NUlh7IHKR+TAIw1aRFILGoeBXWUhHZiBKV8O341QUqRW5rigIZY2R7OZiKDrfBHvtOOc305iupadD7DW97k0mRUM97ZAJjCVG1bxS1MHagvtX7JxfIiXqTkBROmOvJhlMT1Binl8MFHO x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:YTXPR01MB0496; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(158342451672863)(75325880899374); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040130)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041072)(6043046); SRVR:YTXPR01MB0496; BCL:0; PCL:0; RULEID:; SRVR:YTXPR01MB0496; x-forefront-prvs: 0022134A87 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(7916002)(199003)(24454002)(189002)(7906003)(68736007)(97736004)(19625215002)(77096005)(586003)(2501003)(5001770100001)(19617315012)(15975445007)(3280700002)(66066001)(33656002)(3660700001)(2906002)(19627405001)(87936001)(122556002)(10400500002)(7736002)(7696003)(74316002)(54356999)(7846002)(105586002)(11100500001)(86362001)(5002640100001)(76176999)(8936002)(92566002)(19580405001)(81156014)(81166006)(16236675004)(19580395003)(107886002)(106356001)(9686002)(106116001)(2900100001)(50986999)(2950100001)(102836003)(74482002)(101416001)(189998001)(8676002)(6116002)(3846002); DIR:OUT; SFP:1101; SCL:1; SRVR:YTXPR01MB0496; H:YTXPR01MB0495.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: uoguelph.ca does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Aug 2016 22:48:52.2155 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTXPR01MB0496 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2016 23:03:15 -0000 Slawa wrote: >I have autofs NFSv4 mount with /etc/nfs.map: > >/NFS -nfsv4,intr,soft,sec=3Dkrb5i,gssname=3Dhost storage01:/ > >Currently I am see NFS hung and I am can't kill shell and can't >unmount /NFS. > >Is NFSv4 mount interruptible? >Or intr support only by NFSv3? Well, in the BUGS section of "man mount_nfs" it notes that soft and intr ca= nnot be safely used with NFSv4. The problem is that, if an RPC that updates state (= Open, Close,...) terminates, then the state is no longer usable. You can "umount -f" the file system, but only if no other "umount" is alrea= dy in progress. (I am working on a new umount option that will allow "umount -f" to succeed= when another umount is stuck. It requires "umount(8)" to avoid all the path checking, e= tc.) Personally, I would never use "soft" for any mount (except read-only maybe)= , since it can result in a write failure when the NFS server is slow. Using "intr" should = be ok for NFSv3, since it is stateless. rick >_______________________________________________ >freebsd-net@freebsd.org mailing list >https://lists.freebsd.org/mailman/listinfo/freebsd-net >To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"