This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-API] Re: [Xen-users] XCP 1.0 beta - Locked VDI after power loss

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] Re: [Xen-users] XCP 1.0 beta - Locked VDI after power loss
From: Chris Percol <chris.percol@xxxxxxxxx>
Date: Thu, 17 Feb 2011 15:48:17 +0000
Delivery-date: Thu, 17 Feb 2011 07:49:02 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=qOMIYdZqSDGCP3HViCpLHZ4DNCo/U42TffGP7qD8xQ4=; b=GuKvXgkUw0u59oO933O4MOr2+kNdIQnfLrThwfUt3auLxZpktYr5SQFntLijOLwics dfwJQjTh15gaUF6X/0gWYtNIsGbW1bVjU2JFrO8msAg9r6RvmTUjr/2QvJ/k3n8AK+vh +LJehbfQSmqnBP7mW7QFj2L2o0zQJzJPaHQk8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=YDMKlZIdywNd+2VGA2M2b+5Umxh2j6JbuLZ6CCe4c3AfNMIpRVL7mbN9DzkIGNmz8r gJ76SXl2/CNty7qsFXluKsdrQy2HAcjP8MhK95s3wBJGR0qHkUvhtNgjlGvvps6gQdD5 knpAyc8Mmkrv+ErGotUthdKLEAbpisWjk3PlY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTik76Nm_s3Z0d1q+GXr2p0hsTpfb81L59-dUdz-q@xxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <99DA356A-6795-4DFD-9751-103C87606E6D@xxxxxxxxx> <CA65857C-DC31-430C-9D22-FAAF80D2F055@xxxxxxxxx> <AANLkTimZMiRk5AYsQktXoRFM7yr5=bHN91MQ81ehL7uN@xxxxxxxxxxxxxx> <4DCA15A5-8F44-40D8-B560-0BA4F67B2D76@xxxxxxxxxxxxx> <AANLkTik76Nm_s3Z0d1q+GXr2p0hsTpfb81L59-dUdz-q@xxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx

The file you mention doesn't appear to be there?


Any idea where I can get it. I double checked xcp 0.5 and 1 source files.

Many thanks,


On Thu, Feb 17, 2011 at 12:14 PM, Jonathan Ludlam <Jonathan.Ludlam@xxxxxxxxxxxxx> wrote:
So what should happen now is that when the host comes back online, the VDIs should get unlocked without any further intervention. Thus waiting for your host to reboot is the preferred solution.

If the host is permanently dead, or you want to get things back online more quickly, you'll need to:

1. Execute an 'xe vm-reset-powerstate' cli command (as was the case in 0.5)
2. Execute the script:
     /opt/xensource/sm/resetvdis.py <host uuid> <sr uuid> [master]
    where the arguments are the host that has gone away, the sr in which the VDIs reside, and whether the host is the SR master (not the pool master)

In almost every instance where this is useful (for a user to execute), the 'master' field will not be set, as the times when the script is useful is when your locked VDIs are on 
shared storage, and in the case where the pool master is the host that died, the designate-new-master process will cause the script to be executed anyway.

Hope this helps!


On 17 Feb 2011, at 10:42, Chris Percol wrote:


Just wanted to post an update on how we fixed 'vdi not available' and 'sr backend failure' issues after pulling the power on two of our xcp hosts several seconds after initiating a shutdown. We are usng an iSCSI san for storage (qsan).

###Fix VDI Problems after Power Failure###

#Steps that fixed 'vdi not available', sr backend failure

xe pbd-list sr-uuid=<uuid>
xe pbd-unplug uuid=<uuid>

Xen Center
Storage Forget
Storage > New Storage

Restore Virtual Machine Metadata

Thanks for previous help on this issue.


On Fri, Jan 21, 2011 at 1:18 PM, Chris Petrolino <cpetrolino@xxxxxxxxx> wrote:
Thanks guys I'll give these a shot as soon as I get into the office! 

Kind Regards,

Christopher James Petrolino

On Jan 21, 2011, at 5:54 AM, Kristoffer <kegefelt@xxxxxxxxx> wrote:


I've worked around this issue a couple of times - These are my notes:

    • xe sr-forget uuid=c208e85a-b5ea-8b89-62ff-52ebbf5263f8
    • xe sr-introduce uuid=c208e85a-b5ea-8b89-62ff-52ebbf5263f8 type=ext name-label='Local storage' content-type=user
    • xe pbd-create sr-uuid=c208e85a-b5ea-8b89-62ff-52ebbf5263f8 device-config:device=/dev/disk-by-id/scsi-360345678123456781300046d062de2ee-part3 host-uuid=a600493f-d142-4785-8618-d00dc5069b1e
    • xe pbd-plug uuid=dc103449-ef50-6a05-c58b-995de0314edd
    • vgrename VG_XenStorage-c208e85a-b5ea-8b89-62ff-52ebbf5263f8 XSLocalEXT-c208e85a-b5ea-8b89-62ff-52ebbf5263f8
    • xe pbd-plug uuid=dc103449-ef50-6a05-c58b-995de0314edd
    • restore metadata or guess which VDI's are connected to VMs

Hey guys I have seen a couple other folks post about this happening
but haven't seen if anyone has successfully figured out the cause and
or solution to this problem.

One of our network guys did an accidental plug pulls on one of our XCP
1.0 beta boxes. I have a couple VDI on this box " a few that are on
shared storage, and a few that are on local storage. Every time I try
to start any of them I get "the vdi is unavailable" or on open xen
manager I get - Error parameters: , The VDI is not available
[opterr=VDI fc77b366-950b-49be-90ce-2a466cf73502 already attached RW],

Any advice?

Also if this isn't the right list can anyone point me to the appropriate list?

thanks so much

Xen-users mailing list

Xen-users mailing list


xen-api mailing list