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

Re: [Xen-users] XEN & DRBD



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

gelpi@xxxxxxxxx schrieb:

> Hi, I'm trying to have drbd running on xen. I was able to have it
> working under dom0 but not under domU.
>
> This is the sequence of commands I use on a debian sarge (stable)
> to have drbd working on dom0:
>
> 0) Install xen from binaries
>
> 1) Download xen-2.0.7-src.tgz 2) untar it 3) make kernels 5)
> apt-get install drbd0.7-module-source 6) untar drbd 7) make
> KDIR=~/xen-2.0/linux-2.6.11-xen0 8) make install 9) reboot
>
> Now drbd seems to work under dom0. (modprobe drbd is ok).
>
> For domU I have change 7 with:
>
> 7) make KDIR=~/xen-2.0/linux-2.6.11-xenU


i tried it another way - well with other kinds of thirdparty modules,
but this did it for me:

- - cp your linux-2.6.11-xenU source tree into your domU (e.g. /usr/src/..)
- - check, you're using same compiler version in domU than in dom0
- - (eventually) modify .config/Kconfig to match the version name
(linux-2.6.11-xenU instead
  of linux-2.6.11)
- - just make modules && make modules_install as you would do in dom0

i don't know, if this is a preferred way of getting working domU
modules, but - as said -
this did it for me.

btw. if you're only concerned about one module, why don't you build
this statically into
the kernel ?


> Before booting domU I copied /lib/modules/2.6.11-xenU in
> /lib/modules of domU
>
> But after booting domU when I try drbd I get:
>
> test2:~# modprobe drbd general protection fault: 0000 [#1] PREEMPT
> Modules linked in: drbd CPU: 0 EIP: 0061:[<d08bb500>] Not
> tainted VLI EFLAGS: 00010286 (2.6.11.12-xenU) EIP is at
> _drbd_alloc_ee+0x80/0xe0 [drbd] eax: c11e7da0 ebx: cf3e16c4
> ecx: 00000000 edx: fbffc000 esi: cf3e1718 edi: cf3e1724 ebp:
> cf3e16b8 esp: cf399f28 ds: 007b es: 007b ss: 0069 Process
> modprobe (pid: 7082, threadinfo=cf398000 task=cf34c0a0) Stack:
> cf3e16c4 000000d0 c11e7da0 00000000 cf3ba000 00000000 d08bb5a1
> cf3ba000 c11e7da0 000000d0 cf3ba000 d08bb6e2 cf3ba000 000000d0
> 000000d0 c11e78a0 d08d731b cf3ba000 00000018 cf3ba000 00000001
> 000009a0 00000000 0000001e Call Trace: [<d08bb5a1>]
> drbd_alloc_ee+0x41/0x70 [drbd] [<d08bb6e2>] drbd_init_ee+0x32/0x70
> [drbd] [<d08d731b>] init_module+0x31b/0x480 [drbd] [<c0132af3>]
> sys_init_module+0x183/0x240 [<c0109258>] syscall_call+0x7/0xb Code:
> 45 60 c7 43 1c 00 10 00 00 66 c7 43 14 01 00 c7 43 28 01 00 00 00
> c7 46 08 00 00 00 00 c7 45 4c 00 00 00 00 c745 50 00 00 00 00 <fa>
> b8 00 e0c 8b 4c 24 1c 8b 93 Segmentation fault
>
> Ideas?
>
> Andrea Gelpi
>
> _______________________________________________ Xen-users mailing
> list Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDVpkj0MKSfkbzHDYRAgsvAJ9gibkPMcbK7pqQ9Mb1cULqG8e+WwCfTbtc
UDpjefIKtIXAXlrXaz/KdT8=
=B8c/
-----END PGP SIGNATURE-----


_______________________________________________
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®.