VLSR - Delete file Status File [datastore_name] null was not found
search cancel

VLSR - Delete file Status File [datastore_name] null was not found

book

Article ID: 375497

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

'Delete File' task, triggered by vSphere Replication, repeatedly appears in the vCenter Server task list

Environment

HMS 8.8.0.16757 build-22780241

Cause

  • In an SDRS-enabled environment, SDRS fails to correctly specify the source and target datastores.

  • When the virtual machine relocation process was initiated, the task failed because the virtual machine already existed at the target datastore path.

    DEBUG com.vmware.hms.sdrs.ReplicaRelocationWorkflowHandler [hms-pcm-updatehandler-thread-4] (..hms.sdrs.ReplicaRelocationWorkflowHandler) [operationID=#########-####-####-####-############-HMSINT-####] | Scheduling replica files relocation for group 'GID-#########-####-####-####-############'

    ERROR com.vmware.hms.sdrs.ReplicaRelocationWorkflowHandler [hms-main-thread-10799] (..hms.sdrs.ReplicaRelocationWorkflowHandler$1) [operationID=xxx-x-xxx-xxxx-xx-xx-HMS-xxxxxxx,sessionID=xxxxx, task=HTID-#########-####-####-####-############] | Error occurred when scheduling replica VM 'HMSVM-#########-####-####-####-############' relocation task. Retrying...
    com.vmware.vim.binding.hbr.replica.fault.HbrRuntimeFault: Virtual Machine exists at the target datastore path

  • Following the relocation attempt, a cleanup action is executed, even if the relocation process fails.

  • SDRS incorrectly assigns 'null' to the source folder field, and HMS performs a no null check.

  • As a result, attempts are made to delete the '[source datastore] null' folder, leading to a consistent error in vCenter.

 

 

 

 

Resolution

  1. Temporarily disable SDRS.
  2. Wait until the SDRS and HMS workflows have stopped producing errors.
  3. Open the file browser in the vCenter UI or SSH into the ESXi host where the datastore [Datastore_name] is mounted.
  4. Create a folder named 'null'.
  5. Inside the 'null' folder, create a nested folder or place a file (e.g., create a dummy file with the command 'touch dummy.txt').
  6. Ensure that the 'null' folder is not empty.
  7. Re-enable SDRS. 
  8. By following these steps, HMS will avoid attempting to delete a non-existent folder and will skip over non-empty folders. This will prevent the task from triggering in vCenter and flooding the event log with errors.