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

FusionStorage V100R006C20 Block Storage Service Troubleshooting Guide 04

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).
Failed to Change the FSA Management IP Address

Failed to Change the FSA Management IP Address

Symptom

A failure message is displayed when the user changes the IP address of the FusionStorage Agent (FSA) node on the FusionStorage Block Self-Maintenance Platform.

Possible Causes

  • Failed to modify the configuration file of the FSA node.
  • Failed to change the IP address of the Operation and Maintenance Management (OMM) component.
  • Failed to change the management IP address in the FusionStorage Manager (FSM) database.

Fault Diagnosis

None

Procedure

    Obtain parameters required for changing the management IP address.

    1. Use PuTTY to log in to the FSM node.

      Ensure that the FSM node floating IP address and username dsware are used to establish the connection.

      If the public and private keys are used to authenticate the login, perform the operations based on Using PuTTY to Log In to a Node in Key Pair Authentication Mode.

      NOTE:
      The default password of user dsware is IaaS@OS-CLOUD9!, and the default password of user root is IaaS@OS-CLOUD8!.

    2. Run the following command and enter the password of user root to switch to user root:

      su - root

    3. Run the following command to obtain parameters required for changing the FSA management IP address:

      grep "/cluster/managerip/modify" /var/log/dsware/manager/log-fsm-audit.log

      Information similar to the following is displayed:

      [2015-09-09 17:57:29,041] [Request] [user=admin] [ip=192.168.40.253] [url=/cluster/managerip/modify; method=POST; msg={"hosts":[{"old_net_addr":"192.168.40.10","new_net_addr":"192.168.40.20"}]}]
      [2015-09-09 17:57:55,040] [Response] [url=/cluster/managerip/modify; resultCode=200; msg={"result":1,"detail":[{"ip":"192.168.40.10","errorCode":66000002,"description":"Failed to enable the Socket channel to the FSA node."}]}]
      

      Table 4-3 describes the parameters contained in the Request message in the command output.

      In the command output, the Response message shows the IP address of the failed node and provides details about the failure.

      NOTE:
      If the command output contains multiple IP address change records, obtain the latest record.
      Table 4-3  Parameters

      Parameter

      Example Value

      Description

      Parameter 1

      old_net_addr=192.168.40.10

      Specifies the old IP address of the FSA node.

      Parameter 2

      new_net_addr=192.168.40.20

      Specifies the new IP address of the FSA node.

    Change the IP address of the host in the database.

    1. Run the following command to switch to user omm:

      su - omm

    2. Run the following command to switch to the database command line interface (CLI):

      gsql -U omm -d omm -p 21600

      You are required to enter the password for logging in to the database. The default password of the database is IaaS@DATABASE-PublicCLOUD9!.

      The omm account will be locked for about 270 seconds in the event of three consecutive incorrect password attempts.

    3. Run the following commands to query the IP address in the OMM data table:

      set search_path=omm_1;

      select * from tbl_swm_serverinfo;

      NOTE:
      If the command output displayed is not complete, you can press the spacebar to view the next page. In addition, you can press q to exit the result view.

    4. Check whether the IP address in the OMM data table is the new management IP address.

      • If yes, go to 9.
      • If no, go to 8.

    5. Run the following command to change the IP address in the OMM database:

      update tbl_swm_serverinfo set SRVIP = 'New management IP address' where SRVIP = 'Old management IP address';

      For example, run the following command: update tbl_swm_serverinfo set SRVIP = '192.168.40.20' where SRVIP = '192.168.40.10';

    6. Run the following commands to query the IP address in the FSM data table:

      set search_path=dsware_1;

      select * from tbl_server_info;

    7. Check whether the IP address in the FSM data table is the new management IP address.

      • If yes, go to 12.
      • If no, go to 11.

    8. Run the following command to change the IP address in the FSM database:

      update tbl_server_info set MANAGEIP = 'New management IP address' where MANAGEIP = 'Old management IP address';

      For example, run the following command: update tbl_server_info set MANAGEIP = '192.168.40.20' where MANAGEIP = '192.168.40.10';

    9. Enter \q to exit the database CLI.
    10. Run the following commands to restart the OMM-related processes:

      restart_app all

      restart_tomcat

    11. Run the following command to log out:

      exit

    Modify the configuration information of an FSA node.

    1. Use PuTTY to log in to the FSA node.

      Ensure that the old management IP address of the FSA node is used to establish the connection.

    2. Run the su - root command to switch to user root.
    3. Check whether the node_manager_ip value in the /etc/node_manager_ip file is the new management IP address.

      • If yes, go to 19.
      • If no, go to 18.

    4. Run the following command to change the value to the new management IP address:

      sed -i "s/node_manager_ip=.*/node_manager_ip=New IP address/" /etc/node_manager_ip

    5. Check whether the LOCALIP value in the /opt/omm/oma/workspace/conf/servercfg.cfg file is the new management IP address.

      • If yes, go to 21.
      • If no, go to 20.

    6. Run the following command to change the value to the new management IP address:

      sed -i "s/LOCALIP=.*/LOCALIP=New IP address/" /opt/omm/oma/workspace/conf/servercfg.cfg

    7. Check whether the LOCALIP value in the /opt/omm/oma/workspace/conf/upda.cfg file is the new management IP address.

      • If yes, go to 23.
      • If no, go to 22.

    8. Run the following command to change the value to the new management IP address:

      sed -i "s/LOCALIP=.*/LOCALIP=New IP address/" /opt/omm/oma/workspace/conf/upda.cfg

    9. Run the following commands to restart FSA and OMA processes:

      sh /opt/dsware/agent/script/dswareAgent_tool.sh restart

      restart_oma_app

      NOTE:
      If the management IP address of the host accommodating the FSA node has not been changed, the processes fail to restart. Therefore, change the management IP address of the host in a timely manner. After the management IP address is changed, the FSA and OMA processes restart automatically.

Related Information

None

Translation
Download
Updated: 2019-02-01

Document ID: EDOC1100016638

Views: 3885

Downloads: 2

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