IBM Support

Backup VM fails with ANS9365E, API return code : 13

Troubleshooting


Problem

BACKUP VM may fail with the following error when using Hotadd: ANS9365E VMware vStorage API error for virtual machine .

Symptom

Virtual Machine backup fails with the following error in the dsmerror.log when VMVSTORTRANSPORT is set to HOTADD:


ANS9365E VMware vStorage API error for virtual machine '<vmname>'.
TSM function name : VixDiskLib_Open
TSM file : vmvddksdk.cpp (1764)
API return code : 13
API error message : You do not have access rights to this file
ANS5283E The operation was unsuccessful.

Note: VM backups are successful when VMVSTORTRANSPORT is set to NBD.

Cause

While the root cause for this error can vary, in this case IDE disks were being used during hotadd backups. Only SCSI disks are supported for hotadd transport method:

Best practices when using advanced transport for backup and restore

Diagnosing The Problem

Capture a trace during a recreate of the error per the following link:

Tracing instructions for Virtual Environments

The trace will show the following:


vmvddksdk.cpp (1291): [03256 verbose 'transport'] Mounting VM vim.VirtualMachine:vm-248 using transport hotadd failed : Cannot use hotadd to transport to mount Virtual Machines with non-SCSI disks..
vmvddksdk.cpp (1291): [03256 verbose 'transport'] Cannot use mode hotadd to access <datastore> '<vmdk name>': Cannot mount using this method.
vmvddksdk.cpp (1291): [03256 info 'ThreadPool'] Thread delisted
vmvddksdk.cpp (1142): vddksdkPrintVixError(): VM name '<vm name>'.
vmvddksdk.cpp (1162): ANS9365E VMware vStorage API error for virtual machine '<vm name>'.
    TSM function name : VixDiskLib_Open
    TSM file : vmvddksdk.cpp (1764)
    API return code : 13
    API error message : You do not have access rights to this file
..\..\common\vm\vmbackvddk.cpp(10580): vmVddkFullVMOpenCloseSingleVMDK: Error disk <datastore> '<vmdk name>'

Resolving The Problem

Use SCSI disks if specifying VMVSTORTRANSPORT HOTADD. Or alternatively, run VM backups with VMVSTORTRANSPORT NBD if using IDE disks.

[{"Product":{"code":"SS8TDQ","label":"Tivoli Storage Manager for Virtual Environments"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Data Protection for VMware","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"6.3;6.4;7.1","Edition":"All Editions","Line of Business":{"code":"LOB26","label":"Storage"}}]

Product Synonym

TSM ADSM TSM4VE

Document Information

Modified date:
17 June 2018

UID

swg21673756