<p><span class="long_text" id="result_box"><span title="Estou usando o google tradutor,
pois não falo ingles e agradeço muito sua ajuda." style="background-color: rgb(255, 255,
255);">I'm using google translator because I do not speak English and I appreciate very
much your help.<br /></span><span title="Entendi, eo seguinte, tenho um script que e
colocado no /etc/ha/haresources que inicializa as domU, ficando desta forma baixo."
style="background-color: rgb(255, 255, 255);">I got it, and the next, I have a script
and placed in / etc / ha / haresources that starts the domU, getting so low.<br /><br
/></span><span title="/etc/ha.d/haresources" style="background-color: rgb(255, 255,
255);">/etc/ha.d/haresources<br /></span><span title="inga xendomains::buriti.cfg
xendomains::jatoba.cfg xendomains::mangaba.cfg xendomains::cagaita.cfg
xendomains::tigui.cfg xendomains::deladeiro.cfg xendomains::babacu.cfg">servidor1
xendomains::buriti.cfg xendomains:</span></span>:<span class="long_text"
id="result_box"><span title="inga xendomains::buriti.cfg xendomains::jatoba.cfg
xendomains::mangaba.cfg xendomains::cagaita.cfg xendomains::tigui.cfg
xendomains::deladeiro.cfg xendomains::babacu.cfg">jatoba.cfg xendomains::mangaba.cfg
xendomains::cagaita.cfg xendomains::tigui.cfg xendomains::deladeiro.cfg
xendomains::babacu.cfg<br /><br /></span><span title="/etc/ha.d/resource.d/xendomains"
style="background-color: rgb(255, 255, 255);">/etc/ha.d/resource.d/xendomains<br
/></span><span title="#!/bin/bash" style="background-color: rgb(255, 255, 255);"># / Bin
/ bash<br /></span><span title="XM="/usr/sbin/xm"">XM = "/ usr / sbin /
xm"<br /></span><span title="CONFPATH="/home/vm/"">CONFPATH = "/
home / vm /"<br /></span><span title="RES="$1"">RES = "$ 1"<br
/></span><span title="CMD="$2"" style="background-color: rgb(255, 255,
255);">CMD = "$ 2"<br /></span><span title="NOME_BASE=`basename $RES
.cfg`">NOME_BASE = `basename $ res. Cfg`<br /></span><span
title="isrunning=false">IsRunning = false<br /></span><span title="case "$CMD"
in">case "$ CMD" in<br /> </span><span title="start)"
style="background-color: rgb(255, 255, 255);">start)<br
/> </span><span title="$XM create -f
$CONFPATH$RES">XM create-f $ $ $ CONFPATH RES<br
/> </span><span title=";;">;;<br
/> </span><span title="stop)">stop)<br /></span><span title="#
exec $XM destroy $NOME_BASE" style="background-color: rgb(255, 255,
255);"> </span><span title="exec $XM
shutdown --halt --wait $NOME_BASE">XM exec $ shutdown - halt - wait $ NOME_BASE<br
/> </span><span title=";;">;;<br
/> </span><span title="status)" style="background-color: rgb(255,
255, 255);">status)<br /> </span><span
title="$XM list | awk '{print $1}' | grep $RES > /dev/null">$ XM list | awk '{print $
1}' | grep $ res> / dev / null<br
/> </span><span title="if [ $?">if [$?
</span><span title="-eq 0 ]">-Eq 0]<br
/> </span><span title="then"
style="background-color: rgb(255, 255, 255);">then<br
/> </span><span
title="echo running">echo running<br
/> </span><span title="else">else<br
/> </span><span
title="echo stopped" style="background-color: rgb(255, 255, 255);">echo stopped<br
/> </span><span title="fi">fi<br
/> </span><span title=";;">;;<br
/> </span><span title="*)">*)<br
/> </span><span title="echo "Usage:
xendomain [filename] {start|stop|status}"">echo "Usage: xendomain [filename]
{start | stop | status}"<br
/> </span><span title="exit 1"
style="background-color: rgb(255, 255, 255);">exit 1<br
/> </span><span title=";;">;;<br
/></span><span title="esac">esac<br /><br /></span><span title="exit 0">exit 0<br /><br
/><br /><br /><br /></span><span title="I'm guessing you're using Google translate
because the English is a bit">I'm guessing you're using Google because the translation
is a bit Inglês<br /></span><span title="flaky.">flaky.<br /><br /></span><span
title="Anyway, I gather you have a VG on top of DRBD." style="background-color: rgb(255,
255, 255);">Anyway, I gather you Have the VG on top of DRBD. </span><span title="What
should happen is" style="background-color: rgb(255, 255, 255);">What should Happen is<br
/></span><span title="that your DomU cfg indeed points to the LV in the VG, and that
Heartbeat" style="background-color: rgb(255, 255, 255);">Indeed That your DomU config
points to the LV in the VG, and That Heartbeat<br /></span><span title="activates it
after making the DRBD resource primary." style="background-color: rgb(255, 255,
255);">ACTIVATES it after making the primary DRBD resource. </span><span title="Mind
you, this">Mind you, this<br /></span><span title="setup does not allow for live
migration." style="background-color: rgb(255, 255, 255);">setup does not allow for live
migration.<br /></span></span><br /><br />> I'm guessing you're using Google
translate because the English is a bit<br />> flaky.<br />> <br />> Anyway, I
gather you have a VG on top of DRBD. What should happen is<br />> that your DomU cfg
indeed points to the LV in the VG, and that Heartbeat<br />> activates it after
making the DRBD resource primary. Mind you, this<br />> setup does not allow for live
migration.<br />> <br />> <br />> On 02/19/11 13:12,
gilmarlinux@agrovale.com.br wrote:<br />>> I understood, but in this my case, I
applied on lvm / dev/drbd0 not use<br />>> the script for the heartbeat drbdisk
Monster to partition, because the<br />>> servers domu.cfg and declared the disc
to be used lvm. example:<br />>> disk = ['phy: / dev/VGxen/debian_buriti.disk1,
xvda1, w', 'phy: /<br />>> dev/VGxen/debian_buriti.disk2, xvda2, w']<br />>>
Did not facilitate this admistração of drbd, because if every time foce<br
/>>> created a VG I would have to reconfigure the drbd.conf.<br />>><br
/>>> Result pvs:<br />>> / # pvs etc/rc2.d<br />>> PV VG Fmt Attr
psize pfree<br />>> / dev/drbd0 VGxen lvm2 a-924.55 g 205.55 g<br />>><br
/>>><br />>> Part of drbd.conf<br />>> servidor1 on {<br />>>
device / dev/drbd0;<br />>> disk / dev/sda7;<br />>>
10.1.1.50:7788 address;<br />>> meta-disk internal;<br />>><br
/>>> servidor2 on {<br />>> device / dev/drbd0;<br />>>
disk / dev/sda7;<br />>> 10.1.1.51:7788 address;<br />>> meta-disk
internal;<br />>> }<br />>> }<br />>><br />>>> this is
plain wrong. heartbeat makes the DRBD resource primary and<br />>>> activates
the LVM VG, so it should run before xen(d).<br />>>><br />>>><br
/>>>> On 02/19/11 12:40, gilmarlinux@agrovale.com.br wrote:<br
/>>>>> Yes they are lvm, drbd when he starts running vgchange-a y. for him
when<br />>>>> he runs the vgchange-an, I informed these commands within the
script<br />>>>> drbd startup.<br />>>>> The order of startup
services are first initializes the drbd -> xen -><br />>>>>
heartbeat.<br />>>>><br />>>>>> What's the deal with the
storage for the DomU's? LVM block devices? Are<br />>>>>> the VG
activated first?<br />>>>>><br />>>>>> On 02/19/11 10:52,
gilmarlinux@agrovale.com.br wrote:<br />>>>>>> Hello!<br
/>>>>>>> I am using the solution with drbd + heartbeat xen xen to have
an<br />>>>>>> environment with high availability.<br
/>>>>>>> 2 servers with two primaries where five runs on server1 and 2
domus<br />>>>>>> domus in server2, uses the same block device, but
there is no recording<br />>>>>>> simultaneously in the same VG.<br
/>>>>>>> The problem with that when server2 2 domU, has a fall, after
a few<br />>>>>>> seconds a message appears on server1 and the same
screen and restarted.<br />>>>>>> Below is the message<br
/>>>>>>> Thanks.<br />>>>>>><br
/>>>>>>> [ 302.797651] BUG: soft lockup - CPU#6 stuck for 61s!
[vgchange:3054]<br />>>>>>> [ 302.797713] Modules linked in: bridge
stp xen_evtchn xenfs drbd<br />>>>>>> lru_cache cn loop snd_pcm
snd_timer snd soundcore snd_page_alloc<br />>> psmouse<br
/>>>>>>> joydev evdev serio_raw power_meter dcdbas processor pcspkr
button<br />>>>>>> acpi_processor ext4 mbcache jbd2 crc16 dm_mod
usbhid hid sg sr_mod<br />>> cdrom<br />>>>>>> ata_generic
sd_mod ses usb_storage enclosure crc_t10dif uhci_hcd<br />>>>>>>
ata_piix libata megaraid_sas ehci_hcd usbcore nls_base scsi_mod thermal<br
/>>>>>>> bnx2 thermal_sys [last unloaded: scsi_wait_scan]<br
/>>>>>>> [ 302.799472] CPU 6:<br />>>>>>> [
302.799551] Modules linked in: bridge stp xen_evtchn xenfs drbd<br
/>>>>>>> lru_cache cn loop snd_pcm snd_timer snd soundcore
snd_page_alloc<br />>> psmouse<br />>>>>>> joydev evdev
serio_raw power_meter dcdbas processor pcspkr button<br />>>>>>>
acpi_processor ext4 mbcache jbd2 crc16 dm_mod usbhid hid sg sr_mod<br />>>
cdrom<br />>>>>>> ata_generic sd_mod ses usb_storage enclosure
crc_t10dif uhci_hcd<br />>>>>>> ata_piix libata megaraid_sas ehci_hcd
usbcore nls_base scsi_mod thermal<br />>>>>>> bnx2 thermal_sys [last
unloaded: scsi_wait_scan]<br />>>>>>> [ 302.801304] Pid: 3054, comm:
vgchange Tainted: G D<br />>>>>>> 2.6.32-5-xen-amd64 #1 PowerEdge
T610<br />>>>>>> [ 302.801379] RIP: e030:[<ffffffff8130cb18>]
[<ffffffff8130cb18>]<br />>>>>>> _spin_lock+0x15/0x1b<br
/>>>>>>> [ 302.801491] RSP: e02b:ffff88013de65b10 EFLAGS: 00000297<br
/>>>>>>> [ 302.801546] RAX: 0000000000000049 RBX: ffff88013de65b28
RCX:<br />>>>>>> ffff88013de65b68<br />>>>>>> [
302.801604] RDX: 0000000000000048 RSI: 0000000000000200 RDI:<br
/>>>>>>> ffff88013afa3880<br />>>>>>> [ 302.801662]
RBP: 0000000000000200 R08: 0000000000000008 R09:<br />>>>>>>
ffffffff814eb870<br />>>>>>> [ 302.801720] R10: 000000000000000b R11:
ffffffff811ba945 R12:<br />>>>>>> ffff88013afa3800<br
/>>>>>>> [ 302.801778] R13: 000000000000c580 R14: ffff88013de65b28
R15:<br />>>>>>> ffffffff814eb830<br />>>>>>> [
302.801839] FS: 00007fb85aeee7a0(0000) GS:ffff88000678b000(0000)<br
/>>>>>>> knlGS:0000000000000000<br />>>>>>> [
302.806903] CS: e033 DS: 0000 ES: 0000 CR0: 000000008005003b<br
/>>>>>>> [ 302.806959] CR2: 00000000028f03f8 CR3: 0000000001001000
CR4:<br />>>>>>> 0000000000002660<br />>>>>>> [
302.807017] DR0: 0000000000000000 DR1: 0000000000000000 DR2:<br
/>>>>>>> 0000000000000000<br />>>>>>> [ 302.807075]
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7:<br />>>>>>>
0000000000000400<br />>>>>>> [ 302.807133] Call Trace:<br
/>>>>>>> [ 302.807189] [<ffffffff8100dd87>] ?
xen_exit_mmap+0xf8/0x136<br />>>>>>> [ 302.807245]
[<ffffffff8130cb3a>] ? _spin_unlock_irqrestore+0xd/0xe<br
/>>>>>>> [ 302.807303] [<ffffffff8100922a>] ?
hypercall_page+0x22a/0x1001<br />>>>>>> [ 302.807361]
[<ffffffff810d1208>] ? exit_mmap+0x5a/0x148<br />>>>>>> [
302.807417] [<ffffffff8100ecf2>] ? check_events+0x12/0x20<br
/>>>>>>> [ 302.807475] [<ffffffff811ba945>] ?
vgacon_cursor+0x0/0x140<br />>>>>>> [ 302.807533]
[<ffffffff8104cb09>] ? mmput+0x3c/0xdf<br />>>>>>> [ 302.807588]
[<ffffffff81050702>] ? exit_mm+0x102/0x10d<br />>>>>>> [
302.807644] [<ffffffff8100ec99>] ? xen_irq_enable_direct_end+0x0/0x7<br
/>>>>>>> [ 302.807702] [<ffffffff81052127>] ?
do_exit+0x1f8/0x6c6<br />>>>>>> [ 302.807758]
[<ffffffff8100ecdf>] ? xen_restore_fl_direct_end+0x0/0x1<br
/>>>>>>> [ 302.807816] [<ffffffff8130cb3a>] ?
_spin_unlock_irqrestore+0xd/0xe<br />>>>>>> [ 302.807873]
[<ffffffff8104f3af>] ? release_console_sem+0x17e/0x1af<br
/>>>>>>> [ 302.807931] [<ffffffff8130d9dd>] ?
oops_end+0xaf/0xb4<br />>>>>>> [ 302.807988]
[<ffffffff810135f0>] ? do_invalid_op+0x8b/0x95<br />>>>>>> [
302.808045] [<ffffffff8100c694>] ? pin_pagetable_pfn+0x2d/0x36<br
/>>>>>>> [ 302.808105] [<ffffffffa01079ea>] ?
copy_params+0x71/0xb1 [dm_mod]<br />>>>>>> [ 302.808164]
[<ffffffff810baf07>] ? __alloc_pages_nodemask+0x11c/0x5f5<br
/>>>>>>> [ 302.808222] [<ffffffff8101293b>] ?
invalid_op+0x1b/0x20<br />>>>>>> [ 302.808278]
[<ffffffff8100c694>] ? pin_pagetable_pfn+0x2d/0x36<br />>>>>>> [
302.808335] [<ffffffff8100c690>] ? pin_pagetable_pfn+0x29/0x36<br
/>>>>>>> [ 302.808392] [<ffffffff810cd4e2>] ?
__pte_alloc+0x6b/0xc6<br />>>>>>> [ 302.808449]
[<ffffffff810cb394>] ? pmd_alloc+0x28/0x5b<br />>>>>>> [
302.808505] [<ffffffff810cd60b>] ? handle_mm_fault+0xce/0x80f<br
/>>>>>>> [ 302.808561] [<ffffffff810d2bcc>] ?
do_brk+0x227/0x301<br />>>>>>> [ 302.808619]
[<ffffffff8130f016>] ? do_page_fault+0x2e0/0x2fc<br />>>>>>> [
302.808675] [<ffffffff8130ceb5>] ? page_fault+0x25/0x30<br
/>>>>>>><br />>>>>>><br
/>>>>>>><br />>>>>>>
_______________________________________________<br />>>>>>> drbd-user
mailing list<br />>>>>>> drbd-user@lists.linbit.com<br
/>>>>>>> http://lists.linbit.com/mailman/listinfo/drbd-user<br
/>>>>>><br />>>><br />> <br /></p>