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

TOPIC:

HA per vm not working 10 years 5 months ago #144

  • pielala
  • pielala's Avatar Topic Author
  • Offline
  • Posts: 14
Hello,

ha-lizard is not starting up my VM.
Details:
GLOBAL_VM_HA 0
OP_MODE 2
Pool field ha-lizard-enable set to "true"
VM field ha-lizard-enable set to "true"

When "GLOBAL_VM_HA 1" HA works as expected and any VM that is down is started, but I want to be able to choose which VM should be HA.

Pointers?

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

HA per vm not working 10 years 5 months ago #145

Can you post the output of:
ha-cfg get-vm-ha
ha-cdg get

We verified that the logic is working correctly for us on our development environment running version 1.7.2

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

HA per vm not working 10 years 5 months ago #146

  • pielala
  • pielala's Avatar Topic Author
  • Offline
  • Posts: 14
Sure,

[root@xenserver-1707 ~]# ha-cfg get
DISABLED_VAPPS=() FENCE_IPADDRESS= MAIL_FROM=ROOT@XENSERVERS OP_MODE=2
ENABLE_LOGGING=1 FENCE_METHOD=POOL MAIL_ON=1 PROMOTE_SLAVE=1
FENCE_ACTION=stop FENCE_MIN_HOSTS=2 MAIL_SUBJECT="SYSTEM_ALERT-FROM_HOST:$HOSTNAME" SLAVE_HA=1
FENCE_ENABLED=1 FENCE_PASSWD= MAIL_TO=root SLAVE_VM_STAT=0
FENCE_FILE_LOC=/etc/ha-lizard/fence FENCE_QUORUM_REQUIRED=1 MONITOR_DELAY=15 XAPI_COUNT=2
FENCE_HA_ONFAIL=1 FENCE_REBOOT_LONE_HOST=0 MONITOR_KILLALL=1 XAPI_DELAY=10
FENCE_HEURISTICS_IPS=8.8.8.8 FENCE_USE_IP_HEURISTICS=1 MONITOR_MAX_STARTS=20 XC_FIELD_NAME='ha-lizard-enabled'
FENCE_HOST_FORGET=0 GLOBAL_VM_HA=0 MONITOR_SCANRATE=10 XE_TIMEOUT=10


[root@xenserver-1707 ~]# ha-cfg get-vm-ha
Retreiving data.. please wait
Pool OP_MODE is set to 2 - all VMs that require HA should have HA enabled.
Use [ha-cfg set-vm-ha ] to set HA status on VMs.

HA-Enabled VM-UUID VM-Name
true b6ff409d-7607-5034-9651-9d3ea89113e1 CentOS6 64bit HVM-PV Template (1)

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

HA per vm not working 10 years 5 months ago #147

Please check the spelling of the custom field that you added to xencenter making sure it is set to:

"ha-lizard-enabled" and not "ha-lizard-enable"
This field should exactly match ha-lizard setting "XC_FIELD_NAME"
You can also test this by watching the field within XenCenter (either at the pool level or VM level) and change the setting from the CLI. You should see it change immediately in XenCenter if the fields are linked correctly.

Post the results here. If this does not solve your issue, a log file would be helpful too.

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

HA per vm not working 10 years 5 months ago #148

  • pielala
  • pielala's Avatar Topic Author
  • Offline
  • Posts: 14
Hi,

Thanks, the typo was only in my message to you, in reality the custom field name is identical with XC_FIELD_NAME.
I have changed it however with `ha-cfg set XC_FIELD_NAME ha-lizard-enable`, but in Xencenter I see the old name: ha-lizard-enabled.

In the logs I see this:
NOTICE-/etc/ha-lizard/ha-lizard.sh: Error: Key XenCenter.CustomFields.ha-lizard-enabled not found in map

If I set the XC_FIELD_NAME to ha-lizard-enabled the error is still present.

How can I make sure they are "linked"?

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

HA per vm not working 10 years 5 months ago #149

  • pielala
  • pielala's Avatar Topic Author
  • Offline
  • Posts: 14
I think I got it, I did not have the ha-lizard-enabled field set to anything for the POOL. I set it to true and it works fine now.

Sorry for wasting your time!

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

  • Page:
  • 1
  • 2