Skip to content

zpool import -T hangs #12758

Answered by rincebrain
Wondertan asked this question in Q&A
Discussion options

You must be logged in to vote

Using -T/-X/... by default walks every single referenced metadata+data block before importing. This is rather time consuming, and I don't think it uses anything like the sequential scrub logic to reorder things, so it's going to be similar to the runtime of the pre-sequential scrub code.

You can adjust this behavior with the tunables spa_load_verify_data (which can turn off reading all data blocks) and spa_load_verify_metadata (which will turn off reading all metadata or data first) - of course, you can run into inconsistent things on-disk if you don't verify them before importing, so it's a tradeoff.

I would pretty strongly recommend using -o readonly=on when playing with -T/-F/-X, thoug…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Wondertan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants