Enabling the VM Watchdog
When the disk array of the VM where eSight is installed is intermittently disconnected, you need to use the watchdog to trigger the operating system restart.
Procedure
- Use PuTTY, log in to the first node in the FusionSphere system. Ensure that the reverse proxy IP address and username fsp are used to establish the connection. Run the following command to switch to the root user:
$ su - root
- Configure the system environment.
- Run the following command to disable the timeout limit:
# TMOUT=0
- Run the following command to load environment variables:
# source set_env
please choose environment variable which you want to import: (1) openstack environment variable (keystone v3) (2) cps environment variable (3) openstack environment variable legacy (keystone v2) (4) openstack environment variable of cloud_admin (keystone v3)please choose:[1|2|3|4]
Select 1, enter the password of OS_USERNAME as prompted, and press Enter.
The default password of the OS_USERNAME user is FusionSphere123.
If the nova list displayed on the page contains VM list information, the environment variables are imported successfully.
nova list +--------------------------------------+-----------+---------+---------+------------+---------------------------------------------- | ID | Name | Status |Task State| Power State| Networks| | 4e724b66-aecb-4717-9ade-3521b94e949b | B036en-52 | ACTIVE | - | Running | internal_base=172.28.12.52; external_om=10.9.0.52; external_api=10.137.97.52 | | d11ba923-ef34-405b-9ad5-9d97c3014bb2 | B036en-58 | ACTIVE | - | Running | internal_base=172.28.12.58; external_om=10.9.0.53; external_api=10.137.97.58 |
- Run the following command to disable the timeout limit:
- Obtain and record the IDs of the VMs corresponding to the active and standby eSight servers.
# nova list --all-tenants
Obtain the information about the VMs corresponding to the active and standby eSight servers based on the eSight VM names and record the VM IDs.
| ID | Name | Tenant ID | Status | Task State | Power State | Networks| +--------------------------------------+----------+----------------------------------+--------+------------ |c250645f-7a2f-41ec-9882-947c88f9eb88 | eSight01 | d59efd1ce87349638cf0f7b1cf1eb88e | ACTIVE | - | Running | internal_base=172.28.12.52; external_om=10.9.0.52; external_api=10.137.97.52 | |31159195-a553-43ed-b2a4-6092620249e4 | eSight02 | d59efd1ce87349638cf0f7b1cf1eb88e | ACTIVE | - | Running | internal_base=172.28.12.58; external_om=10.9.0.53; external_api=10.137.97.58 |
- Run the following command to enable the VM watchdog and restart the VM:
# nova meta id set __instance_vwatchdog=True
# nova reboot --hard id
In the command, id indicates the ID of the eSight VM. Change it to the VM ID corresponding to the active and standby eSight servers obtained in 3.
- Check whether the software watchdog is enabled successfully.
# nova show id
In the command, id indicates the ID of the eSight VM. Change it to the VM ID corresponding to the active and standby eSight servers obtained in 3.
If the value of __instance_vwatchdog is True in the command output, the watchdog is enabled successfully. Otherwise, contact Huawei technical support.
+--------------------------------------+----------------------------------------------------------------+ | Property | Value | +--------------------------------------+----------------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | az-1.dc-1 | | OS-EXT-SRV-ATTR:host | 5631BBFB-3C64-E711-BFC4-F44C7F1D970A | | OS-EXT-SRV-ATTR:hostname | vm-make-image-en | | OS-EXT-SRV-ATTR:hypervisor_hostname | 5631BBFB-3C64-E711-BFC4-F44C7F1D970A | | OS-EXT-SRV-ATTR:instance_name | instance-0000015a | | OS-EXT-SRV-ATTR:kernel_id | | | OS-EXT-SRV-ATTR:launch_index | 0 | | OS-EXT-SRV-ATTR:ramdisk_id | | | OS-EXT-SRV-ATTR:reservation_id | r-kc3lt209 | | OS-EXT-SRV-ATTR:root_device_name | /dev/hda | | OS-EXT-SRV-ATTR:user_data | - | | OS-EXT-STS:power_state | 4 | | OS-EXT-STS:task_state | - | | OS-EXT-STS:vm_state | stopped | | OS-SRV-USG:launched_at | 2017-12-05T10:05:16.000000 | | OS-SRV-USG:terminated_at | - | | accessIPv4 | | | accessIPv6 | | | config_drive | | | created | 2017-12-05T09:59:29Z | | description | - | | external_api network | 10.137.67.183 | | external_om network | 192.168.122.221 | | flavor | suse12_temp (130) | | hostId | f0f3d85d8368a2a6a97c84dad1f1aaccfc5eb8aadee6b31a68d3ae0a | | host_status | UP | | id | a7f4b635-b22a-421a-b45f-76ee7b635b9c | | image | suse_with_double_en (0d47490d-a4b0-4a34-abbb-af1668d01b95) | | key_name | - | | locked | False | | metadata |{"_bootDev":"hd,cdrom,network","__instance_vwatchdog": "True"} | | name | vm_make_image_en | | os-extended-volumes:volumes_attached | [] | | security_groups | default | | status | SHUTOFF | | tags | [] | | tenant_id | d59efd1ce87349638cf0f7b1cf1eb88e | | updated | 2017-12-06T08:59:35Z | | user_id | 9942a63a2aed495fa23df18d2804012f | +--------------------------------------+----------------------------------------------------------------+