From owner-freebsd-jail@freebsd.org Thu Feb 21 13:01:44 2019 Return-Path: Delivered-To: freebsd-jail@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 5EFC714E0199 for ; Thu, 21 Feb 2019 13:01:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E9BDE71EEC for ; Thu, 21 Feb 2019 13:01:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 90C2214E0198; Thu, 21 Feb 2019 13:01:43 +0000 (UTC) Delivered-To: jail@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 7E7B614E0197 for ; Thu, 21 Feb 2019 13:01:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1B6C571EE6 for ; Thu, 21 Feb 2019 13:01:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 705091B07A for ; Thu, 21 Feb 2019 13:01:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x1LD1gRq061391 for ; Thu, 21 Feb 2019 13:01:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x1LD1gUH061361 for jail@FreeBSD.org; Thu, 21 Feb 2019 13:01:42 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: jail@FreeBSD.org Subject: [Bug 235863] file loss when adding faulty entry in a jail's /etc/fstab.foo after removing jail Date: Thu, 21 Feb 2019 13:01:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: unixmig68@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jail@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 MIME-Version: 1.0 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Feb 2019 13:01:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235863 --- Comment #1 from leaveemptyfordefault --- Follow up: reproducing the original bug, I am now able to do a recovery. In both original bug report and this follow-up, zfs was used. Using the same /etc/jail.conf, and a similar /etc/fstab.foo, getting the zfs fileset lost again, here's how it can be recovered: # mkdir /recovery # an arbitrary recovery = dir # zfs set mountpoint=3D/recovery zroot/j/foo.d # cd /recovery # ls # # nothing recovered # zfs set mountpoint=3D"legacy" zroot/j/foo.d # possibly a needed st= ep # zfs list | grep foo zroot/j/foo.d 71.7M 428M 71.7M legacy # zfs still lists usage # zfs set mountpoint=3D"/zroot/j/foo.d" zroot/j/foo.d #point zfs to org mountpoint # cd /zroot/j/foo.d # ls -1 foo.etc foo.root foo.homedir foo.tmp # files recovered --=20 You are receiving this mail because: You are the assignee for the bug.=