From nobody Tue Sep 6 12:11:18 2022 X-Original-To: standards@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 4MMPPM1qpLz4bg8q for ; Tue, 6 Sep 2022 12:11:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MMPPM0HC8z3rvT for ; Tue, 6 Sep 2022 12:11:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MMPPL63YYz18rN for ; Tue, 6 Sep 2022 12:11:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 286CBIXO095675 for ; Tue, 6 Sep 2022 12:11:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 286CBImZ095674 for standards@FreeBSD.org; Tue, 6 Sep 2022 12:11:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 266236] ZFS NFS : .zfs/snapshot : Stale file handle Date: Tue, 06 Sep 2022 12:11:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: nomad@neuronfarm.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662466279; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qXViHBh79QyHWTTuAHHBtX4qTm3TzHDEy91BbtW6uBc=; b=ojkjVrjGKBtyX7cAU6yv2QVxo4vyIE/n/z91+hvEO2wIL18Cm3XtTdvorG1VpOaGpZPNlz H45HTRAfIBiECZvu+vCn7qO7VxSrnHHNt7udVvi0/4JCXIH4sObNi9JKy782sldfmWJSJc ECkdVGU9PIyDvbzD/FjXa0x6n+2hfbXdt1ppaE2diVTr3MOxpNqTEW26J5dOMc2A2Jp3it x+i0QiMm4kXSRWHk1yBfi5eAQErm5apeLpnEQGOIXJdI5iftesG9T5KKqVyTE11R4YCjsD uBhh24JGO+A7nSCtkYsXgCw24rH1hq4+8C/y8312jAocM/VsZ3dawLg7Xsc0ww== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662466279; a=rsa-sha256; cv=none; b=MV20qdGlap489Kyx7JHarNiKALbt1TsaHk3+70YX7E9gzjkZxYn7SXEqVG7hGMEGb9SkrY G1AwAu61DFoxG8Lwi6kKVhFgV2mimJQc+NgO8d400/qN3Fr9cd5EfbxOaGFKkgJRI7KoMP Sm073o2hQjOEFhilb/BFjVo5vOEDMYXGF9JE7AxPjzQUkok4aqNfMf3ZuKHTcse3Bc2Vw6 1sIOUo1IdAEropd1jdDEqIZQcw2Jliw3lma3HtmzQhHz+U/vdc/CFqtPnGgRN1Dwee9gC9 wrRQIahpGZUFYJDlvR3A4k5U0l4pne26mcjvZqWtWblyY4aFBLNc2CT4yLtSDw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266236 --- Comment #3 from Michel Le Cocq --- A little small procedure to reproduce this bug. Install a fresh FreeBSD server under 13.1-p2 root@server:~# freebsd-version=20 13.1-RELEASE-p2 Inside a zfs pool create a vol and share it by NFS. root@server:~# zfs get name,mountpoint,sharenfs tank/zfsnfstest NAME PROPERTY VALUE SOURCE tank/zfsnfstest name tank/zfsnfstest - tank/zfsnfstest mountpoint /tank/zfsnfstest local tank/zfsnfstest sharenfs on local Mount localy your sharenfs vol. root@server:~# mount -t nfs 127.0.0.1:/tank/zfsnfstest /mnt Create a snapshot. root@server:~# zfs snapshot tank/zfsnfstest@1 Check you can access localy. root@server:~# ls -l /tank/zfsnfstest/.zfs/snapshot/1/ total 0 root@server:~# Try to acces from mounted NFS vol. root@server:~# ls -l /mnt/.zfs/snapshot/1/ total 0 ls: /mnt/.zfs/snapshot/1/: Stale NFS file handle Here we see we don't have access from NFS. Try to remove your previous created snapshot. root@server:~# zfs destroy tank/zfsnfstest@1 This process didn't end... root@server:~ # ps aux USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMA= ND [...] root 58027 0.0 0.0 18012 7256 1 D+ 12:27 0:00.01 zfs destroy tank/zfsnfstest@1 D mean : Uninterruptible sleep (usually IO). So you can't kill it ! root@server:~ # kill 58027 root@server:~ # ps aux | grep 58027 root 58027 0.0 0.0 18012 7256 1 D+ 12:27 0:00.01 zfs destroy tank/zfsnfstest@1 root@server:~ # kill -1 58027 root@server:~ # ps aux | grep 58027 root 58027 0.0 0.0 18012 7256 1 D+ 12:27 0:00.01 zfs destroy tank/zfsnfstest@1 root@server:~ # kill -9 58027 root@server:~ # ps aux | grep 58027 root 58027 0.0 0.0 18012 7256 1 D+ 12:27 0:00.01 zfs destroy tank/zfsnfstest@1 root@server:~ # --=20 You are receiving this mail because: You are the assignee for the bug.=