From nobody Fri Oct 8 23:01:07 2021 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A8D5D12D49FA for ; Fri, 8 Oct 2021 23:01:15 +0000 (UTC) (envelope-from merlyn@geeks.org) Received: from mail.geeks.org (mail.geeks.org [IPv6:2001:4980:3333:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HR3Zz4LVVz4Ytn for ; Fri, 8 Oct 2021 23:01:15 +0000 (UTC) (envelope-from merlyn@geeks.org) Received: from mail.geeks.org (localhost [127.0.0.1]) by after-clamsmtpd.geeks.org (Postfix) with ESMTP id C268414BB3 for ; Fri, 8 Oct 2021 18:01:07 -0500 (CDT) Received: by mail.geeks.org (Postfix, from userid 1003) id B354D14BB2; Fri, 8 Oct 2021 18:01:07 -0500 (CDT) Date: Fri, 8 Oct 2021 18:01:07 -0500 From: Doug McIntyre To: FreeBSD Mailing List Subject: Re: How to delete stale NFS handles Message-ID: References: List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Virus-Scanned: ClamAV using ClamSMTP X-Rspamd-Queue-Id: 4HR3Zz4LVVz4Ytn X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Fri, Oct 08, 2021 at 03:14:59PM -0400, Aryeh Friedman wrote: > How do I delete the .nfs's in the following session capture: > > aryeh@sarek1024% rm -rf scrap/ > rm: scrap/www/WEB-INF/lib: Directory not empty ... > ./scrap/www/WEB-INF/lib/.nfs.82430403.33dc4.4 > ./scrap/www/WEB-INF/lib/.nfs.82430407.33dc4.4 > ./scrap/www/WEB-INF/lib/.nfs.82430406.33dc4.4 There's a process running that is holding that file open. You'll have to shut down that process so it'll release the file handle.