[one-users] Automatic recover from hardware failure
Johan Kooijman
mail at johankooijman.com
Thu Aug 14 08:28:44 PDT 2014
Carlos,
Thanks for the reply. When I put that hook into oned, I get this:
oneadmin at admin:~$ /var/lib/one/remotes//hooks/ft/host_error.rb 0 -r -p 2
/var/lib/one/remotes//hooks/ft/host_error.rb:97:in `<main>': undefined
method `each' for #<String:0x00000001e02148> (NoMethodError)
Something wrong on my end? Sounds like a coding thingy?
HOST_HOOK = [
name = "error",
on = "ERROR",
command = "ft/host_error.rb",
arguments = "$HID -r -p 2",
remote = "no" ]
ONE 4.8 on Ubuntu 14.04.
On Thu, Aug 14, 2014 at 4:20 PM, Carlos Martín Sánchez <
cmartin at opennebula.org> wrote:
> Hi,
>
> On Thu, Aug 14, 2014 at 1:07 PM, Johan Kooijman <mail at johankooijman.com>
> wrote:
>
>> Hi all,
>>
>> I'm almost finished setting up the POC for ONE so far. One last piece I
>> can't really figure out is how to recreate VM's on a different host in case
>> a host fails, like hardware off the grid.
>> How would I do such a thing?
>>
>
> You can enable the fault tolerance hook in oned.conf [1]. This hook will
> perform the onevm delete --recreate action on the VMs of the failed host.
> To avoid false positives because of network connectivity issues, use the -p
> flag of the hook.
>
> The delete-recreate action will create a new VM from the original
> template. This means that the VM will have a new ID, IP, and clean disks.
> We are working on a new mechanism for hosts with shared storage, to
> "migrate" the failed VM to a new host keeping the current IPs, disk state,
> etc.
>
> Regards
>
> [1]
> http://docs.opennebula.org/4.8/advanced_administration/high_availability/ftguide.html
>
> --
> Carlos Martín, MSc
> Project Engineer
> OpenNebula - Flexible Enterprise Cloud Made Simple
> www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org
> | @OpenNebula <http://twitter.com/opennebula> <cmartin at opennebula.org>
>
>
>
--
Met vriendelijke groeten / With kind regards,
Johan Kooijman
T +31(0) 6 43 44 45 27
E mail at johankooijman.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140814/191109e2/attachment.htm>
More information about the Users
mailing list