I have a 2 node Windows 2022 Server with a cluster volume on Storage Spaces, formated with ReFS.
When I try to delete a file, I get a wierd error messages and the file is not deleted.
Using powershell:
PS C:\Users\administrator.SALESMAN> cd C:\ClusterStorage\Volume1\
PS C:\ClusterStorage\Volume1> dir 1.txt
Directory: C:\ClusterStorage\Volume1
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 26-4-2023 10:32 4194816 1.txt
PS C:\ClusterStorage\Volume1> remove-item 1.txt
remove-item : Cannot remove item C:\ClusterStorage\Volume1\1.txt: The parameter is incorrect.
At line:1 char:1
+ remove-item 1.txt
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\ClusterStorage\Volume1\1.txt:FileInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
PS C:\ClusterStorage\Volume1> remove-item 1.txt -Force
remove-item : Cannot remove item C:\ClusterStorage\Volume1\1.txt: The parameter is incorrect.
At line:1 char:1
+ remove-item 1.txt -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\ClusterStorage\Volume1\1.txt:FileInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
PS C:\ClusterStorage\Volume1>
Since this is a ReFS volume, the integrity for the volume should always be correct and running chkdsk is not possible.
What does the error message 'The paramter is incorrect' mean and how can I delete the file.
I get the same error message for any file I try to delete on the volume.