Host disconnected midway during backup, now unable to start/restart/cancel
-
@justjosh You should be able to get the correct UUID by going to the VM's Disks tab in XO and click the copy icon for the desired disk.
-
@danp I was under the impression I would need to remove the VDI for the snapshot and not the VDI for the VM's disk. Is the remove_from_sm_config command supposed to be run on the VM disk?
-
@justjosh Yes, the goal is to 'unpause' the the VDI for the VM's disk.
If you look back at the thread I posted, they showed the output from
xe vdi-list uuid=d50a85ca-eda2-4cbd-a348-80c7d6808ac1 params=all
, where the UUID was from the VM's disk VDI. You could perform the same on your VDI to confirm that the issue is present insm-config
entry. -
@danp I've cleared the pause but I'm still encountering errors regarding pause. Any ideas?
I still have a snapshot from 4th Dec when the error first started. Is it safe to delete that? Will the delta backup be able to merge a full snapshot with the existing chain?
Snapshot Start: Dec 8, 2020, 09:15:07 AM End: Dec 8, 2020, 09:15:08 AM Error: SR_BACKEND_FAILURE_82(, Failed to snapshot VDI [opterr=failed to pause VDI d11dc884-b91d-4ea0-87ef-6b96ce5b0ad4], ) Start: Dec 8, 2020, 09:15:07 AM End: Dec 8, 2020, 09:15:08 AM Duration: a few seconds Error: SR_BACKEND_FAILURE_82(, Failed to snapshot VDI [opterr=failed to pause VDI d11dc884-b91d-4ea0-87ef-6b96ce5b0ad4], )
-
@justjosh Yes, it should be fine to delete the snapshot and then rerun the backup job.
-
@Danp Did you remember what command you used to remove the "paused" flag, as the link from Citrix is not working anymore? Thanks!
-
As I needed it urgently, I wrote a python script which remove the flag from the db with this command :
vdi_ref = session.xenapi.VDI.get_by_uuid(vdi_uuid) session.xenapi.VDI.remove_from_sm_config(vdi_ref, "paused")
It worked and my vm are back to business!
-
@nicolas Yes, that is essentially what was shown in the link. Note: the developers have warned to be careful using this technique because the disk is in a paused state for a reason, so simply clearing the flag could lead to unintended consequences.
Alternatively, you can try running this command --
/opt/xensource/sm/resetvdis.py single <VDI UUID>
-
Hello, I have the same problem - see also here:
https://community.citrix.com/topic/253636-disable-cbt-sr_backend_failure_202-map_duplicate_key/#comment-86996If I use the following script as posted here I have the following result:
[root@wkkctxhy01 ~]# /opt/xensource/sm/resetvdis.py single 1e1c1ed3-9eb9-4b95-aabd-91b95111cc70
VDI 1e1c1ed3-9eb9-4b95-aabd-91b95111cc70 is not marked as attached anywhere, nothing to doAny help is welcome
robert -
@madrianr said in Host disconnected midway during backup, now unable to start/restart/cancel:
[root@wkkctxhy01 ~]# /opt/xensource/sm/resetvdis.py single 1e1c1ed3-9eb9-4b95-aabd-91b95111cc70
VDI 1e1c1ed3-9eb9-4b95-aabd-91b95111cc70 is not marked as attached anywhere, nothing to doafter "Forget" the disks and Rescan/Reattach it works now...
xe vdi-forget uuid=7a3b69fb-08d3-4e10-8b07-c05ee876eabe
xe vdi-forget uuid=433d1e56-80af-4691-93f6-84af4c411565
xe vdi-forget uuid=78a38bc3-bba3-4be6-8bdb-cfd20eaf8b44
xe vdi-forget uuid=1e1c1ed3-9eb9-4b95-aabd-91b95111cc70
xe vdi-forget uuid=671fc875-cb61-462d-98f2-62912b217570