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-devel

[Xen-devel] Problem with detach a disk from domU

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Problem with detach a disk from domU
From: Roberto Scudeller <beto.rvs@xxxxxxxxx>
Date: Wed, 24 Aug 2011 17:19:04 -0300
Delivery-date: Wed, 24 Aug 2011 13:19:42 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=3BzRd+VJkjm269ioUOcYgYS0G11jJv54jLGPU2OcMww=; b=MCBY2vr/hCG1guMN38ri0thKVibdJIYrCVglAi3hy4UPMZeTZB1NPIBrY1Wiq9jBkr hhavnLEyIvO7SVyvAnXyAH0MVPQQURwVqbFvJyP4h4aYSzmhexuEkXPSqx483TuZDQp1 G6iDAyTVyv/TX0a+603gsBadBQfYyHfazwRr8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi all,

I try to attach and detach a disk in a DomU, but It don't work.

See:
# xl create teste/teste4/teste4.cfg
Parsing config file teste/teste4/teste4.cfg
xc: info: VIRTUAL MEMORY ARRANGEMENT:
  Loader:        0000000000100000->00000000001797f0
  TOTAL:         0000000000000000->000000001f800000
  ENTRY ADDRESS: 0000000000100000
xc: info: PHYSICAL MEMORY ALLOCATION:
  4KB PAGES: 0x0000000000000200
  2MB PAGES: 0x00000000000000fb
  1GB PAGES: 0x0000000000000000
Daemon running with PID 17445
# xl block-attach teste4 tap:vhd:/storage6_nfs/default/roberto/stress/teste/teste4/xvdb.vhd xvdb w
# xl block-list teste4
Vdev  BE  handle state evt-ch ring-ref BE-path                      
768   0   2      4     6      8        /local/domain/0/backend/vbd/2/768
51712 0   2      4     7      9        /local/domain/0/backend/vbd/2/51712
51728 0   2      4     9      295      /local/domain/0/backend/vbd/2/51728
# xl block-detach teste4 51728
# xl block-list teste4
Vdev  BE  handle state evt-ch ring-ref BE-path                      
768   0   2      4     6      8        /local/domain/0/backend/vbd/2/768
51712 0   2      4     7      9        /local/domain/0/backend/vbd/2/51712
51728 0   2      4     9      295      /local/domain/0/backend/vbd/2/51728

Inside a teste4 DomU found a new disk and these is don't mounted on VM, only listed on fdisk and /dev/.

I try this patch:
http://marc.info/?l=xen-devel&m=131066210526755

I found in http://xen.1045712.n5.nabble.com/hanging-tapdisk2-processes-and-improper-udev-rules-td4622364.html

When I try recompile xen with:
# make
...
gcc  -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .libxl_device.o.d  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -Werror -Wno-format-zero-length -Wmissing-declarations -I. -fPIC -I../../tools/libxc -I../../tools/include -I../../tools/libxc -I../../tools/include -I../../tools/xenstore -I../../tools/include -I../../tools/blktap2/control -I../../tools/blktap2/include -I../../tools/include -c -o libxl_device.o libxl_device.c
libxl_device.c: In function ‘libxl__device_destroy’:
libxl_device.c:253: error: incompatible type for argument 1 of ‘libxl__device_destroy_tapdisk’
libxl_device.c:274: error: incompatible type for argument 1 of ‘libxl__device_destroy_tapdisk’
make[3]: *** [libxl_device.o] Error 1
make[3]: Leaving directory `/root/xen4/xen-4.1-testing.hg/tools/libxl'
make[2]: *** [subdir-install-libxl] Error 2
make[2]: Leaving directory `/root/xen4/xen-4.1-testing.hg/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/root/xen4/xen-4.1-testing.hg/tools'
make: *** [install-tools] Error 2

My versions are: Xen 4.1.2-rc1-pre and kernel 2.6.32.45. I download via hg clone and git pull today.

Any ideas?
This patch is complete?


Best regards,

--
Roberto Scudeller


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Problem with detach a disk from domU, Roberto Scudeller <=