No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

eSight V300R010C00SPC200, 300, and 500 Local HA System Software Installation Guide (SUSE Linux + Oracle + Veritas) 10

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Managing Resources

Managing Resources

Bringing a Resource Online

This operation enables you to bring a resource of the VCS online.

Prerequisites

The resource status is enabled, and all the dependent resources are online.

Procedure

Bringing a resource online

hares -online <resource_name> -sys <hostname>

Run the following commands to check the status of the resource. Perform the subsequent operations only when the resource is in ONLINE state.

hagrp -state <resource_name> -sys <hostname>

Command example:

Bringing a resource online:

hares -online NMSServer -sys Primaster

Check the status of the resource:

hares -state Netlsnr -sys Primaster

Taking a Resource Offline

This operation enables you to take a resource of the VCS offline.

Prerequisites

The dependent resources are offline.

Procedure

Taking a resource offline

hares -offline <resource_name> [-ignoreparent] -sys <hostname> or hares -offprop <resource_name> [-ignoreparent] -sys <hostname>

Run the following commands to check the status of the resource. Perform the subsequent operations only when the resource is in OFFLINE state.

hagrp -state <resource_name> -sys <hostname>

Command example:

Taking a resource offline:

hares -offline NMSServer -sys Primaster

check the status of the resource:

hares -state Netlsnr -sys Primaster

Enabling a Resource

This operation enables you to enable a resource of the VCS.

Procedure

Run the following command to enable a resource:

hares -modify <resource_name> Enabled 1

Command example:
  1. Assign the read/write right to the resource:

    # haconf -makerw

  2. Enable the resource:

    # hares -modify NMSServer Enabled 1

  3. Assign the read-only right to the resource:

    # haconf -dump -makero

Disabling a Resource

This operation enables you to disable a resource of the VCS.

Context

If a resource is disabled, you cannot bring it online.

Procedure

Run the following command to disable a resource:

hares -modify <resource_name> Enabled 0

Command example:
  1. Assign the read/write right to the resource:

    # haconf -makerw

  2. Disable the resource:

    # hares -modify NMSServer Enabled 0

  3. Assign the read-only right to the resource:

    # haconf -dump -makero

Detecting Resources

This operation enables you to detect the resource status of the VCS.

Context

You can detect resources to check whether the resources are configured and started in the VCS.

Procedure

Run the following command to detect a resource:

hares -probe <resource_name> -sys <hostname>

Command example:

hares -probe NMSServer -sys Primaster

Clearing a Resource Fault Flag

This operation enables you to clear a resource fault flag of the VCS.

Procedure

Run the following command to clear a resource fault flag:

hares -clear <resource_name> [-sys hostname]

Command example:

hares -clear NMSServer

Clearing the Current Operation

When you perform the online or offline operation on a resource group, all the resources in the resource group are taken online or offline. This topic describes how to clear the current operation if the operation needs to be stopped on a resource.

Procedure

Run the following command to clear the current operation:

hagrp -flush <service_group_name> -sys <hostname>

Command example:

hagrp -flush AppService -sys iEMP191

Checking the HA System Resource Status

If an HA system resource is in the Faulted state, the Faulted label must be removed immediately; otherwise, the switchover of the primary and secondary servers will be abnormal.

Context

The cause of a faulty resource may be an eSight or database process abnormality.

Procedure

Run the following command to check the HA system resource status:

hares -state

Translation
Download
Updated: 2019-10-30

Document ID: EDOC1100044372

Views: 33184

Downloads: 26

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next