Skip to content
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

can write but not read on local mapped drive #365

Open
hspantera opened this issue Mar 23, 2024 · 122 comments
Open

can write but not read on local mapped drive #365

hspantera opened this issue Mar 23, 2024 · 122 comments

Comments

@hspantera
Copy link

Hope someone can help me. configured pool with assing letter on windows 11. can acess from the local pc to the drive letter and can read,write and make everything. but when i share the drive letter to can access from another pc on the same network i can acess the share see whats inside, write to but i cant read nothing froom there. i have some movies that i can see on my netwok share but when i try to open vlc says the file dont exist and cant reproduce. but i can write to that share. i give all permissionson windows pc. do i have to give any permissions on openzfs to acess? hope someone can help.

System information

Type Version/Name
Distribution Name
Distribution Version
Kernel Version
Architecture
OpenZFS Version

Describe the problem you're observing

Describe how to reproduce the problem

Include any warning/errors/backtraces from the system logs

@lundman
Copy link

lundman commented Mar 23, 2024

OK, so everything works as expected on local machine.
Then you share over Samba
A network client accessing it, can read, but not write ?

@hspantera
Copy link
Author

Yes . On local machine 100%. Local share can write but not read.. strange . I can see the files . For example I see all my Mkv movies but when I open gives me an error. Don’t play.

@hspantera
Copy link
Author

Sorry. On network client that this happens. Can’t read but can write.

@lundman
Copy link

lundman commented Mar 23, 2024

Yeah, I'll dig into it tomorrow.
If you are bored, run "FileSpy" as Administrator http://www.zezula.net/en/tools/filespy.html and change it to monitor your ZFS drive, then make the client write problem happen, could be it will give hints.

@hspantera
Copy link
Author

No.. no problem in write. Only read.
IMG_6747

this is my local zigs drive.

IMG_6748

This is my network share on another windows 11 pc on same network

IMG_6749
IMG_6750

I can see all files and folders . Can write to share but can’t read. If I try to read from voc it show me this error.

IMG_6751

very strange. Because I can access.. see what’s in there.. write to it. But can’t read files.

@lundman
Copy link

lundman commented Mar 23, 2024

error when dragging to desktop or somewhere to copy?

@hspantera
Copy link
Author

Yes.. won’t let me read too

@lundman
Copy link

lundman commented Mar 23, 2024

ok thanks. I'll check what FileSpy says tomorrow

@hspantera
Copy link
Author

FileSpy info.zip

here is filespy when i try to acess video file on client share

@lundman
Copy link

lundman commented Mar 23, 2024

Hmm interesting - it's certainly trying a few times, and something makes it unhappy.

@hspantera
Copy link
Author

very strange. but it happens on both windows clients with windows 11 pro workstation installed. same error on both.

@lundman
Copy link

lundman commented Mar 23, 2024

Refuse a lock, and
the open-by-id seems to fail.
Could be either of those two, or of course, something completely different

@hspantera
Copy link
Author

hspantera commented Mar 23, 2024

i have 2 windows clients on same network and they both do exactly the same thing. can see whats inside, can write to the share but cant read or do nothing with existing files.

@hspantera
Copy link
Author

Another strange thing that happens

IMG_6752

open a folder

IMG_6753

then select mkv file

IMG_6754

give me an error on vlc can’t read

IMG_6755

and if I open again same folder it shows empty. No mkv file. But I go to the original pc and open folder and it’s there. Only on client don’t show. It does this with all files I try to open on client share. Open file. Gives error. Open folder again and it’s empty. But the file still existed on original pc.

@hspantera
Copy link
Author

But after a while I open the folder and it shows the file again. But if I try to play gives error and desapears again.

@hspantera
Copy link
Author

IMG_6757

this is my zpool.

@lundman
Copy link

lundman commented Mar 23, 2024

yes it is just that it uses something unexpected to verify the file is there, and ZFS replies incorrectly, so it removes it. Small files, like .nfo/.sfv also fails to read? In case it is a filesize thing

@hspantera
Copy link
Author

It opens a small winrar file of file spy for example. But .srt file don’t show on client.
I copy 5 srt files to the original zpool folder and on client don’t show the files.

@hspantera
Copy link
Author

.txt file don’t show too.

