-
Notifications
You must be signed in to change notification settings - Fork 20
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
No such pool available after windows update #414
Comments
So maybe a timing thing, after a reboot? Does the physicaldriveX that the pool is on show in that output? |
It's on 0, 1, 2 and 3. All showing up. |
And presumably if you wait a bit and try to import it goes ok? It is clearly reading the partition table, so it's not like the whole drive is locked. |
No, the pool just doesn't show up anymore, even if I try to import later. It's been a few days and a few power cycles since it disappeared too. |
Oh so |
I was on 2.2.3 but updating Windows to 24H2 broke something in the drivers, the commands weren't showing up, so I installed 2.2.6. When I did, the pool didn't show up. I didn't think much of it and just created a new pool. But every now and then the pool disappears again and I have to create a new one. |
Can you also show output from |
|
Updated to rc10 and created the pool again, everything was fine for several days and shutdowns until I had to reboot for an update just now and now the pool is gone again. |
why would an update write to an unrelated disk, that is most peculiar. |
Happened again, without windows prompting an update. I was downloading a steam game onto it and the download froze, I couldn't write to the disk it seems, I also tried using qBittorrent on it and it couldn't even create the torrent folder. I could read files from it though. I tried unmounting but got error -1. When I restarted the PC the pool was gone. |
OK so something else is going on then. Are we talking physical drives, vm attached files? If you create a pool, write something to it, export it, then import it - does it still work? |
They're physical, although very old (around 10-15 years old) drives. They never show any errors when I check with zpool status. If I create a pool, write something to it, and export it, I get
But the prompt never returns back to me, it got stuck for at least 4 minutes. |
OK so we need to address that first perhaps. Interestingly |
I don't know how to check the stack, but looking at the wiki, I think this might be what you're after. I ran this after trying to create the pool, which also did not finish. Running the command returned this:
And then the prompt never came back to me. |
I believe https://superuser.com/questions/462989/how-can-i-view-the-call-stack-of-a-running-process-thread can help here. Userland is pretty straight forward. |
Again when creating a new pool it hangs. There are two threads, these are their stacks
|
Your 2nd thread:
Is basically trying to grab So something has already got stuck before the create. Although it goes down to The first process I am not sure on, can't be sure it is ZFS from the stacktrace. It's even got two |
I followed the instruction on the StackOverflow link. I found zpool.exe in process explorer, then Properties - Threads - and there were two. I tried creating a pool, writing something to it and exporting it now. It only hanged on the exporting and there is a single thread. Here's the stack, I hope it's more useful.
|
That it is. We are stuck here
more precisely, which means it wants a WRITER lock, and is waiting for it, and if it is stuck there, something is holding a READER lock. Which most likely means an unbalanced pair of |
I tried to do the same using 2.2.6rc11 and the zpool export tank step caused a bluescreen. I don't think it wrote anything to MEMORY.DMP as it has a modified date a few months in the past. |
Yeah I think I am going to need a memory.dmp when that has happened - I have checked for leaks but it's not easy to try to guess. If it doesn't BSOD, you are supposed to be able to generate one: if you do BSOD but it doesn't write a MEMORY.DMP then ahh, I have no idea :) |
I've sent a link to access the dump via e-mail. |
Sadly, I can not see the other process and stacks, due to memory.dmp being smallest. Can you change it to at least Chatgpt gives instructions as:
|
I've added the new dump to the shared folder. Please note that a few minutes ago I disabled hybernation on my PC as the hyberfil.sys file was reaching 50GB. This had the effect of "zpool export tank" crashing more, so far every time I ran it the PC had a BSOD. Nevertheless the PC wrote a dump file successfully. |
OK this is different, a BSOD (as you mentioned), but let's look into it:
The panic is that |
System information
Windows 11 24H2
26100.2314
zfswin-2.2.6rc9
zfs-kmod-zfswin-2.2.6rc9
Describe the problem you're observing
Sometimes after booting the PC, the script I run that imports my pool returns "cannot import 'tank': no such pool available". This doesn't happen after every boot, only sometimes. The only pattern I've come to suspect is that it seems this happens when the PC needs to reboot for an update.
Describe how to reproduce the problem
Include any warning/errors/backtraces from the system logs
The command returns:
The text was updated successfully, but these errors were encountered: