[sles-beta] Creating XEN VM files to use with HA cluster

Darren Thompson darrent at akurit.com.au
Sun Jun 1 21:41:40 MDT 2014


Team

A good day (I have XEN live migration working in a SLES12 HA cluster).

Nothing tels it like a raw log output:

2014-06-02T13:29:22.065250+10:00 node2 crmd[1824]:   notice:
te_rsc_command: Initiating action 32: migrate_to
VM-sles12_migrate_to_0 on node2 (local)
2014-06-02T13:29:22.774946+10:00 node2
VirtualDomain(VM-sles12)[10318]: INFO: sles12: Starting live migration
to node1 (using remote hypervisor URI xen+tcp://node1/ ).
2014-06-02T13:29:47.058146+10:00 node2
VirtualDomain(VM-sles12)[10318]: INFO: sles12: live migration to node1
succeeded.
2014-06-02T13:29:47.071165+10:00 node2 lrmd[1821]:   notice:
operation_finished: VM-sles12_migrate_to_0:10318:stderr [ 2014-06-02
03:29:47.035+0000: 10360: info : libvirt version: 1.2.4 ]
2014-06-02T13:29:47.072310+10:00 node2 lrmd[1821]:   notice:
operation_finished: VM-sles12_migrate_to_0:10318:stderr [ 2014-06-02
03:29:47.035+0000: 10360: warning : virDomainMigrateVersion3Full:4993
: Guest sles12 probably left in 'paused' state on source ]
2014-06-02T13:29:47.073332+10:00 node2 crmd[1824]:   notice:
process_lrm_event: LRM operation VM-sles12_migrate_to_0 (call=82,
rc=0, cib-update=267, confirmed=true) ok
2014-06-02T13:29:47.082142+10:00 node2 crmd[1824]:   notice:
te_rsc_command: Initiating action 33: migrate_from
VM-sles12_migrate_from_0 on node1
2014-06-02T13:29:47.975935+10:00 node2 crmd[1824]:   notice:
te_rsc_command: Initiating action 29: stop VM-sles12_stop_0 on node2
(local)
2014-06-02T13:29:48.679317+10:00 node2
VirtualDomain(VM-sles12)[10524]: INFO: Domain sles12 already stopped.
2014-06-02T13:29:48.694079+10:00 node2 crmd[1824]:   notice:
process_lrm_event: LRM operation VM-sles12_stop_0 (call=83, rc=0,
cib-update=268, confirmed=true) ok
2014-06-02T13:29:49.269012+10:00 node1
VirtualDomain(VM-sles12)[10813]: INFO: sles12: live migration from
node2 succeeded.
2014-06-02T13:29:49.281838+10:00 node1 crmd[1621]:   notice:
process_lrm_event: LRM operation VM-sles12_migrate_from_0 (call=77,
rc=0, cib-update=85, confirmed=true) ok
2014-06-02T13:31:05.180010+10:00 node2 crmd[1824]:   notice:
te_rsc_command: Initiating action 32: migrate_to
VM-sles12_migrate_to_0 on node1
2014-06-02T13:31:06.941294+10:00 node1
VirtualDomain(VM-sles12)[13060]: INFO: sles12: Starting live migration
to node2 (using remote hypervisor URI xen+tcp://node2/ ).
2014-06-02T13:31:25.198502+10:00 node2 crmd[1824]:   notice:
te_rsc_command: Initiating action 33: migrate_from
VM-sles12_migrate_from_0 on node2 (local)
2014-06-02T13:31:25.745563+10:00 node2
VirtualDomain(VM-sles12)[11467]: INFO: sles12: live migration from
node1 succeeded.
2014-06-02T13:31:25.760436+10:00 node2 crmd[1824]:   notice:
process_lrm_event: LRM operation VM-sles12_migrate_from_0 (call=84,
rc=0, cib-update=271, confirmed=true) ok
2014-06-02T13:31:25.771805+10:00 node2 crmd[1824]:   notice:
te_rsc_command: Initiating action 29: stop VM-sles12_stop_0 on node1
2014-06-02T13:31:26.552432+10:00 node1
VirtualDomain(VM-sles12)[13060]: INFO: sles12: live migration to node2
succeeded.
2014-06-02T13:31:26.570635+10:00 node1 crmd[1621]:   notice:
process_lrm_event: LRM operation VM-sles12_migrate_to_0 (call=80,
rc=0, cib-update=87, confirmed=true) ok
2014-06-02T13:31:27.415782+10:00 node1
VirtualDomain(VM-sles12)[13231]: INFO: Domain sles12 already stopped.
2014-06-02T13:31:27.429105+10:00 node1 crmd[1621]:   notice:
process_lrm_event: LRM operation VM-sles12_stop_0 (call=81, rc=0,
cib-update=88,

If anyone is intersted in doing the same, post a mail to these lists
and I will publish my working config exampes.

Darren






On 2 June 2014 12:08, Darren Thompson <darrent at akurit.com.au> wrote:

> Team
>
> OK I now have managed to create a cluster XEN VM (using a OCFS2 shared
> file-system and the notes from my previous correspondence).
>
> It looks like the 'live migration/relocation' function is now managed by
> 'lib-virt' and not xend (there is no xend-config.sxp file for example).
>
> Is there any notes on the configuration steps required for 'live
> migration/relocation' now, the YAST2 'relocation server' module does not
> seem to do anything and it's setting do not "stick".
>
> Darren
>
>
>
> On 2 June 2014 10:54, Darren Thompson <darrent at akurit.com.au> wrote:
>
>> Team
>>
>> Found it, old dog needs to learn some new tricks ;-)
>>
>> "# virsh dumpxml *GuestID* > *guest.xml"*
>>
>> From:
>> https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Administration_Guide/form-Virtualization-Managing_guests_with_virsh-Creating_a_virtual_machine_XML_dump_configuration_file.html
>> (Is there updated SLES12 documentation on this yet)
>>
>> Also, the original Xen OCF cluster resource cannot be used as it's hard
>> coded to "xm" which is depreciated.
>>
>> There is a new 'VirtualDomain' OCF file which is used for clustering
>> 'lib-virt' compatible VM's (which seems to support Xen, KVM etc).
>>
>> Darren
>>
>>
>> On 31 May 2014 15:58, Darren Thompson <darrent at akurit.com.au> wrote:
>>
>>> Team
>>>
>>> I must be missing something obvious, but how do you get the VM config
>>> files for HA
>>>
>>> In SLES11+ the VM create tool created the configuration file or you
>>> could run "xm list {vmname} -l <= That;s from memory and my not be correct
>>> syntax.
>>>
>>> I have created a VM using the new virt-manager but it does not seem to
>>> have created a config file.
>>>
>>> The xl list command does not seem to "find" the VM when it's running and
>>> does not list it at all when stopped (I can only start it from virt-manager
>>> itself).
>>>
>>> Any hints/tips appreciated as I'm sure that I'm missing something that
>>> should be obvious.
>>>
>>> Darren
>>>
>>>
>>> --
>>>
>>> Darren Thompson
>>>
>>> Professional Services Engineer / Consultant
>>>
>>>  *[image: cid:image001.jpg at 01CB7C0C.6C6A2AE0]*
>>>
>>> Level 3, 60 City Road
>>>
>>> Southgate, VIC 3006
>>>
>>> Mb: 0400 640 414
>>>
>>> Mail: darrent at akurit.com.au <steve at akurit.com.au>
>>> Web: www.akurit.com.au
>>>
>>
>>
>>
>> --
>>
>> Darren Thompson
>>
>> Professional Services Engineer / Consultant
>>
>>  *[image: cid:image001.jpg at 01CB7C0C.6C6A2AE0]*
>>
>> Level 3, 60 City Road
>>
>> Southgate, VIC 3006
>>
>> Mb: 0400 640 414
>>
>> Mail: darrent at akurit.com.au <steve at akurit.com.au>
>> Web: www.akurit.com.au
>>
>
>
>
> --
>
> Darren Thompson
>
> Professional Services Engineer / Consultant
>
>  *[image: cid:image001.jpg at 01CB7C0C.6C6A2AE0]*
>
> Level 3, 60 City Road
>
> Southgate, VIC 3006
>
> Mb: 0400 640 414
>
> Mail: darrent at akurit.com.au <steve at akurit.com.au>
> Web: www.akurit.com.au
>



-- 

Darren Thompson

Professional Services Engineer / Consultant

 *[image: cid:image001.jpg at 01CB7C0C.6C6A2AE0]*

Level 3, 60 City Road

Southgate, VIC 3006

Mb: 0400 640 414

Mail: darrent at akurit.com.au <steve at akurit.com.au>
Web: www.akurit.com.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.suse.com/mailman/private/sles-beta/attachments/20140602/6c1b4bff/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 3692 bytes
Desc: not available
URL: <http://lists.suse.com/mailman/private/sles-beta/attachments/20140602/6c1b4bff/attachment.jpg>


More information about the sles-beta mailing list