The VDI is not available SR_BACKEND_FAILURE_46 in Xenserver 6.1

You may have a situation where you cannot start your VM in another host in the pool and you cannot live migrate that VM to another host in the pool.

This problem can arise when you use ‘/opt/xensource/debug/destroy_domain -domid XX’ on a VM.

Here are some of the errors you may see.

You may get this error in XenCenter:

Internal error: File "xapi_xenops.ml", line 1788, characters 3-9: Assertion failed

Or this error on the CLI:

Error code: SR_BACKEND_FAILURE_46
Error parameters: , The VDI is not available [opterr=VDI 86012149-349d-469d-969d-6ff4ee36595f already attached RW]

The solution is to shut down the VM, forget the VDI-s, rescan the SR and re-attach the VDI-s to the same VM in the same order.

I would suggest doing a full backup of the entire VM before this.

Here is an artice about making a backup of live running VM:

http://www.xenlens.com/export-a-live-running-vm-guest-from-xenserver-host

If you have backed up everyhting you needed, then:

1) Stop the VM in XenCenter
2) In cli: xe vdi-forget
3) In cli: xe sr-scan
4) Reattach the VDI to the VM in XenCenter
5) Start the VM in XenCenter

References:

http://forums.citrix.com/thread.jspa?threadID=323397

http://forums.citrix.com/thread.jspa?threadID=328057

http://www.bl-nk.net/2013/05/sr_backend_failure_46-the-vdi-is-not-available-already-attached-rw

 

One thought on “The VDI is not available SR_BACKEND_FAILURE_46 in Xenserver 6.1

Leave a Reply

Your email address will not be published. Required fields are marked *

You must enable javascript to see captcha here!