-
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
[2.2.6-rc1 bug] Existing datasets "Wrong Parameter" and "Permission Denied" error #397
Comments
Also unmount failed saying "tank is busy" When i shutdown my pc, i got a BSOD saying |
OK let's sum up, you have a
|
I got some more info about the BSOD i got.
If i look at the error code documentation, we see our param1 is 0x4, which means that we enumerated a PDO which was previously deleted using |
Unfortunately I cannot create a new pool to test, as i dont have any spare drive. But i can show you the mountvol output: mountvol: (Z:\ is the zpool) \\?\Volume{b2ebfafb-4cef-47ea-a357-c5ec53d88fcf}\
E:\
\\?\Volume{30c96a1e-1837-4960-b213-b0dd68e8def3}\
C:\
\\?\Volume{0bbb1c3d-1502-4a81-a103-2c7235749d5f}\
*** NO MOUNT POINTS ***
\\?\Volume{7fa68025-d442-43c7-9600-c502e106723c}\
*** NO MOUNT POINTS ***
\\?\Volume{ff3047ab-8539-44bd-8256-69dc4192e079}\
*** NO MOUNT POINTS ***
\\?\Volume{190625e6-6c32-11ef-8dda-ec086b081ef1}\
G:\
\\?\Volume{9b1c0123-30c0-11ef-8d81-ec086b081ef1}\
Z:\
\\?\Volume{9b1c056b-30c0-11ef-8d81-ec086b081ef1}\
*** CANNOT BE PROVISIONED UNTIL A VOLUME MOUNT POINT HAS BEEN CREATED *** So the Z:\dataset mountpoint is missing and it shows an error instead
PS Z:\> dir
Directory: Z:\
Mode LastWriteTime Length Name
---- ------------- ------ ----
l---- 23.06.2024 00:45 dataset -> Volume{1c14792a-a278-3dbe-a5ab-9e78981503d2}
d---- 23.06.2024 02:42 folder
l---- 22.06.2024 22:58 userfiles -> Volume{5447f2a6-1f62-36a3-9dad-c64a15afa84e} The Z:\> get-wmiobject Win32_Volume | ft @{Label = 'Mount'; Expression = {$_.Name -replace '^\\.+', ''}}, Capacity, FileSystem, Label, DeviceID
Mount Capacity FileSystem Label DeviceID
----- -------- ---------- ----- --------
E:\ 3790935683072 NTFS 4TB \\?\Volume{b2ebfafb-4cef-47ea-a357-c5ec53d88fcf}\
C:\ 499303575552 NTFS \\?\Volume{30c96a1e-1837-4960-b213-b0dd68e8def3}\
628092928 NTFS \\?\Volume{0bbb1c3d-1502-4a81-a103-2c7235749d5f}\
536854528 FAT32 \\?\Volume{7fa68025-d442-43c7-9600-c502e106723c}\
153092096 FAT32 \\?\Volume{ff3047ab-8539-44bd-8256-69dc4192e079}\
G:\ 16106127360 FAT32 Google Drive \\?\Volume{190625e6-6c32-11ef-8dda-ec086b081ef1}\
Z:\ \\?\Volume{9b1c0123-30c0-11ef-8d81-ec086b081ef1}\
\\?\Volume{9b1c056b-30c0-11ef-8d81-ec086b081ef1}\ |
Creating a testpool without physical disks
see also https://github.com/openzfsonwindows/openzfs/discussions |
Yeah, so you can just create a VHDX disk, even just a 1g, dynamic, will get you a PHYSICALDISKx to create a pool on. This is the Windows way. But you can also make a sparse file:
but honestly, just make a vhdx. But, the PNP at unload I have come across - so I can dig into here. |
The vhdx method (inherited from Hyper-V) is very flexible and very fast. It is a good idea to place all .vhdx files in the same folder ex c:\vhdx as you need to find and provide them as disks via a Powershell command after a reboot (can be a cmd file/planned task together with a pool import) If you SMB share the folder, you can even provide a .vhdx as a disk over LAN. I have added this as a ZFS cluster method in my web-gui for a network mirror or Raid-Z even for Windows 11. With Windows Server methods like SMB direct/RDMA and nics > 10G, such a disk or SMB share over LAN is nearly as fast as a local disk even when using NVMe. if ZFSonWindows becomes a little more stable I would say it has the power to be the most attractive ZFS plattform especially due SMB (direct) and ACL handling that is a pain with Linux and SAMBA and not available at all or not as fast. |
@lundman I have created a fresh pool and dataset and it works fine, no errors. Freshly created pool mounts fine: > mountvol
\\?\Volume{80a3a563-6dcb-11ef-8ddc-ec086b081ef1}\
D:\
\\?\Volume{80a3a569-6dcb-11ef-8ddc-ec086b081ef1}\
D:\dataset\ Migrated pool fails to mount dataset: > mountvol
\\?\Volume{9b1c0123-30c0-11ef-8d81-ec086b081ef1}\
Z:\
\\?\Volume{9b1c056b-30c0-11ef-8d81-ec086b081ef1}\
*** CANNOT BE PROVISIONED UNTIL A VOLUME MOUNT POINT HAS BEEN CREATED ***
|
Oh that is interesting. The main difference there is probably the property |
OK that seems to confirm a problem:
OK, I'll need some time to debug this |
OK so I straight up ignored SecurityDecriptor passed along with mkdir, and didn't merge with parent for when creating files. Please try rc4 and see if it has improved. |
Installing rc4:While installing rc4, i got a BSOD saying I retried installing it again and it was successfull. Testing mirgated pool on rc4:It has improved a little bit on rc4:
But thats about it. The other errors have not improved:
> mountvol
\\?\Volume{9b1c0123-30c0-11ef-8d81-ec086b081ef1}\
Z:\
\\?\Volume{9b1c056b-30c0-11ef-8d81-ec086b081ef1}\
*** CANNOT BE PROVISIONED UNTIL A VOLUME MOUNT POINT HAS BEEN CREATED *** Setting driveletter again
I had set the driveletter to
I tried setting the driveletter again and got this weird behaivior:
Now my datasets are completely missing in file explorer |
OK interesting.
Surprising - as if the property isnt defined in the code. I will check that. Could you reboot, and "import -N tank" to stop it from mounting, then mount one at a time, starting with
|
@lundman I dont know how to save cbuf for a running zfs driver, as i am new to WinDbg. How do i attach to a running zfs driver? So, i rebooted and I executed:
No error, the commands where successful.
I then executed Here is the bsod info: This is the cbuf for the bsod after the |
Oh right, to save cbuf on running system: https://openzfsonosx.org/wiki/Windows_cbuf but hold on for next release, has more mount/unmount fixes. |
I added a tunable to ignore on disk SecurityDescriptor which may help this issue |
So I downloaded rc7 and set the I have two datasets named "
I still get the recycle bin error Here is the cbuf: Also, Thanks for your work so far! |
I have existing datasets, created in rc6, and i upgraded to 2.2.6-rc1 and cannot access them anymore.
Double clicking on a dataset folder gives permission error (that cannot be fixed by claiming permissions):
Translated:
Trying to
cd
into dataset gives "Invalid parameter" error:Using powershell,
cd
works but it shows the error afterdir
:When using Filespy on the Explorer double click, there are multiple STATUS_INVALID_PARAMETER errors:
When using Filespy on
cd
, it seems to fail at the first STATUS_REPASE:Also, zfs mount does only show one of my two datasets. I have a dataset named "dataset" and one named "userfiles". The latter does not even appear, and the other does not show the drive letter:
zpool import tank output:
The text was updated successfully, but these errors were encountered: