WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Cannot detach block-devices

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Cannot detach block-devices
From: Ralf Schulze <ralf.schulze@xxxxxxxxxxxxxxxx>
Date: Fri, 03 Jul 2009 12:19:03 +0000
Delivery-date: Fri, 03 Jul 2009 05:19:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: Insitute for Nuclear Physics, University of Cologne
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hello.

I have some strange phenomenoma after I tried to detach and afterwards
reattach a block-device to a domU. The problems occured after some
problems with the underlying iscsi device that is accessed in dom0 and
via Xen attached to the domU.

I played around with "xm block-detach" "xm block-attach" and now I have
the following situation:

xm block-list gives me this output: 

[root@dom0]# xm block-list 19
Vdev  BE handle state evt-ch ring-ref BE-path
2050    0    0     4      52     8     /local/domain/0/backend/vbd/19/2050  
2053    0    0     4      53     9     /local/domain/0/backend/vbd/19/2053  
2054    0    0     4      54     10    /local/domain/0/backend/vbd/19/2054  
2055    0    0     4      55     11    /local/domain/0/backend/vbd/19/2055  
2056    0    0     4      56     12    /local/domain/0/backend/vbd/19/2056  
2057    0    0     4      57     13    /local/domain/0/backend/vbd/19/2057  
2065    0    0     4      58     14    /local/domain/0/backend/vbd/19/2065  
2066    0    0     4      59     15    /local/domain/0/backend/vbd/19/2066  
2081    0    0     4      60     16    /local/domain/0/backend/vbd/19/2081  
2145    0    0     4      62     18    /local/domain/0/backend/vbd/19/2145  
2161    0    0     4      63     19    /local/domain/0/backend/vbd/19/2161  
2177    0    0     4      64     20    /local/domain/0/backend/vbd/19/2177  
2128    0    0     1      -1     -1    /local/domain/0/backend/vbd/19/2128  
2129    0    0     1      -1     -1    /local/domain/0/backend/vbd/19/2129  
2193    0    0     1      -1     -1    /local/domain/0/backend/vbd/19/2193  
2209    0    0     1      -1     -1    /local/domain/0/backend/vbd/19/2209  
2225    0    0     1      -1     -1    /local/domain/0/backend/vbd/19/2225  
[root@dom0]# 

The entries with "evt-ch" and "ring-ref" = "-1" are the entries
belonging to the corresponding device.

xenstore-ls gives e.g.:

[root@dom0]# xenstore-ls /local/domain/0/backend/vbd/19/2225
domain = "domU"
frontend = "/local/domain/19/device/vbd/2225"
format = "raw"
dev = "sdl1"
state = "2"
params = "/dev/sdi1"
mode = "w"
online = "1"
frontend-id = "19"
type = "phy"
physical-device = "8:81"
hotplug-status = "connected"
[root@dom0]# 

"xm block-detach 19 2225" gives no output and has no visible effect.
With the --force options it says:

[root@dom0]# xm block-detach 19 2225 -f
Error: Device 2225 not connected
Usage: xm block-detach <Domain> <DevId> [-f|--force]

Destroy a domain's virtual block device.
[root@dom0]#

xend log the following during this operation:

[2009-07-03 13:55:11 xend.XendDomainInfo 1194] DEBUG (XendDomainInfo:1235) Check
ingif 'vbd' device 2225 is really a'tap' device

Btw: I cannot see this block device in the domU.


Another strange thing: "xm list" does not show this domU anymore! In xend.log 
it says:

[2009-07-03 13:58:46 xend 1194] WARNING (XMLRPCServer:66) Failed to
query SXPR for domain <domain id=19 name=domU memory=23000> 

In "xm top" it is still there and running.


Anybody having some ideas how to fix this?


Thanks a lot,

Ralf




_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Cannot detach block-devices, Ralf Schulze <=