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
zdb -ddddddd fails on newly created zpool #7986
Comments
|
Thank you! Would it be possible to mention this in the man page and improve the error message so the difference between |
Ah, sorry. Missed that. Regarding the error when using the pool instead of the dataset. Is it expected that it returns (to me) arbitrary looking data before dying with this error? I know zdb is just a debug tool, but it would be nice to catch this user error. |
Oh, and maybe an example with just the root dataset would be nice. I know it's documented, but I quickly skimmed over the examples and Example 3 looked like I was looking for, except I missed the trailing /. |
Hm. When I tried this while discussing it last night, I used zdb -vvvvvvv testpool 2 and got the same error. (Also on ZoL 0.7.11 from Debian stretch backports.) Many hours later:
(I too had never known that particular bit of esoterica involving the root dataset, but I also almost never store things there, so...) |
Perhaps Example 3 should be for the "root" dataset with a trailing / (slash);
And all the other examples renumbered. Further, it would be nicer if the error message returned made more sense for the actual issue. For example;
(Add me to learning something new about ZFS today...) |
@rincebrain if you are able to reproduce this on newly created pools could you please create a sample on a small file-vdev pool (like in my example) and upload it here? |
Sure, here you are. (Regardless of which file, both contain 4 sparse files of 2GB each that have about 11 MB of nonzero data between them. And if that doesn't work for some reason, you can find a .tgz here, since Github claims it won't let me upload a tgz. |
@rincebrain unless i am missing something obvious your reproducer (zip-compressed pool files) have no file with inum=2 so that error is expected:
|
Nice, I am going to assume I tried making a new file and deleted the old one. Feel free to close it and subject me to ribbing for trying to look at bugs on too little sleep; I'll probably go file a separate enhancement request complaining about the error being opaque. |
This issue has been automatically marked as "stale" because it has not had any activity for a while. It will be closed in 90 days if no further activity occurs. Thank you for your contributions. |
System information
Describe the problem you're observing
zdb -ddddddd
fails on newly created poolDescribe how to reproduce the problem
I'm also confused by the fact that fletcher4 is displayed, even if I manually select sha512 as hash before creating the file.
The text was updated successfully, but these errors were encountered: