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

Re: [Xen-users] Re: XAPI on debian - sr-create issue



Hi Jon,

I've applied the new deb files and added the primary disk entry to the xensource-inventory file. It looks like the error I had was related to the PRIMARY_DISK missing setting.

I can now create a local SR, create a vdi, and a vbd, but if i try to plug it to the dom0 (i've not configured any VM yet as I'm trying the different storage layers) I get ugly kernel messages.

Here is what i've done:


box# xe sr-create content-type=user type=ext name-label=local device-config:device=/dev/sda3
66597906-20ae-5ec6-e60a-e0dec55df506

box # xe vdi-create sr-uuid=66597906-20ae-5ec6-e60a-e0dec55df506 name-label=testtest type=user virtual-size=20GiB
ca4ba7bd-2901-45fb-a3f5-18b7d78e0232

box#  xe vm-list
uuid ( RO)           : 03753e00-3514-296c-52e1-26ba8f1dd068
     name-label ( RW): Control domain on host: xen-blade13
    power-state ( RO): running

box # xe vbd-create vm-uuid=03753e00-3514-296c-52e1-26ba8f1dd068 vdi-uuid=ca4ba7bd-2901-45fb-a3f5-18b7d78e0232 device=0 type=disk mode=rw
92a3b3bc-8b48-b13d-a53c-891c10fba1b9

box # xe vbd-plug uuid=92a3b3bc-8b48-b13d-a53c-891c10fba1b9
[hangs indefinitely]
doing a ctrl-c after one minute or so to get the shell back

Still, the device has been plugged as xvda appears in the dom0 and I can fdisk it, mount it etc. But there are not so nice messages in the dmesg, and If i try to attach another vbd it doesn't work anymore.

dmesg:
[ 237.487585] block tda: sector-size: 512/512+0 capacity: 209715200 discard: 0+0 flush: 0x0 [ 237.577587] xen-blkback:ring-ref 8, event-channel 90, protocol 1 (x86_32-abi)
[  237.585893] blkfront: xvda: barrier or flush: disabled
[  237.587430] ------------[ cut here ]------------
[ 237.587443] WARNING: at kernel/irq/handle.c:130 handle_irq_event_percpu+0xa3/0x158()
[  237.587448] Hardware name: PowerEdge M610
[ 237.587457] irq 409 handler blkif_interrupt+0x0/0x1f7 [xen_blkfront] enabled interrupts [ 237.587462] Modules linked in: xen_blkfront(+) ocfs2 quota_tree ocfs2_dlmfs ocfs2_stack_o2cb ocfs2_dlm ocfs2_nodemanager ocfs2_stackglue configfs dm_round_robin ext3 jbd iptable_filter ip_tables x_tables xen_blkback openvswitch_mod xen_netback xen_evtchn xenfs ib_iser rdma_cm ib_cm iw_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi nfsd nfs lockd fscache auth_rpcgss nfs_acl sunrpc blktap loop snd_pcm snd_timer snd soundcore snd_page_alloc dcdbas pcspkr ghes i7core_edac edac_core evdev joydev hed acpi_power_meter button processor thermal_sys ext4 mbcache jbd2 crc16 dm_multipath scsi_dh dm_mod sg ses enclosure sr_mod sd_mod cdrom crc_t10dif usbhid hid usb_storage uas uhci_hcd bnx2x crc32c ehci_hcd usbcore megaraid_sas scsi_mod libcrc32c mdio bnx2 [last unloaded: scsi_wait_scan]
[  237.587710] Pid: 0, comm: swapper Not tainted 3.0.0-rc6-686-pae-vgafix #5
[  237.587715] Call Trace:
[  237.587726]  [<c1033abc>] ? warn_slowpath_common+0x68/0x79
[  237.587735]  [<c10714b0>] ? handle_irq_event_percpu+0xa3/0x158
[  237.587743]  [<c1033b35>] ? warn_slowpath_fmt+0x29/0x2d
[  237.587751]  [<c10714b0>] ? handle_irq_event_percpu+0xa3/0x158
[ 237.587761] [<f748a4c8>] ? kick_pending_request_queues+0x27/0x27 [xen_blkfront]
[  237.587770]  [<c1071586>] ? handle_irq_event+0x21/0x37
[  237.587778]  [<c1072dab>] ? handle_edge_irq+0x7f/0x98
[  237.587788]  [<c11aadbf>] ? __xen_evtchn_do_upcall+0x126/0x1ad
[  237.587797]  [<c11abf25>] ? xen_evtchn_do_upcall+0x18/0x26
[  237.587807]  [<c12a73d7>] ? xen_do_upcall+0x7/0xc
[  237.587816]  [<c10023a7>] ? hypercall_page+0x3a7/0x1000
[  237.587825]  [<c100586a>] ? xen_safe_halt+0xf/0x19
[  237.587834]  [<c100cdee>] ? default_idle+0x52/0x87
[  237.587841]  [<c1007396>] ? cpu_idle+0x87/0xa1
[  237.587850]  [<c140a6f1>] ? start_kernel+0x32a/0x32f
[  237.587858]  [<c140bfe1>] ? xen_start_kernel+0x58a/0x591
[  237.587864] ---[ end trace c7b0ff9f162240ee ]---
[  237.588235]  xvda: unknown partition table

Now, on the box I have open-iscsi/multipath/ocfs2 running. So I'm going to try again with all that
stuff disabled to check if nothing is conflicting...

But, In the meantime if you have an idea ? :)

Thanks,
Sébastien











On 07/20/2011 06:49 PM, Jonathan Ludlam wrote:
Looks like the EXTSR was a bit broken in a couple of ways.

Firstly, you'll need to add a 'PRIMARY_DISK' line to /etc/xensource-inventory 
(now mentioned in the wiki page)
Secondly, the path the the LVM tools was incorrect. I've fixed this in a new 
deb that I've uploaded to downloads.xen.org.
Thirdly, I've added to the instructions that LVM2 needs to be installed.

I've also fixed a bunch of other things in the debs that I've uploaded - please 
pull down the latest versions and install them.

Jon



On 20 Jul 2011, at 14:22, Sébastien RICCIO wrote:

Hi,

Continuing my tests with xapi on debian, I get into an issue  trying to
create a SR.

box# xe sr-create type=ext name-label=local device-config:device=/dev/sda3

Error code: SR_BACKEND_FAILURE_1
Error parameters: , Error reporting error, unknown key NoRootDev,
/usr/lib/xen-common/xapi/sm/util.py:17: DeprecationWarning: The popen2
module is deprecated.  Use the subprocess module.
   import os, re, sys, popen2, subprocess


Any idea what could be wrong ?

Thanks a lot for your help.

Sébastien


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



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


 


Rackspace

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