-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input/output error mounting encrypted filesystem after raw send/receive #714
Comments
The actual ZOL version I was testing with is zfs-0.8.0-rc4_5_g2de17298d |
|
We should keep an eye on ZOL openzfs/zfs#8852 |
Sending from 03X to ZOL provoked the issue. If I create a bz2 from the send stream, perhaps that will give something to investigate on the ZOL ticket. If the send stream is corrupted, then really it should be rejected rather than received OK but the fs fail to mount/ls. |
@aabc123 an example send stream that reproduces the issue would be tremendously helpful. |
@behlendorf Here is a snap which can be received but fails to mount on both ZOL and O3X. https://www.dropbox.com/s/no0ehylt59vtieh/ubuntu-pvm.snap.bz2?dl=0 It was created with -wR. I've tested just receiving with -u then load-key and mount. On O3X the mount fails with input/output error. On ZOL I get I/o error and invalid argument.
|
Sorry, just realised bzipping was pointless as its encrypted. |
@aabc123 would it be possible to get the original pool as well, or is it too large? Being able to compare the received blocks against the originals should help us find the discrepancy. |
That pool is too large. I can do a non-raw send (I've tried -ceL) and that seems to work fine and give you that snap shot? If that's no use then I should be able to create a new file-based pool, try and provoke the issue in that and generate a raw snap from that along with a copy of the file-based pool for you? |
Having the pool file itself would be very helpful. Doing a non-raw send will cause a few changes that might be hard to track. |
OK, I've got them created. 8gb File-based pool 'test': https://www.dropbox.com/s/ehb0g2jx8cqt427/test.zpool.bz2?dl=0 Both are ~1.3GB. Passphrase for test/vm testtest You shouldn't really need the snapshot file as importing the pool on to my ZOL-0.8.0-rc4 system and do a send there, the resultant file system is still not mountable due to the I/o and invalid argument errors.
|
@aabc123 Can you try this patch from ZoL? openzfs/zfs#8857 |
Closed fixed by 3699861 |
I've just started storing Parallels virtual machines on encrypted filesystems on a zpool and am trying to back them up to another zpool using raw send receive however more often than not, I'm unable to mount the received file system and get an input/output error.
I've managed to reproduce it and have put an example virtual machine at: https://www.dropbox.com/s/djpqjm4z9122sqi/ubuntu-pvm.tar.bz2?dl=0
The bz2 contains a pre-allocated 64GB disk but if you expand it on to a zpool with zfs then it'll only take ~1GB actual space as the disk is fairly blank.
To reproduce the errors, I've been using the following:
I've run the same thing on an Ubuntu 18 box with ZOL-0.8.0-rc4 (build from source) and can successfully mount the received filesystem. But if I send from the OS X box to ZOL, I could mount the file system but got errors trying to ls the contents.
The text was updated successfully, but these errors were encountered: