From nobody Wed Oct 13 23:37:17 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 AA1C317FFA6D for ; Wed, 13 Oct 2021 23:37:23 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (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 4HV88L0x1vz4T2D for ; Wed, 13 Oct 2021 23:37:22 +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=1634168238; bh=ngurIM5X0IVdZLsPlSPCrHDNGnqB5+fnbeqjgqI1YaE=; h=Received:Subject:To:References:From:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Content-Language: Content-Transfer-Encoding; b=t2BMkC6BWeU9Tc+x/2CU1J6Tz04ZI0pBXfwB+iSl/5eUlNPY8/2AaNMLQRg5Hto5I x24Q+Z0ns8/HcostgZUxgv27k2cc9eRlG6B0d5v9CB/nxh1gXArQJT2mZzZfzESQ1+ hVhQP0NYKuExyi9i4r6Mg3Ml7u45U0f7iIpwh8veSjxz7IHOqnxoGPxOs1k++z8KuL go2eGAigeDg+KScWOXL7TDiW/ljrCP8ed2rreLZiRbkhd0Sgtjbj4rG8l1Yvin2mh8 qIENEats6eChL0xjLq6ZQGlppW0/DCzMeO1W0W032ybSBYHUlR4QkbapJkbvyR7nGO XS8w+3wD//QiYHRrsFAUA01nXrXHh2pedPrmOJNAIsChlIhUbDM3ABSS+PIGtYIlWG e7lWHR7wERIXahtF2C3TaU7WSKUF8OuRZHad1QdsoQqINRAHvD1LXKQ/2+8znrS13s NpT3eL1mCjAJKAivc+hoLhOMNNM4IC7s3TJUQvapTe5Exk8eTry187CONnbcVjalA8 l+yISpbDqFx0aMG+9qtTlM9LmnD3JICZ21xN6Yp3Tm+OUkf1sn+vATJkpDI/vRBnnD oA7v/F0mWc7rwYfMEsOHgiGgdkD73itMSqX0LWJXC6x5dUa0cjhtGHlV/PdTPOvQlR 9vSJvrCLNCU44UvDI71DCJl8= 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 ; Wed, 13 Oct 2021 16:37:17 -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: Wed, 13 Oct 2021 16:37:17 -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: 7bit X-Rspamd-Queue-Id: 4HV88L0x1vz4T2D X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=holgerdanske.com header.s=nov-20210719-112354 header.b=t2BMkC6B; dmarc=pass (policy=none) header.from=holgerdanske.com; spf=pass (mx1.freebsd.org: domain of dpchrist@holgerdanske.com designates 2001:470:0:19b::b869:801b as permitted sender) smtp.mailfrom=dpchrist@holgerdanske.com X-Spamd-Result: default: False [-0.03 / 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:november.he.net]; 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.96)[-0.957]; DBL_PROHIBIT(0.00)[1.52.101.69:email,1.52.101.68:email]; DKIM_TRACE(0.00)[holgerdanske.com:+]; DMARC_POLICY_ALLOW(-0.50)[holgerdanske.com,none]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_SPAM_SHORT(0.92)[0.925]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 10/13/21 9:16 AM, tech-lists wrote: > Hi > > I've tried searching for an authorative answer on this, but answers seem > to vary between Oracle-ZFS, FreeBSD-ZFS and OpenZFS, and nothing really > recent (context is recent stable/13) > > Using zfs send -R data/home/foo/bar@20211013 | pv | ssh > remote.system zfs recv -dvu data/backup What is 'pv'? Testing on a FreeBSD 12.2-RELEASE VirtualBox VM: 2021-10-13 15:35:55 toor@vf1 ~ # freebsd-version ; uname -a 12.2-RELEASE-p9 FreeBSD vf1.tracy.holgerdanske.com 12.2-RELEASE-p7 FreeBSD 12.2-RELEASE-p7 GENERIC amd64 2021-10-13 15:59:20 toor@vf1 ~ # zpool list | egrep 'NAME|vf1zpool' NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT vf1zpool1 960M 2.36M 958M - - 15% 0% 1.00x ONLINE - vf1zpool2 960M 1.25M 959M - - 6% 0% 1.00x ONLINE - 2021-10-13 15:58:54 toor@vf1 ~ # zfs create vf1zpool1/home 2021-10-13 15:59:13 toor@vf1 ~ # zfs create vf1zpool1/home/foo 2021-10-13 15:59:17 toor@vf1 ~ # zfs create vf1zpool1/home/foo/bar 2021-10-13 16:00:15 toor@vf1 ~ # echo "hello, world!" > /vf1zpool1/home/foo/bar/hello.txt 2021-10-13 16:01:36 toor@vf1 ~ # zfs snapshot -r vf1zpool1@20211012 2021-10-13 16:05:13 toor@vf1 ~ # echo "goodbye, cruel, world!" > /vf1zpool1/home/foo/bar/goodbye.txt 2021-10-13 16:06:31 toor@vf1 ~ # zfs snapshot -r vf1zpool1@20211013 2021-10-13 16:16:38 toor@vf1 ~ # zfs send -R vf1zpool1/home/foo/bar@20211013 | zfs recv -dvu vf1zpool2/backupcannot receive: specified fs (vf1zpool2/backup) does not exist Create the destination filesystem: 2021-10-13 16:17:54 toor@vf1 ~ # zfs create vf1zpool2/backup Try again: 2021-10-13 16:18:31 toor@vf1 ~ # zfs send -R vf1zpool1/home/foo/bar@20211013 | zfs recv -dvu vf1zpool2/backup receiving full stream of vf1zpool1/home/foo/bar@20211012 into vf1zpool2/backup/home/foo/bar@20211012 received 48.5KB stream in 1 seconds (48.5KB/sec) receiving incremental stream of vf1zpool1/home/foo/bar@20211013 into vf1zpool2/backup/home/foo/bar@20211013 received 10.2KB stream in 1 seconds (10.2KB/sec) 2021-10-13 16:18:45 toor@vf1 ~ # zfs list -r -t all vf1zpool2 NAME USED AVAIL REFER MOUNTPOINT vf1zpool2 1.52M 830M 88K /vf1zpool2 vf1zpool2/backup 456K 830M 96K /vf1zpool2/backup vf1zpool2/backup/home 360K 830M 96K /vf1zpool2/backup/home vf1zpool2/backup/home/foo 264K 830M 96K /vf1zpool2/backup/home/foo vf1zpool2/backup/home/foo/bar 168K 830M 112K /vf1zpool2/backup/home/foo/bar vf1zpool2/backup/home/foo/bar@20211012 56K - 100K - vf1zpool2/backup/home/foo/bar@20211013 0 - 112K - 2021-10-13 16:19:03 toor@vf1 ~ # mount | grep vf1zpool | sort vf1zpool1 on /vf1zpool1 (zfs, local, nfsv4acls) vf1zpool1/home on /vf1zpool1/home (zfs, local, nfsv4acls) vf1zpool1/home/foo on /vf1zpool1/home/foo (zfs, local, nfsv4acls) vf1zpool1/home/foo/bar on /vf1zpool1/home/foo/bar (zfs, local, nfsv4acls) vf1zpool2 on /vf1zpool2 (zfs, local, nfsv4acls) vf1zpool2/backup on /vf1zpool2/backup (zfs, local, nfsv4acls) vf1zpool2/backup/home on /vf1zpool2/backup/home (zfs, local, nfsv4acls) vf1zpool2/backup/home/foo on /vf1zpool2/backup/home/foo (zfs, local, nfsv4acls) The replication worked. Note that the replica leaf directory 'bar' is not mounted, but its parents are; per the zfs receive -u option. If I try to replicate again: 2021-10-13 16:19:29 toor@vf1 ~ # zfs send -R vf1zpool1/home/foo/bar@20211013 | zfs recv -dvu vf1zpool2/backup cannot receive new filesystem stream: destination 'vf1zpool2/backup/home/foo/bar' exists must specify -F to overwrite it warning: cannot send 'vf1zpool1/home/foo/bar@20211012': signal received warning: cannot send 'vf1zpool1/home/foo/bar@20211013': Broken pipe That failed, as it should; but not with the error message you are seeing (below). > I can see it completes the > sending of the snapshot but I'll see this as it just finishes, at the > sending systems term: > > cannot receive mountpoint property on data/backup/home/foo/bar > > Is this just because the data/backup/home/foo/bar filesystem was mounted > on the sending system, and the snapshot inherited it? > In which case I guess it can be ignored? because I don't want it > mounted at the receiving end (it wasn't mounted at the receiving end) > > For the received snapshot, all I care about is to be able to mount it > should I need it. But I won't usually need it. > > thanks, Do you see the replica on the receiving system? E.g.: # ssh remote.system zfs list -r -t all data/backup/home David