zpool import -T hangs #12758
-
Hello everyone. I have two FSs mounted on:
I had to migrate To recover deleted files. I looked into Pls note:
Any ideas on why it may hang and maybe any tips on resolving the issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 I would pretty strongly recommend using -o readonly=on when playing with -T/-F/-X, though if you've already done it without doing that, you may have already done some damage...well, we'll see. As the man page says, "WARNING: This option can be extremely hazardous to the health of your pool and should only be used as a last resort.", so be aware, it can go awry. You said, though that there's "no symptoms of life" - does that mean no output (that's expected), or no IO on the pool at all (not so much). Is there anything in |
Beta Was this translation helpful? Give feedback.
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) andspa_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…