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 5300 V3, 5500 V3, 5600 V3, 5800 V3, and 6800 V3 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_config

change service nfs_config

Function

The change service nfs_config command is used to modify the NFS basic configuration.

Format

change service nfs_config { communication_thread_number=? | work_thread_number=? | max_block_size=? | { permit_listen_ip=? | deny_listen_ip=? } | { permit_client=? | deny_client=? } | communication_thread_priority=? | transcode_switch=? | nsm_query_dns_switch=? } *

Parameters

Parameter

Description

Value

communication_thread_number=? Number of NFS-based communication threads.

The value ranges from 1 to 128.

work_thread_number=? Number of NFS-based working threads.

The value ranges from 1 to 128.

max_block_size=? MTU of NFS.

The value ranges from 1024 to 1,048,576.

permit_listen_ip=? Whitelist of NFS listening IP addresses.

A maximum of 31 IP addresses can be entered. Separate IP addresses with a comma(,). Enter an asterisk (*) to add all IP addresses to the whitelist.

deny_listen_ip=? Blacklist of NFS listening IP addresses.

A maximum of 31 IP addresses can be entered. Separate IP addresses with a comma(,). Enter an asterisk (*) to add all IP addresses to the blacklist.

permit_client=? Whitelist of NFS clients.

Enter an asterisk to add all clients to the whitelist.

deny_client=? Blacklist of NFS clients.

A maximum of 31 IP addresses can be entered. Separate IP addresses with a comma(,).

communication_threa_priority=? Priority of NFS communication threads.

The value format is "highest", "high", "middle", or "normal".

transcode_switch=? Switch of NFS transcoding.

The value can be "enable" or "disable", where:

  • enable: enables the NFS transcoding function.
  • disable: disables the NFS transcoding function.
nsm_query_dns_switch=? Switch of NSM query DNS host name switch.

The value can be "enable" or "disable", where:

  • enable: enables the NSM query DNS host name function.
  • disable: disables the NSM query DNS host name function.

Level

Administrator

Usage Guidelines

None.

Example

  • Viewing the NFS public configuration before configuration modification.

    admin:/>show service nfs_config
    Communication Thread Number : 100
    Work Thread Number : 100
    Max Block Size : 10240
    Listen IP : deny 192.168.1.1
    Client Black List : deny 192.168.1.1
    Communication Thread Priority : normal
    Transcode Switch Status : Enabled
    Nsm Query Dns Switch Status : Enabled
  • Changing the number of NFS-based communication threads.

    admin:/>change service nfs_config communication_thread_number=100
    Command executed successfully.
  • Changing the maximum number of working threads allowed in sharing.

    admin:/>change service nfs_config work_thread_number=100
    Command executed successfully.
  • Changing the maximum transmission unit (MTU).

    admin:/>change service nfs_config max_block_size=10240
    Command executed successfully.
  • Modifying the blacklist of listening IP addresses.

    admin:/>change service nfs_config permit_listen_ip=*
    Command executed successfully.
  • Modifying the blacklist of client IP addresses.

    admin:/>change service nfs_config permit_client=*
    Command executed successfully.
  • Changing the priority of the NFS communication threads.

    admin:/> change service nfs_config communication_thread_priority=high
    Command executed successfully.
  • Modifying the switch of NFS transcoding.

    admin:/> change service nfs_config transcode_switch=disable
    Command executed successfully.
  • Modifying the switch of NSM query DNS host name switch.

    admin:/> change service nfs_config nsm_query_dns_switch=disable
    Command executed successfully.
  • Viewing the NFS public configuration after configuration modification.

    admin:/>show service nfs_config
    Communication Thread Number : 100
    Work Thread Number : 100
    Max Block Size : 10240
    Listen IP : permit *
    Client Black List : permit *
    Communication Thread Priority : high
    Transcode Switch Status : Disabled
    Nsm Query Dns Switch Status : Disabled
     

System Response

None

Translation
Download
Updated: 2019-07-22

Document ID: EDOC1000084195

Views: 362581

Downloads: 1590

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