openzfs / zfs

OpenZFS on Linux and FreeBSD
https://openzfs.github.io/openzfs-docs
Other
10.7k stars 1.76k forks source link

zfs send of encrypted filesystem #15924

Open paulgunther opened 9 months ago

paulgunther commented 9 months ago

System information

Type Version/Name
Distribution Name Ubuntu
Distribution Version 22.04.3 LTS
Kernel Version 5.15.0-94-generic
Architecture x86
OpenZFS Version zfs-2.1.5-1ubuntu6~22.04.2

Describe the problem you're observing

When sending encrypted filesystem with zfs send, the system just runs, but doesn't put the backups on the destination system.

Describe how to reproduce the problem

zfs send of encrypted snapshots

Include any warning/errors/backtraces from the system logs

I can't find anything relevant in logs

rincebrain commented 9 months ago

Since "zfs send of encrypted snapshots" does, in fact, sometimes work ,we're going to need more information than that.

Could you share some information about the sender and receiver, what tool(s) you're using to do the send, if any, and what error(s) the receiver has logged when you try?

Are you possibly surprised that, if you use zfs send -w, the encrypted datasets are not mounted on the receiver, because, well, they're encrypted, you'd need to unlock them to do that?

paulgunther commented 9 months ago

I wasn't surprised about the encryption, they just weren't there on the target. After another update and reboot on both host and target (which I thought I had already done, but clearly something was out of rev), sanoid ran successfully, so I didn't have to dig into the guts of zfs send to get you that info. Unfortunately I didn't take great notes on what the updates did, so I don't know exactly what changed, but clearly something was out of sorts and that solved it. Sorry to waste your time, thanks for the suggestions.