Got it

GaussDB Process on the Standby OMS Is Abnormal and the Build Operation Fails

136 0 0 0 0


Hello everyone, 

I believe you can learn how to deal with GaussDB Process on the Standby OMS Is Abnormal and the Build Operation Fails from my case.


[Applicable Versions]

6.5.x

[Symptom]

  1. On FusionInsight Manager, ALM-12002 HA Resource Abnormal is reported.

  2. Check on the OMS status indicates that the status of the GaussDB process on the standby OMS is abnormal. Specifically, ResStatus is always Repairing, indicating that the build operation is being performed.

en-us_image_0228277319.png

   3. Log in to the standby OMS node as user ommdba, and run the gs_ctl querybuild command. The command output indicates that the build operation starts from 0% again when the progress does not reach 100%.

en-us_image_0228277320.png

[Impact and Severity]

There is no adverse impact on services.

[Estimated Restoration Time]

60 min

[Prerequisites]

Prepare the following items before the restoration.

Table 1 Items to be prepared before the restoration

Item

Operation

Cluster account information

Apply for the password of cluster user admin.

Node account information

Apply for the passwords of users omm and ommdba of cluster nodes.

Secure Shell (SSH) remote login tool

Prepare tools such as PuTTY or SecureCRT.

Except the GaussDB process on the standby OMS, other processes of the OMS nodes are normal.

[Fault Handling]

The build operation is to synchronize data from the active GaussDB to the standby GaussDB and load the data. Due to the synchronization timeout, the HA considers that the synchronization fails and performs the synchronization again. To resolve this problem, perform manual synchronization.

[Solution]

  1. Stop the standby OMS.


    Log in to the standby OMS node as user omm and run the following command:

    sh /opt/huawei/Bigdata/om-0.0.1/sbin/stop-oms.sh


  2. Stop the active OMS.


    Log in to the active OMS node as user omm and run the following command:

    sh /opt/huawei/Bigdata/om-0.0.1/sbin/stop-oms.sh


  3. Package data on the active OMS.


    Log in to the active OMS node as user ommdba and run the following command in the /srv/BigData/dbdata_om directory:

    tar -zcf db.tar.gz db/

    Generate the db.tar.gz file.


  4. Copy the db.tar.gz file to the /srv/BigData/dbdata_om directory on the standby OMS node.


    Log in to the standby OMS node as user ommdba, go to the /srv/BigData/dbdata_om directory, and run the following commands:

    mv db db_bak

    tar -zxf db.tar.gz


  5. Ensure that the permission on folders in the /srv/BigData/dbdata_om/db directory and its lower-level directories on the standby node is 700, the permission on corresponding files is 600, and the user and owner group are ommdba:wheel.

  6. Go to the /srv/BigData/dbdata_om/db directory and change the value of replconninfo1 in the postgresql.conf file.


    en-us_image_0228277323.png

    In the value, localhost indicates the local IP address, and remotehost indicates the IP address of the peer OMS node.


  7. Start the active OMS.


    Log in to the active OMS node as user omm and run the following command:

    sh /opt/huawei/Bigdata/om-0.0.1/sbin/start-oms.sh


  8. Start the standby OMS.


    Log in to the standby OMS node as user omm and run the following command:

    sh /opt/huawei/Bigdata/om-0.0.1/sbin/start-oms.sh

    notice_3.0-en-us.png

    One minute after the active OMS starts, start the standby OMS.


[Verification]

  1. The alarm is cleared.

  2. The status of the GaussDB processes on the active and standby OMS nodes is Normal.



Hope you can learn from it, thank you!


Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.