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


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


FusionStorage V100R006C10 File Storage Service Software Installation Guide 06

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).
Restoring a Storage Node to Factory Defaults Using a Script

Restoring a Storage Node to Factory Defaults Using a Script


This operation will delete all data, stop all service, and restore the storage node to factory defaults. The software that you have deployed and all configurations will be cleared after this operation is performed. Make sure that you want to continue this operation. If this operation is performed by mistake, do not perform further operations and contact Huawei technical support engineers.


Table 8-1 lists the items that will be restored to their factory defaults.

Table 8-1  Items that will be restored to factory defaults


Mandatory or Not


Uninstalling storage cluster software


Uninstall storage cluster software from a storage node.

Clearing network configuration


Except the IP address and gateway of the Mgmt port, clear network configurations of all ports, including IP addresses, default gateways, bonds, and routes.

If the installation fails, you need to reinstall the software. Before the reinstallation, you are advised to clear network configurations.

Clearing cluster ID(ESN)




  1. Log in to a storage node.

    • When you log in to the storage node using the KVM locally, see section Logging In to the Storage Node Using the KVM in the appendix.
    • When you log in to the storage node using PuTTY remotely, see section Remotely Logging In to a Storage Node Using PuTTY in the appendix. You need to use the cluster management IP address to log in to management nodes, and then use the back-end storage network IP address to log in to non-management nodes. Clear the non-management node environments and then the management node environments. If you clear the management node environments first, the cluster management IP address may be unavailable and cannot be used to log in to non-management nodes.

  2. Run the cd /opt/product/deploy/script and sh commands.

    Enter the verification code as prompted to confirm permissions and select whether to clear network settings, and to clear the cluster ID. After the storage node is restored to factory defaults, wait five minutes until the system restarts.

    The default verification code is Clean@storage. Run the sh /opt/product/deploy/script/ chVerification_Code command to change the verification code.


    You must change the default verification code upon delivery of the system to reduce potential security risks. You are advised to periodically change the password.

    L05-F02-Node9:/home # /opt/product/deploy/script/
    L05-F02-Node9:/opt/product/deploy/script # sh
    2016-05-05 10:25:18 excute
    cat: /opt/huawei/snas/etc/snas.ini: No such file or directory
    cat: /opt/huawei/snas/etc/snas.ini: No such file or directory
    /opt/huawei/deploy/script/ line 97: /opt/huawei/snas/bin/snas_cm_cmd: No such file or directory
    /opt/huawei/deploy/script/ line 98: /opt/huawei/snas/bin/snas_cm_cmd: No such file or directory
    2017-03-07 17:03:53 -------------------------------------------
    2017-03-07 17:03:53 cluster_id : < >
    2017-03-07 17:03:53 cluster_name : < >
    2017-03-07 17:03:53 total_capacity : < >
    2017-03-07 17:03:53 available _capacity : < >
    2017-03-07 17:03:53 local node is in the cluster: < NO >
    2017-03-07 17:03:53 -------------------------------------------
    Warning: Please check the cluster information carefully.
    Do you want to continue?(yes/y, or no/n):y
    2017-03-07 17:03:55 WARNING : Start exec clean!!!
    2017-03-07 17:03:55 user : < root pts/0 Mar 7 01:03 ( >
    2017-03-07 17:03:55 Father : < -bash >
    2017-03-07 17:03:55 GrandFather : < sshd: root@pts/ >
    2017-03-07 17:03:55 SuperFather : < /usr/sbin/sshd-oPidFile=/var/run/ >
    2017-03-07 17:03:55 Cmd RunPath : < /var/log >
    2017-03-07 17:03:55 Cmd action : < >
    chmod: cannot access `/opt/huawei/snas/etc/*.db': No such file or directory
    chmod: cannot access `/opt/huawei/snas/etc/*.pem': No such file or directory
    cat: /opt/huawei/deploy/package/version: No such file or directory
    cat: /opt/huawei/deploy/package/version: No such file or directory
    Warning: This operation will initialize the machine,
    which means all data in the machine may be lost.
    Do you want to continue?(yes/y, or no/n):yes
    Enter Verification Code: ******                       //Default verification code
    Do you want to reset network?(yes/y, or no/n):y      //Whether to clean network configurations
    Do you want to clean clusterID?(yes/y, or no/n):n    //Whether to clean the cluster ID(ESN)
    2016-05-05 10:25:34 excute /opt/product/deploy/script/
    Start to clean clusterID, please wait...
    root 101186 0.0 0.0 202600 4200 ? Sl Apr29 5:17 /opt/product/deploy/bin/snas_deploy
    2016-05-05 10:25:34 kill the process snas_deploy, ret: 0 , retry left Num: 5
    L05-F02-Node9:/home # 2016-05-05 10:25:37 the process is not exist
    clean ntp.......
    clean ntp finished.
    ...                                               //The uninstallation process is performed automatically. Due to limited space, some steps are not displayed here
    2016-05-05 10:26:46 system will restart now!!

  3. Re-log in to the storage node and run the sh /opt/product/deploy/script/ commands to confirm the operation has been successfully executed.


    If you use PuTTY to log in to a storage node remotely, after the environment is cleared, you will be automatically logged out and cannot use this command for authentication.

Updated: 2019-03-28

Document ID: EDOC1000175257

Views: 8748

Downloads: 3

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