From nobody Thu Oct 14 19:45:19 2021 X-Original-To: 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 42D1C17FED5B for ; Thu, 14 Oct 2021 19:45:29 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [184.105.128.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "holgerdanske.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HVfyJ1grNz3D1Y for ; Thu, 14 Oct 2021 19:45:28 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=holgerdanske.com; s=nov-20210719-112354; t=1634240720; bh=NpxWJE91O2iq7p382IIGPjHJ1L5QKPgzYKpTZJHWiJc=; h=Received:Subject:To:References:From:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Content-Language: Content-Transfer-Encoding; b=zmdrz3plc+l0MO2Q2pcLBZu4TC4VIWMIdFrGzM2zOkQel915Lq02aC74FVcawvP7r I5Y2Ou7fmTWJROpr8dNHRzV1uEMp5CIqjnejQQLVryghyOd78l4mH3nWwPytYnjQDZ Rqevmptnnzo4wLmvTq7y1BBSrRFbEMdNRjrgcVvo7pRMSnLGdhi3lwnrG2tSZBwRBl MHIiyUPRFvdVF+myqF4affRn/9K0bgEYwVYPF8pT+nXIU6aOqiOG0CL+anR3OQIWWG Jf+NAkNOQ7WAJHdfKRG6CMbYRvPTlwy8K+1g5vyZX+lW4LIMWzaq6Hh3M+F4Js0Kut n7XJhEieqFKUjjze7sRv+dpvaw1iu7AICTqvcWXbbBsCj8Pd/FiAD2Hj6rQ7FmCByr NhrtVFdGHrS399j1rw1X2b87KXTX43ZVj9hL/7E9QIVyLS3NLUX6FNujDEWxKD3cxR Z7F9chnNaf8/oiZp6N/v7CAvOg7mtXrZnD7pUemt/tIJbboP6Rga+tY+Fle4ePFhAS NkWlXPSNOtuXoUCT90vl7zZz6s8YBmXcmhFDCNwCYVT6Hw7vIg+TcUANbAffM6rnEd F0DM7tjv9f9AjXk+U1XKz9W/c8ovBWutlFd9BxtJJFEkadGbXTgGkLIGI0+6PmRhsO R08uPGqd971Otu0DA+R5UWo4= Received: from 99.100.19.101 (99-100-19-101.lightspeed.frokca.sbcglobal.net [99.100.19.101]) by holgerdanske.com with ESMTPSA (TLS_AES_128_GCM_SHA256:TLSv1.3:Kx=any:Au=any:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Thu, 14 Oct 2021 12:45:20 -0700 Subject: Re: cannot receive mountpoint property on data/backup/home/foo/bar: permission denied To: questions@freebsd.org References: From: David Christensen Message-ID: Date: Thu, 14 Oct 2021 12:45:19 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 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 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4HVfyJ1grNz3D1Y X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=holgerdanske.com header.s=nov-20210719-112354 header.b=zmdrz3pl; dmarc=pass (policy=none) header.from=holgerdanske.com; spf=pass (mx1.freebsd.org: domain of dpchrist@holgerdanske.com designates 184.105.128.27 as permitted sender) smtp.mailfrom=dpchrist@holgerdanske.com X-Spamd-Result: default: False [0.01 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[holgerdanske.com:s=nov-20210719-112354]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[1.52.101.69:email,1.52.101.68:email]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_MEDIUM(-0.99)[-0.990]; NEURAL_SPAM_SHORT(1.00)[1.000]; DKIM_TRACE(0.00)[holgerdanske.com:+]; DMARC_POLICY_ALLOW(-0.50)[holgerdanske.com,none]; NEURAL_SPAM_LONG(1.00)[1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:184.104.0.0/15, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 10/13/21 6:12 PM, tech-lists wrote: > On Wed, Oct 13, 2021 at 04:37:17PM -0700, David Christensen wrote: > >> What is 'pv'? > > sysutils/pv = pipe view monitor. It gives a progress bar and speed of > the data through the pipe. The command to send was via interactive > term and I wanted to see it max out my local LAN :D it's not > something i'd put in a script. > >> The replication worked.  Note that the replica leaf directory 'bar' is >> not mounted, but its parents are; per the zfs receive -u option. > > Yes, that is the case here. > >> That failed, as it should; but not with the error message you are seeing >> (below). > >> Do you see the replica on the receiving system?  E.g.: >> >> # ssh remote.system zfs list -r -t all data/backup/home > > Yes, it's all there. Maybe zfs recv needs to be told mountpoint=noauto > or something but my google-fu doesn't find it for recent stable/13 or > stable/12 or OpenZFS. There's a couple of threads in the forum about it > but they're for freebsd 9.x (and so no OpenZFS) and it doesn't appear in > the (stable/13) handbook in this sort of context. And IIRC the forum > threads didn't have a "fix" for it. I don't know if a fix is even > required. But I don't know why mountpoint should even be set, as it's a > snapshot. Have you checked the 'mountpoint' properties on the source and on the receiver? 2021-10-14 12:34:25 toor@vf1 ~ # zfs get -r mountpoint vf1zpool1/home NAME PROPERTY VALUE SOURCE vf1zpool1/home mountpoint /vf1zpool1/home default vf1zpool1/home@20211012 mountpoint - - vf1zpool1/home@20211013 mountpoint - - vf1zpool1/home/foo mountpoint /vf1zpool1/home/foo default vf1zpool1/home/foo@20211012 mountpoint - - vf1zpool1/home/foo@20211013 mountpoint - - vf1zpool1/home/foo/bar mountpoint /vf1zpool1/home/foo/bar default vf1zpool1/home/foo/bar@20211012 mountpoint - - vf1zpool1/home/foo/bar@20211013 mountpoint - - 2021-10-14 12:35:21 toor@vf1 ~ # zfs get -r mountpoint vf1zpool2/backup NAME PROPERTY VALUE SOURCE vf1zpool2/backup mountpoint /vf1zpool2/backup default vf1zpool2/backup/home mountpoint /vf1zpool2/backup/home default vf1zpool2/backup/home/foo mountpoint /vf1zpool2/backup/home/foo default vf1zpool2/backup/home/foo/bar mountpoint /vf1zpool2/backup/home/foo/bar default vf1zpool2/backup/home/foo/bar@20211012 mountpoint - - vf1zpool2/backup/home/foo/bar@20211013 mountpoint - - Taking the idea one step further -- dump all of the properties to a file on the sender, do the same on the receiver, and then diff(1) the files. Same as above for the pool properties. Have you tried replicating from the receiver? Have you tried reproducing the issue with a 13.0-RELEASE sender and/or receiver? David