@lundman
Copy link

lundman commented Mar 23, 2024

OK, not a filesize thing. I didn't it was, but worth ruling out.

@hspantera
Copy link
Author

Hi. Have a question not related with this problem. I extended my raidz2 with one new hard drive. Has you can see in picture is resizing. It says it will take 4 days. My question is:
Can I export the pool and change all drives to new system and import the pool and continue to resizing from where it lefted when I export it? Thanks

IMG_6765

@lundman
Copy link

lundman commented Mar 24, 2024

ZFS it supposed to let you do that, and it will continue to resilver. Haven't tried it but the core is the same.

@hspantera
Copy link
Author

Ok. I will do it.. after I import in new system I have to execute any command? Or it starts resizing automatically?

@lundman
Copy link

lundman commented Mar 24, 2024

Should just start, afaik

@hspantera
Copy link
Author

Yes.. worked perfectly.. started resizing automatically. Thanks. What about the bug of share? Did you see anything? Thanks.

@lundman
Copy link

lundman commented Mar 25, 2024

OK, so smb works here, but one side is Win10 - so it could be that Win11 has changed something. But in the FileSpy it clearly tries FileFsObjectIdInformation multiple times, so I have implemented that - perhaps it will help.

Can you try:

OpenZFSOnWindows-debug-2.2.3rc2-2-geb5def3b01.exe

from releases.

@hspantera
Copy link
Author

Installed and still has same problem..

@lundman
Copy link

lundman commented Mar 25, 2024

Rats - can you do a new FileSpy - so we can see how it behaves now?

@hspantera
Copy link
Author

FileSpylog.zip

here t is.

@lundman
Copy link

lundman commented Mar 25, 2024

Thanks. Looks pretty good, does retry a bunch of times, which sort of suggests it's not happy about something, even if we now have implemented one of the calls.
IOCTL_MOUNTDEV_QUERY_DEVICE_NAME still fail, but I think it is supposed to.
I will have to set up a Win11 client as well, and give it a whirl myself.

@hspantera
Copy link
Author

It’s very strange.. it should work. But always same error trying to opening video files.. or some file.. it says “can’t open location file” but I can have access to files.. very strange..

@lundman
Copy link

lundman commented Apr 12, 2024

So you can read/write/copy, but not play video?

@hspantera
Copy link
Author

More strange is that I open shared zigs folder on other windows 11 pro workstation and I can copy from the shared folder to the local pc that I’m accessing.. just don’t read . But I can copy from shares folder??? How strange is that???

@hspantera
Copy link
Author

Yes

@lundman
Copy link

lundman commented Apr 12, 2024

oh, you said you can't read, so I've been testing with dragging files from smb to desktop. That reads the files. I can try playing with VLC as well then, make sure they start.

@hspantera
Copy link
Author

I can drag and drop too.. but opening with vlc gives error.. or any player ..

@hspantera
Copy link
Author

But another problem.. I have a folder with 10 mkt files.. I drag and drop one.. everything works fine.. but if I go to the other mkv file in that folder gives me an error of “the item it’s not located in this folder anymore” and I can’t xopy any more files from that folder. But if I go to another folder it lets me always copy one file and if I try the second one it always give me that error. Do this in every folders..

@hspantera
Copy link
Author

Hello.. still no fix for mapped openzfs file not reading files?

@lundman
Copy link

lundman commented May 15, 2024

I have not yet found a way to replicate this locally - it just works (unless I misunderstand what the problem is). Trying to think of other ways this can be added. Do you have space for VMs?

@hspantera
Copy link
Author

Did you test on windows 11 pro workstation? Or just windows 11 pro?

@lundman
Copy link

lundman commented May 15, 2024

My VM is https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/

Point me to a version that you know fails?

@hspantera
Copy link
Author

@sskras
Copy link

sskras commented May 16, 2024

It's not a VM neither an .iso file. The nearest thing I found was the .iso:
https://www.minitool.com/news/download-windows-11-pro-for-workstations.html#download-windows-11-pro-for-workstations-42952

@hspantera
Copy link
Author

Im not using vm. Using the version installed on pc. Windows 11 pro workstation.

@hspantera
Copy link
Author

Maybe that’s the problem. You can’t replicate windows 11 pro workstation on VM.

