Monday, May 19, 2014

Citrix XenServer Error: VDI is not Available


The first thing to be done is to check and see if the disk is still attached to the VM in question. If so Detach the disk.

If the server has multiple disks run the following command and see if the error in the output of the command gives you information about which disk if giving the error:

xe vm-start vm=<Name of VM>

For Example:
[root@fsxensvr32 ~]# xe vm-start vm=FvABTFDM01
Error code: SR_BACKEND_FAILURE_46
Error parameters: , The VDI is not available [opterr=VDI 966cb0e6-c303-4c80-84ee-43513cd937be not detached cleanly],

As you can see from the example above the error gave you the UUID of the disk associated with the VM that is causing the issue. Based on this informaton you now know which disk to use when executing the procedures in this document.


Find the UUID of the VDI in question

xe vdi-list


You need to obtain the UUID of the VDI and not the UUID of the VM

For Example:
                       uuid ( RO)  : b69d4862-4080-416b-9f77-496474510c15
            name-label ( RW): vdi_xvda
name-description ( RW): XenAppPoolWLB

You can see that the UUID: b69d4862-4080-416b-9f77-496474510c15 is associated with VM XenAppPoolWLB.

Once you have the UUID run the following command:

xe vdi-forget uuid=<VDI UUID we found in step 1>

This is going to remove the VDI from the VM so we can reattach it correctly.  So drive order does matter, you don’t want to switch an OS VDI with a data VDI.

After the above command is executed open XenCenter and navigate to the SR with your VDI.  Hit rescan

Now go to your VM with issues and select the ‘Storage’ tab and click ‘Attach Disk’, and locate the disk to add for your VM

Boot your VM






2 comments:

  1. Hey Guys, here is the best file converter which can easily convert your various files to other formats;

    File Converter Free

    ReplyDelete