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

Command Reference 10

OceanStor 18500 V3 and 18800 V3 Mission Critical Storage System V300R003

"Based on the CLI, this document describes how to use various commands classified by functions and how to set the CLI and manage the storage system through these commands. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions."
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).
change service nfs

change service nfs

Function

The change service nfs command is used to modify the configuration of an NFS share.

Format

change service nfs { [ support_v3_enabled=? v3_acl_enabled=? ] [ support_v4_enabled=? v4_domain_name=? ] } *

Parameters

Parameter

Description

Value

support_v3_enabled=? Whether to enable NFSv3.

The value can be "on" and "off", where:

  • "on": the NFSv3 protocol is enabled.
  • "off": the NFSv3 protocol is disabled.
v3_acl_enabled=? Whether to enable NFSv3 ACL.

The value can be "on" and "off", where:

  • "on": the NFSv3 ACL is enabled.
  • "off": the NFSv3 ACL is disabled.
support_v4_enabled=? Whether to enable NFSv4.

The value can be "on" and "off", where:

  • "on": the NFSv4 protocol is enabled.
  • "off": the NFSv4 protocol is disabled.
v4_domain_name=? NFSv4 domain name.

The value ranges from 1 to 64 characters.

Level

Administrator

Usage Guidelines

None.

Example

  • Query NFS share configurations before the modification.

    admin:/>show service nfs
    Support V3 Enabled Support V4 Enabled V4 Domain Name V3 ACL Enabled
    ------------------ ------------------ -------------- -------------- 
     Off               On                 localdomain    Off
  • Modify NFS share configurations.

    admin:/>change service nfs support_v3_enabled=on support_v4_enabled=on v4_domain_name=localdomain
    Command executed successfully.
  • Query NFS share configurations after the modification.

    admin:/>show service nfs
    Support V3 Enabled Support V4 Enabled V4 Domain Name V3 ACL Enabled
    ------------------ ------------------ -------------- -------------- 
    On                 On                 localdomain    Off
  • Close the NFS share service.

    admin:/>change service nfs support_v3_enabled=off support_v4_enabled=off
    WARNING: You are about to disable the NFSv3/NFSv4 service. This operation causes the NFSv3/NFSv4 sharing service provided by the storage device unavailable. 
    Suggestion: Before performing this operation, ensure that the NFSv3/NFSv4 sharing service is no longer needed.
    Have you read warning message carefully?(y/n)y
    Are you sure you really want to perform the operation?(y/n)y
    Command executed successfully.
  • Open the NFSv3 ACL.

    admin:/>change service nfs support_v3_enabled=on v3_acl_enabled=on
    WARNING: You are about to open the NFSv3 ACL. This operation may cause the service performance to decrease. You are not advised to perform this operation in scenarios where multiple protocols are involved.
    Suggestion: Before performing this operation, confirm that you want to open the NFSv3 ACL.
    Have you read warning message carefully?(y/n)y
    Are you sure you really want to perform the operation?(y/n)y
    Command executed successfully.
  • Open the NFSv3 ACL and disable NFSv4 service.

    admin:/>change service nfs support_v3_enabled=on v3_acl_enabled=on support_v4_enabled=off
    WARNING: You are about to open the NFSv3 ACL and diasble NFSv4 service. This operation may cause the NFSv3 service performance to decrease and disable the NFSv4 sharing service.
    Suggestion: Before performing this operation, confirm that you want to open the NFSv3 ACL and do not need NFSv4 sharing service.
    Have you read warning message carefully?(y/n)y
    Are you sure you really want to perform the operation?(y/n)y
    Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-07-22

Document ID: EDOC1000084078

Views: 300063

Downloads: 253

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