[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] xm/xl block-detach issue



On 10.07.2011 20:19, Daniel Stodden wrote:
Okay, that needs to get fixed, but I don't know where. In XCP that's how it's exclusively done, because it's the most general approach.

My guess at the moment is that it might be a problem with blktap and vhd or, blktap and my kernel combo, or blktap and my kernel combo and vhd :)

The kernel i'm actually playing with is: 2.6.39.2-xen-stable + blktap, built over a debian squeeze like this:

git clone git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git linux_xen_2.6.39.x-stable
cd linux_xen_2.6.39.x-stable
git checkout -b stable/2.6.39.x origin/stable/2.6.39.x
git remote add daniel git://xenbits.xensource.com/people/dstodden/linux.git
git fetch daniel
git merge daniel/blktap/next-2.6.39
make menuconfig (removing useless stuff, activating the needed ones)
make bzImage -j9 ; make modules -j9 ; make modules_install
[ etc ... ]

Playing more with it this morning I managed to start a vm with a vhd file for the disk (after provisioning it with some files and reboots...) , with this config:

box# cat /cloud/data2/configs/vm1.test.cfg
bootloader = "/usr/bin/pygrub"
memory = 1024
name = "vm1"
vcpus = 4
#vif = [ 'ip=10.111.5.10, bridge=trunk0, vifname=vm1.0' ]
disk = [ 'tap2:vhd:/cloud/data2/machines/vm1.vhd,xvda,w' ]
root = "/dev/xvda1"
extra = "fastboot"




vm1 is up and rocking

box# xl list
NameÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ IDÂÂ Mem VCPUsÂÂÂÂÂ StateÂÂ Time(s)
Domain-0ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 0Â 1024ÂÂÂ 16ÂÂÂÂ r-----ÂÂÂÂÂ 26.2
vm1ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 2Â 1024ÂÂÂÂ 4ÂÂÂÂ -b----ÂÂÂÂÂÂ 2.8

But now if I issue a ps -aux in the dom0, it displays some process then hangs the ps.
(that was not the case before I start vm1)

And if I try to list the attached block devices with xl:

box# xl block-list 2
Vdev BE handle state evt-ch ring-ref BE-pathÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ
Segmentation fault

(dmesg)
[ 1592.151122] xl[2292]: segfault at 0 ip 00007f7de314e6d2 sp 00007fff610e30b0 error 4 in libc-2.11.2.so[7f7de3117000+158000]

but works if i try to list it with xm:

box# xm block-list 2
Vdev BE handle state evt-ch ring-ref BE-path
51712Â 0ÂÂÂ 0ÂÂÂÂ 4ÂÂÂÂÂ 23ÂÂÂÂ 8ÂÂÂÂ /local/domain/0/backend/vbd/2/51712Â



I'll try with something else than vhd to see if the same happens, but my goal is to use vhd's ...


Can you check if it works with some normal disk? Check out modules, install lvm2, make sure you have dm-linear loaded, etc... You were running a custom kernel, right? You're probably just missing sth.

modules lists:

root@xen-blade15:~# lsmod
Module Size Used by
blktapÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 17941Â 8
ocfs2ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 618206Â 1
quota_treeÂÂÂÂÂÂÂÂÂÂÂÂÂ 7539Â 1 ocfs2
ocfs2_dlmfsÂÂÂÂÂÂÂÂÂÂÂ 17331Â 1
ocfs2_stack_o2cbÂÂÂÂÂÂÂ 3482Â 1
ocfs2_dlmÂÂÂÂÂÂÂÂÂÂÂÂ 204671Â 1 ocfs2_stack_o2cb
ocfs2_nodemanagerÂÂÂÂ 186569Â 14 ocfs2,ocfs2_dlmfs,ocfs2_stack_o2cb,ocfs2_dlm
ocfs2_stackglueÂÂÂÂÂÂÂÂ 7437Â 3 ocfs2,ocfs2_dlmfs,ocfs2_stack_o2cb
dm_round_robinÂÂÂÂÂÂÂÂÂ 2260Â 1
configfsÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 21658Â 2 ocfs2_nodemanager
crc32cÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 2688Â 8
iscsi_tcpÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 8503Â 6
libiscsi_tcpÂÂÂÂÂÂÂÂÂÂ 11604Â 1 iscsi_tcp
libiscsiÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 34844Â 2 iscsi_tcp,libiscsi_tcp
scsi_transport_iscsiÂÂÂ 28673Â 3 iscsi_tcp,libiscsi
openvswitch_modÂÂÂÂÂÂÂ 71205Â 3
xenfsÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 9815Â 1
xfsÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 501098Â 1
ext2ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 61369Â 1
sgÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 27333Â 0
sr_modÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 14760Â 0
cdromÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 35494Â 1 sr_mod
xen_evtchnÂÂÂÂÂÂÂÂÂÂÂÂÂ 4739Â 2
loopÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 16002Â 0
tpm_tisÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 7821Â 0
tpmÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 10878Â 1 tpm_tis
i7core_edacÂÂÂÂÂÂÂÂÂÂÂ 15891Â 0
tpm_biosÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 4921Â 1 tpm
dcdbasÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 5416Â 0
edac_coreÂÂÂÂÂÂÂÂÂÂÂÂÂ 34483Â 1 i7core_edac
evdevÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 9374Â 4
usb_storageÂÂÂÂÂÂÂÂÂÂÂ 43361Â 0
thermal_sysÂÂÂÂÂÂÂÂÂÂÂ 14045Â 0
pcspkrÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 1779Â 0
acpi_processorÂÂÂÂÂÂÂÂÂ 5423Â 0 [permanent]
buttonÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 4199Â 0
usbhidÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 34740Â 0
hidÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 78436Â 1 usbhid
ext4ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 255423Â 1
mbcacheÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 5434Â 2 ext2,ext4
jbd2ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 48549Â 2 ocfs2,ext4
crc16ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 1319Â 1 ext4
dm_multipathÂÂÂÂÂÂÂÂÂÂ 16384Â 2 dm_round_robin
scsi_dhÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 4876Â 1 dm_multipath
dm_modÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 63657Â 7 dm_multipath
sd_modÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 34293Â 6
crc_t10difÂÂÂÂÂÂÂÂÂÂÂÂÂ 1292Â 1 sd_mod
uhci_hcdÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 21828Â 0
megaraid_sasÂÂÂÂÂÂÂÂÂÂ 70747Â 3
ehci_hcdÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 37665Â 0
scsi_modÂÂÂÂÂÂÂÂÂÂÂÂÂ 144719Â 9 iscsi_tcp,libiscsi,scsi_transport_iscsi,sg,sr_mod,usb_storage,scsi_dh,sd_mod,megaraid_sas
usbcoreÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 137744Â 5 usb_storage,usbhid,uhci_hcd,ehci_hcd
bnx2ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 70964Â 0

My vhd storage is on an ocfs2 shared storage attached with multipath iscsi. I will try it on a local storage too to eliminate
that possible cause.

Thanks for your time Daniel.

SÃbastien
Â



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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.