Re: cannot receive mountpoint property on data/backup/home/foo/bar: permission denied

From: David Christensen <dpchrist_at_holgerdanske.com>
Date: Mon, 18 Oct 2021 23:18:03 UTC
On 10/18/21 10:14 AM, tech-lists wrote:
> On Thu, Oct 14, 2021 at 12:45:19PM -0700, David Christensen wrote:
> 
>> Have you checked the 'mountpoint' properties on the source and on the
>> receiver?
> 
> Yes. On both, mountpoint is "-" (without the quotes)
>
>> 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.
> 
> done - there are differences because the paths are different. I used
> 
> % zfs get -r all snapshotname


You want to look at the filesystem mountpoint property, not the snapshot 
mountpoint property.  See the example I posted on 10/14/21 12:45 PM,  If 
the output is too noisy, use the zfs list -t filesystem option.


As for path differences, use Perl, etc., to neutralize the expected -- 
e.g. data/home on the source and data/backup/home on the destination:

# zfs get -r all data | perl -pe 's/data\/home/FOO/' > src.out

# ssh remote.system zfs get -r all data  | perl -pe
's/data\/backup\/home/FOO/' > dst.out


Use use diff --ignore-all-blanks to ignore whitespace changes.


Look at the output for more expected changes and/or things you do not 
care about.  Keep adding stages until all expected changes are 
eliminated.  Either you will end up with nothing or with unexpected 
changes -- which might the cause of the warning.


>> Same as above for the pool properties.
>>
>> Have you tried replicating from the receiver?
> 
> not been able to do these two yet due to time constraints
> 
>> Have you tried reproducing the issue with a 13.0-RELEASE sender and/or
>> receiver?
> 
> not with 13.0-RELEASE. Both systems in this context are recent
> stable/13.
> 
> It seems, from what I can gather so far, it's a harmless notification 
> [1]. I'm just checking though. I don't actually *want* it mounted, at 
> least not right
> now.
> 
> [1] i know i don't know enough about zfs (OpenZFS) to be certain


As this is for backups, I would have a strong urge to identify and 
eliminate the cause(s) of any and all warnings.


David