Hi,
little over a week ago, one of my VM's backup started to have some hickups after i accidentally rebooted XO (or was it toolstack restart, cant remember) during backups...
After that hickup my delta backup started throwing this error:
Error: The value of "offset" is out of range. It must be >= 0 and <= 102399. Received 102400
I kept getting this error everyday, so i tried resetting the backups by removing the snapshot that existed.
Removing snapshot did not help so i disabled CBT and removed snapshot and all existing delta backups as well, waited for coalescence then tried backup and got this error:
Error: SR_BACKEND_FAILURE_82(, Failed to snapshot VDI [opterr=['MAP_DUPLICATE_KEY', 'VDI', 'sm_config', 'OpaqueRef:2ebd2753-709c-4bf9-afdb-9ce38938b5cf', 'paused']], )
After this i tried migrating the VM to another host and got error:
vm.migrate
{
"vm": "d5d0334c-a7e3-b29f-51ca-1be9c211d2c1",
"migrationNetwork": "1f6f4495-1045-6fe2-3da6-4e43862e623d",
"sr": "6b24cd1c-22ad-0994-5b6b-a75389a6ddba",
"targetHost": "d09b0fef-7aab-4516-a21e-0f72806655aa"
}
{
"code": "SR_BACKEND_FAILURE_202",
"params": [
"",
"General backend error [opterr=['MAP_DUPLICATE_KEY', 'VDI', 'sm_config', 'OpaqueRef:2ebd2753-709c-4bf9-afdb-9ce38938b5cf', 'paused']]",
""
],
"task": {
"uuid": "1d7d6b6c-1d5d-f166-c1e9-d42a94a08253",
"name_label": "Async.VDI.disable_cbt",
"name_description": "",
"allowed_operations": [],
"current_operations": {},
"created": "20250613T08:15:55Z",
"finished": "20250613T08:15:56Z",
"status": "failure",
"resident_on": "OpaqueRef:010eebba-be27-489f-9f87-d06c8b675f19",
"progress": 1,
"type": "<none/>",
"result": "",
"error_info": [
"SR_BACKEND_FAILURE_202",
"",
"General backend error [opterr=['MAP_DUPLICATE_KEY', 'VDI', 'sm_config', 'OpaqueRef:2ebd2753-709c-4bf9-afdb-9ce38938b5cf', 'paused']]",
""
],
"other_config": {},
"subtask_of": "OpaqueRef:NULL",
"subtasks": [],
"backtrace": "(((process xapi)(filename lib/backtrace.ml)(line 210))((process xapi)(filename ocaml/xapi/storage_access.ml)(line 32))((process xapi)(filename ocaml/xapi/xapi_vdi.ml)(line 1403))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 131))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename ocaml/xapi/rbac.ml)(line 205))((process xapi)(filename ocaml/xapi/server_helpers.ml)(line 95)))"
},
"message": "SR_BACKEND_FAILURE_202(, General backend error [opterr=['MAP_DUPLICATE_KEY', 'VDI', 'sm_config', 'OpaqueRef:2ebd2753-709c-4bf9-afdb-9ce38938b5cf', 'paused']], )",
"name": "XapiError",
"stack": "XapiError: SR_BACKEND_FAILURE_202(, General backend error [opterr=['MAP_DUPLICATE_KEY', 'VDI', 'sm_config', 'OpaqueRef:2ebd2753-709c-4bf9-afdb-9ce38938b5cf', 'paused']], )
at Function.wrap (file:///opt/xo/xo-builds/xen-orchestra-202506030701/packages/xen-api/_XapiError.mjs:16:12)
at default (file:///opt/xo/xo-builds/xen-orchestra-202506030701/packages/xen-api/_getTaskResult.mjs:13:29)
at Xapi._addRecordToCache (file:///opt/xo/xo-builds/xen-orchestra-202506030701/packages/xen-api/index.mjs:1072:24)
at file:///opt/xo/xo-builds/xen-orchestra-202506030701/packages/xen-api/index.mjs:1106:14
at Array.forEach (<anonymous>)
at Xapi._processEvents (file:///opt/xo/xo-builds/xen-orchestra-202506030701/packages/xen-api/index.mjs:1096:12)
at Xapi._watchEvents (file:///opt/xo/xo-builds/xen-orchestra-202506030701/packages/xen-api/index.mjs:1269:14)"
}
I then tried restarting the host and got error:
vm.restart
{
"id": "d5d0334c-a7e3-b29f-51ca-1be9c211d2c1",
"force": true,
"bypassBlockedOperation": false
}
{
"code": "SR_BACKEND_FAILURE_46",
"params": [
"",
"The VDI is not available [opterr=VDI c6853f48-4b06-4c34-9707-b68f9054e6fc locked]",
""
],
"task": {
"uuid": "421e7331-322d-5db1-02eb-62a6e443f4e7",
"name_label": "Async.VM.hard_reboot",
"name_description": "",
"allowed_operations": [],
"current_operations": {},
"created": "20250613T08:27:36Z",
"finished": "20250613T08:31:42Z",
"status": "failure",
"resident_on": "OpaqueRef:010eebba-be27-489f-9f87-d06c8b675f19",
"progress": 1,
"type": "<none/>",
"result": "",
"error_info": [
"SR_BACKEND_FAILURE_46",
"",
"The VDI is not available [opterr=VDI c6853f48-4b06-4c34-9707-b68f9054e6fc locked]",
""
],
"other_config": {},
"subtask_of": "OpaqueRef:NULL",
"subtasks": [],
"backtrace": "(((process xapi)(filename ocaml/xapi-client/client.ml)(line 7))((process xapi)(filename ocaml/xapi-client/client.ml)(line 19))((process xapi)(filename ocaml/xapi-client/client.ml)(line 6122))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 35))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 134))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 35))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename ocaml/xapi/rbac.ml)(line 205))((process xapi)(filename ocaml/xapi/server_helpers.ml)(line 95)))"
},
"message": "SR_BACKEND_FAILURE_46(, The VDI is not available [opterr=VDI c6853f48-4b06-4c34-9707-b68f9054e6fc locked], )",
"name": "XapiError",
"stack": "XapiError: SR_BACKEND_FAILURE_46(, The VDI is not available [opterr=VDI c6853f48-4b06-4c34-9707-b68f9054e6fc locked], )
at Function.wrap (file:///opt/xo/xo-builds/xen-orchestra-202506030701/packages/xen-api/_XapiError.mjs:16:12)
at default (file:///opt/xo/xo-builds/xen-orchestra-202506030701/packages/xen-api/_getTaskResult.mjs:13:29)
at Xapi._addRecordToCache (file:///opt/xo/xo-builds/xen-orchestra-202506030701/packages/xen-api/index.mjs:1072:24)
at file:///opt/xo/xo-builds/xen-orchestra-202506030701/packages/xen-api/index.mjs:1106:14
at Array.forEach (<anonymous>)
at Xapi._processEvents (file:///opt/xo/xo-builds/xen-orchestra-202506030701/packages/xen-api/index.mjs:1096:12)
at Xapi._watchEvents (file:///opt/xo/xo-builds/xen-orchestra-202506030701/packages/xen-api/index.mjs:1269:14)"
}
And i then noticed that the VM is actually frozen, the VDI is not found, anywhere. and obviously the VM wont start...
I then noticed in storage > Advance tab this error:
Failed to unpause tapdisk for VDI c6853f48-4b06-4c34-9707-b68f9054e6fc, VMs using this tapdisk have lost access to the corresponding disk(s)
I see the disks in XO and in CLI:
xe vdi-list uuid=c6853f48-4b06-4c34-9707-b68f9054e6fc
uuid ( RO) : c6853f48-4b06-4c34-9707-b68f9054e6fc
name-label ( RW): vm_disk1
name-description ( RW): xvda1
sr-uuid ( RO): 6b24cd1c-22ad-0994-5b6b-a75389a6ddba
virtual-size ( RO): 53689188352
sharable ( RO): false
read-only ( RO): false
But when i check my storage repository in /var/run/sr-mount/ the file is not actually there:
file c6853f48-4b06-4c34-9707-b68f9054e6fc
c6853f48-4b06-4c34-9707-b68f9054e6fc: cannot open (No such file or directory)
Since i just deleted all backup before i began this operation, my only hope is that the "Base copy" VDI which still exists, allows me to recover the VM.
file 3507a5eb-748b-4d13-bdc8-e8128da0bfdb.vhd
3507a5eb-748b-4d13-bdc8-e8128da0bfdb.vhd: Microsoft Disk Image, Virtual Server or Virtual PC
Is this my only hope or recovering the disk or is there some other way i have missed?