@sskras
Copy link

sskras commented May 16, 2024

@hspantera commented 35 minutes ago:

Maybe that’s the problem. You can’t replicate windows 11 pro workstation on VM.

Have you tried to replicate that in a VM, and the issue disappeared? That would help testing.

@hspantera
Copy link
Author

Hi.. I have a problem.. I have this pool
IMG_7174
And it’s not phisycal drive 1 in it.
I want to make another zpool but it say that physical disk1 is already a pool enter. But it isn’t. I only have one pool and physical disk 1 it’s not in that pool. How I remove physical disc1 from pool member? Because it don’t belong to any pool.
IMG_7175
IMG_7176
Can you help me? Because when I try to make a new pool it doesn’t show option to select physical disc 1. And physical disc one don’t belong to the already existing pool. So physical disc one said it’s a pool member but it’s not from any pool. Can I remove it? So I can add it to new pool?

@sskras
Copy link

sskras commented May 18, 2024

@hspantera commented 4 hours ago:

Hi.. I have a problem.. I have this pool [...] Can you help me?

IMO this is a separate issue.

I suggest to copy source of your message (by clicking Edit and then copying all the editable text) and create a new topic in the Discussions tab using the same text.

This issue is about file I/O failures on the mapped drive.

@lundman
Copy link

lundman commented May 18, 2024

Perhaps zpool labelclear on physicaldrive1 is needed? Or create it without the gui.

@hspantera
Copy link
Author

Sorry. But I’m kind of new here and it was just a question. Solved the problem. Didn’t started my pool and all drives where free. So I don’t use the ones that already where assigned to my already created pool and it worked. And I have one more question. You are being so helpful. I’m trying to update napp-it but on newer version I get this error. Can’t do anything. Always give me this error everytime . Think you can help me?
IMG_7182
It show me all options but always that error. And I read somewhere that you where realeasing a web gui . It’s already out?

@lundman
Copy link

lundman commented May 18, 2024

For nappit we might need to invite napp-it's @gea but it is concerning the reddit user is deleted, and the windows.pdf is now 404. Wonder what happened there.

@hspantera
Copy link
Author

But old version works ok. Don’t exist other web gui based?

@hspantera
Copy link
Author

Sorry to bother again. To update to the rc4 version I have to rename this file to what?

IMG_7185

rename …\openzfs.sys to for example …\teste.sys?

@hspantera
Copy link
Author

Can’t just uninstall rc3 and install rc4?

@hspantera
Copy link
Author

hspantera commented Jun 15, 2024

Hi. One question. I have a folder on my zfs pool that I click and it won’t open. And if I try to delete it won’t delete. Any chance of tell me what I can do? It refuses to open and to delete. Only that folder.. I have 3000 folders. Only that one don’t open. If it’s error of the pool what I can do to solve this? Thanks.

@lundman
Copy link

lundman commented Jun 15, 2024

Renaming? Best would be to look in cbuf after it failed, but that is difficult if you aren't setup to develop.

@hspantera
Copy link
Author

It lets me rename the file. But still don’t let me delete or open folder. Is my pool in danger?

@lundman
Copy link

lundman commented Jun 15, 2024

I wouldn't have thought so, I thought maybe it had a name it couldn't translate. I assume you have rebooted to see if that helps.

@hspantera
Copy link
Author

Already rebooted. It’s the same. There is some option to force delete?

@hspantera
Copy link
Author

hspantera commented Jun 16, 2024

I think I’m going to have to find another solution for my media. Using openzfs on windows since the release of stable version and here is my thoughts. Pros- very fast writes. Very fast reads. Cons- with the time it’s going to corrupt a file here Another there Until the pool it’s compromised. Still very buggy on the options like shares and how it delete files. It’s a great filesystem but for windows it’s yet very unreliable. I think it have potential to get the best filesystem in the future but for now it’s very dangerous having a 70terabite storage on openzfs. In any moment it will corrupt on file or a folder and you can’t do nothing about that other than destroy pool and create a new one. Other issue for normal users like me it’s the commands to execute openzfs. Napp-it simplifies a little bit but still not a filesystem that it’s straight forward. Thanks for all support and I will looking for new releases and hope one day it becomes native like NTFS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants