Forum
Welcome, Guest
Username: Password: Remember me
This is the optional category header for the Suggestion Box.
  • Page:
  • 1

TOPIC:

HA Lizard without automatic power-on machines 7 years 3 months ago #1067

  • David Ramirez
  • David Ramirez's Avatar Topic Author
  • Offline
  • Posts: 7
Hi. I have little question.

I used HA lizar with xen7. I'm very happy But I see one detail.

I hace a SAI program to can shutdown server correctly. But with ha-lizard if a VM will be down.. It's power on again in another server o similar server.

And. In this case xen never poweroff and servers don't make a gracefull shutdown.

How can I enable ha-lizard. But VM must pe power on-off manually

Thanks

Please Log in or Create an account to join the conversation.

HA Lizard without automatic power-on machines 7 years 3 months ago #1068

  • Salvatore Costantino
  • Salvatore Costantino's Avatar
  • Offline
  • Posts: 722
We have added 3 additional CLI options in our next release that will allow you to control HA-Lizard from a script prior to shutdown. (should be available in 2 weeks)

<ha-status> Displays HA status as true or false
<ha-enable> Enables pool HA
<ha-disable> Disables pool HA

In the meantime, you can disable HA prior to shutdown with:
xe pool-param-set uuid=$(xe pool-list --minimal) other-config:XenCenter.CustomFields.ha-lizard-enabled=false

You should sleep 30 seconds after running for the change to propagate to all members of the pool.

Please Log in or Create an account to join the conversation.

HA Lizard without automatic power-on machines 7 years 3 months ago #1103

  • David Ramirez
  • David Ramirez's Avatar Topic Author
  • Offline
  • Posts: 7
Thanks. But I only need that machines does not start automatically after an server restart.

Real Scenario with two server:

Sai send power off command, and xen poweroff VM to. But machines staterd again. Finally the server never will down... And does not work a correct poweroff.

How I can disable autostart?


Thanks!

Please Log in or Create an account to join the conversation.

HA Lizard without automatic power-on machines 7 years 3 months ago #1104

  • Salvatore Costantino
  • Salvatore Costantino's Avatar
  • Offline
  • Posts: 722
Before powering off the server, disable HA-Lizard, wait ~30 seconds and then power off.

You can disable halizard 3 ways:
1- from xencenter (if you have exposed the custom parameter as described in the documentation)
2- from the cli "ha-cfg status"
3- from the cli alternate method if your installed version supports it "ha-cfg ha-disable"

Please Log in or Create an account to join the conversation.

HA Lizard without automatic power-on machines 7 years 2 months ago #1112

  • David Ramirez
  • David Ramirez's Avatar Topic Author
  • Offline
  • Posts: 7
Ok. But the problem is if I can`t do it.

I have one scenario with several power supplies fail. And Sai Software sent a power off command with 15 minutes before sai will be empty.

I understand, with HA enabled. Is impossible deactivate autopoweron on VM?

Perhaps... I can insert command on script to do an order shutdown...

Thanks and Happy New year!

Please Log in or Create an account to join the conversation.

HA Lizard without automatic power-on machines 7 years 2 months ago #1113

  • Salvatore Costantino
  • Salvatore Costantino's Avatar
  • Offline
  • Posts: 722
There are a number of ways to prevent a VM from starting. If you cannot run a script prior to the host shutting down there is really no way to prevent your VMs from starting.

Here are some more methods:

Fastest method (immediately prevent any VMs from starting):
"service ha-lizard-watchdog stop && service ha-lizard stop"

Disable HA:
"ha-cfg ha-disable"

Set individually for each VM (must have op_mode=2 and global_vm_ha=0):
ha-cfg set-vm-ha "VM_NAME" false

Please Log in or Create an account to join the conversation.

  • Page:
  • 1