Cannot delete files or folders from CSV

Elvis Guštin 6 Reputation points
2021-11-30T07:04:33.893+00:00

Hello,

I have a Hyper-V cluster upgraded to Server 2022 servers. Now I am having a problem, that I am not able to delete anything from one CSV volume. The other volumes are working normally.
When I try to delete file or folder, I receive an error 0x80070057 - An unexpected error is keeping you from deleting the...
In the same time, I can rename or copy the same file or folder. Also all my VMs are still running on the same CSV without errors.

What can I do? I already tried to change security settings on file, delete form PowerShell and Total commander,... Nothing.

Thank you,

Elvis

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,771 questions
Windows Server Clustering
Windows Server Clustering
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Clustering: The grouping of multiple servers in a way that allows them to appear to be a single unit to client computers on a network. Clustering is a means of increasing network capacity, providing live backup in case one of the servers fails, and improving data security.
1,017 questions
{count} vote

6 answers

Sort by: Most helpful
  1. Mikhail Firsov 1,881 Reputation points
    2021-12-01T09:48:34.467+00:00

    Hello,

    "I already tried to change security settings on file" - have you already tried changing the files' owner? You can also enable audit on those files - maybe information in the Event Viewer's event id 4656 and/or 4663 will shed some light on the problem.
    More info on configuring auding here.

    Regards,
    Michael

    0 comments No comments

  2. Elvis Guštin 6 Reputation points
    2021-12-02T06:45:51.287+00:00

    Yes, I changed also owner. I change the owner to admin account with I am trying to delete a file and giv to everyone full permissions. Still not able to delete it.

    Elvis

    0 comments No comments

  3. Limitless Technology 39,741 Reputation points
    2021-12-17T17:05:47.193+00:00

    Hi @Elvis Guštin

    If the file or folder name in CSV volume includes a reserved name you may not be able to delete the volume. To resolve this issue, first rename the volume or files and try deleting it.

    You can try logging into each host which owns the particular CSV volume and deleted the files that are shared and then try deleting the CSV volume.

    ----
    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments

  4. Net Runner 615 Reputation points
    2024-01-31T20:40:57.48+00:00

    Hi,

    That is a well-known glitch. Unfortunately, there is no single fix for this problem; different measures help in different environments. You may try the following:

    • Remove the volume from Cluster Shared Storage (back to available storage) and re-add it back.
    • Make sure cluster core resources and cluster shared volume are on the same node that you are using to delete the files. You may try to migrate both to different cluster nodes and see if file operations work there.
    • Sometimes, the 0x80070057 error is caused by a background process currently running on CSV, so try waiting for some time to resolve the issue or, if applicable, restart the cluster.

    I hope one of the recommendations helps.

    0 comments No comments

  5. Carlos Esperança 0 Reputation points
    2024-09-16T10:34:57.71+00:00

    Hi,

    Someone find the solution for this problem? I have a cluster with three nodes that were in Windows Server 2019 Datacenter and when upgraded to Server 2022 Datacenter now I cannot delete any file from C:\ClusterStorage volumes, i can rename, copy and even my virtual machines are working but cannot delete.

    Any solution?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.