-
Notifications
You must be signed in to change notification settings - Fork 16
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
rc2: created zpool stuck in limbo after creation and part identifiers changed #220
Comments
It seems to have worked "ok" using |
I'm Maybe I missed it but is there a way to have the pool auto-mounted? |
Hello, yes sorry there is no auto pool import just yet, i think someone on wiki mentioned you can do a windows "after-boot" hook to run it, I've not yet tried it. https://openzfsonosx.org/wiki/Windows_import If you set driveletter=Z then I would have expected that to work, so maybe we need to check that for a bug. Can you show us |
I've actually changed it to This is what I had gotten before I updated it to
|
Additionally, I created a scheduled task, set to trigger "On startup", run as "SYSTEM", to run a batch script that just imports the pool. By time I login, I see it mounted and available. |
Someone else had reported driveletter issue too: #135 |
This issue is solved, actually. Below a Task Scheduler I use plus my very commented .cmd file you can modify I started to write that insanity initially with Powershell, but I quickly found out that I prefer .bat files |
Respectfully, and I do appreciate it, but that doesn't seem "solved" to me? Also, I booted Windows with an external hard drive plugged in, the external drive got Let me know, but I feel like I should rename this issue, open a newly titled one, or close in favor of #135, which I now realize you opened @inoperable ... |
Ah did you expect it to be able to kick an existing (D:) off, and have ZFS take its place? I don't know if you can do that. |
Well I've rebooted a dozen or more times without the HDD attached and the ZFS pool still mounts as |
OK I'll try to replicate here as well, see if I can get it to fail too. |
This is with the ZFS for Windows RC2.
I shrank my C: drive, added a new partition, and did not reboot.
I was able to create a pool with
zpool create zfsin Harddisk0Partition8
(though I did hit this: openzfsonwindows/ZFSin#349, but proceeded as the OP there indicates that the pool does still work regardless of the error output).However, when I rebooted,
zpool list
returned no results. Upon looking atdiskpart
, it seems that Windows decided to rename the partitions, so the partition I created the zpool on is now namedHarddisk0Partition4
. (it is indeed the 4th partition)However, if I try to again create the pool with the new partition identifier, it's revealed that somewhere "ZFS for Windows" knows that pool once existed:
Is it possible that somewhere ZFS is (probably correctly) normalizing that identifier to something more concrete, but somehow
zfs list
is using the original, maybe unstable identifier?I haven't tried
-f
yet, but maybe I will. I feel like this hints at some sort of normalization/book-keeping bug, possibly? Clearly some parts of ZFS know that "zfsin" existed? Or is "ZFS for Windows" completely unaware, and it's just sanity checking the RAW disk and seeing that it has metadata indicating it's part of a pool?Even if it's the latter, it still feels like that partition identifier should be rejected in favor of the partition GUID, or it should internally normalize it to the partition GUID and use it going forward.
(I don't think this repo has Discussions enabled, but I plan to experiment around with this new, non-critical pool from both Windows and Linux (NixOS). I will try to find somewhere appropriate to share any results positive or negative.)
The text was updated successfully, but these errors were encountered: