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

OceanStor 18000 and 18000F V5 Series V500R007

This document is applicable to OceanStor 18500 V5, 18800 V5, 18500F V5, and 18800F V5. Based on the CLI provided by the DeviceManager, this document describes how to use variouscommands classified by functions and how to set the CLI and manage the storage system throughthese 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 configurations.

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=? | silent_time=? | fileid_length=? | transcode_switch=? | nsm_query_dns_switch=? | v3_automount_switch=? | v4_automount_switch=? | v41_automount_switch=? | extended_groups_switch=? | extended_groups_limit=? | slow_io_percent=? | nobody_uid=? } *

change service nfs_config { v3_automount_switch=? | v4_automount_switch=? | v41_automount_switch=? | extended_groups_switch=? | extended_groups_limit=? | nobody_uid=? } *

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=?

NFS MTU.

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 (,). An asterisk (*) indicates all IP addresses.

deny_listen_ip=?

Blacklist of NFS listening IP addresses.

A maximum of 31 IP addresses can be entered. Separate IP addresses with a comma (,). An asterisk (*) indicates all IP addresses.

permit_client=?

Whitelist of NFS clients.

You can 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_thread_priority=?

Priority of NFS communication threads.

The value format can be "highest", "high", "middle", or "normal".

transcode_switch=?

Whether to enable or disable NFS transcoding.

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

  • "enable": enables the NFS transcoding function.
  • "disable": disables the NFS transcoding function.

silent_time=?

NFS silent period duration.

The value ranges from 30 to 90 seconds.

fileid_length=?

NFS file ID length.

The value can be "32" or "64", where:

  • "32": enables the storage array to support clients with 32-bit file IDs.
  • "64": enables the storage array to support clients with 64-bit file IDs.

nsm_query_dns_switch=?

Whether to enable or disable the function of NSM to query DNS host names.

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

  • "enable": enables the function of NSM to query DNS host names.
  • "disable": disables the function of NSM to query DNS host names.

v3_automount_switch=?

Whether to enable or disable the function of automatically mounting directories for NFSv3 (vStore).

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

  • "enable": enables the function of automatically mounting directories for NFSv3.
  • "disable": disables the function of automatically mounting directories for NFSv3.

v4_automount_switch=?

Whether to enable or disable the function of automatically mounting directories for NFSv4 (vStore).

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

  • "enable": enables the function of automatically mounting directories for NFSv4.
  • "disable": disables the function of automatically mounting directories for NFSv4.

v41_automount_switch=?

Whether to enable or disable the function of automatically mounting directories for NFSv4.1 (vStore).

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

  • "enable": enables the function of automatically mounting directories for NFSv4.1.
  • "disable": disables the function of automatically mounting directories for NFSv4.1.

extended_groups_switch=?

Enables or disables the extended group function (vStore).

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

  • "enable": enables the extended group function.
  • "disable": disables the extended group function.

extended_groups_limit=?

Number of extended groups (vStore).

The value ranges from 16 to 256.

slow_io_percent=?

Percentage of slow I/O requests.

The value must be an integer from 1 to 100.

nobody_uid=?

ID of the nobody user.

The value must be an integer from 0 to 4294967295.

Level

Administrator

Usage Guidelines

None

Example

  • Query the NFS public configuration before 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 List           : deny 192.168.1.1 
    Communication Thread Priority : normal 
    Transcode Switch Status : Enabled 
    Silent Time(s)         : 60 
    Fileid Length(bit)       : 64 
    Nsm Query Dns Switch Status : Enabled 
    NFSv3 Automount Switch      : Disabled 
    NFSv4 Automount Switch      : Disabled 
    NFSv4.1 Automount Switch : Disabled 
    Extended Groups Switch      : Disabled 
    Extended Groups Limit       : 32 
    Slow I/O Percent(%)         : 50 
    Nobody ID                   : 65534
  • Change the number of NFS-based communication threads.
    admin:/>change service nfs_config communication_thread_number=100 
    Command executed successfully.
  • Change the maximum number of working threads allowed in sharing.
    admin:/>change service nfs_config work_thread_number=100 
    Command executed successfully.
  • Change the MTU.
    admin:/>change service nfs_config max_block_size=10240 
    Command executed successfully.
  • Modify the blacklist of listening IP addresses.
    admin:/>change service nfs_config permit_listen_ip=* 
    Command executed successfully.
  • Modify the blacklist of client IP addresses.
    admin:/>change service nfs_config permit_client=* 
    Command executed successfully.
  • Change the priority of the NFS communication threads.
    admin:/>change service nfs_config communication_thread_priority=high 
    Command executed successfully.
  • Change the NFS silent time.
    admin:/>change service nfs_config silent_time=80 
    Command executed successfully.
  • Enable NFS to support clients with 32-bit file IDs.
    admin:/>change service nfs_config fileid_length=32 
    WARNING: This operation will change the type of NFS clients (with 32-bit or 64-bit file ID) supported by the storage array. After this operation, the NFS client services may be interrupted.  
    Suggestion: Before performing this operation, ensure that this operation is necessary. 
    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.
  • Enable or disable NFS transcoding.
    admin:/> change service nfs_config transcode_switch=disable 
    Command executed successfully.
  • Enable or disable the function of NSM to query DNS host names.
    admin:/> change service nfs_config nsm_query_dns_switch=disable 
    Command executed successfully.
  • Enable or disable the function of automatically mounting directories for NFSv3.
    admin:/>change service nfs_config v3_automount_switch=enable 
    WARNING: You are about to enable or disable the function of automatically mounting directories for NFS. This operation may cause service interruption. If services are interrupted, mount shares again. 
    Suggestion: Confirm that you want to perform this operation based on the service type. 
    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.
  • Enable or disable the function of automatically mounting directories for NFSv4.
    admin:/>change service nfs_config v4_automount_switch=enable 
    WARNING: You are about to enable or disable the function of automatically mounting directories for NFS. This operation may cause service interruption. If services are interrupted, mount shares again. 
    Suggestion: Confirm that you want to perform this operation based on the service type. 
    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.
  • Enable or disable the function of automatically mounting directories for NFSv4.1.
    admin:/>change service nfs_config v41_automount_switch=enable 
    WARNING: You are about to enable or disable the function of automatically mounting directories for NFS. This operation may cause service interruption. If services are interrupted, mount shares again. 
    Suggestion: Confirm that you want to perform this operation based on the service type. 
    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.
  • Enable or disable the extended group function.
    admin:/>change service nfs_config extended_groups_switch=disable 
    Command executed successfully.
  • Change the number of extended groups.
    admin:/>change service nfs_config extended_groups_limit=64 
    Error: The extended group function is not enabled. 
    Suggestion: Enable the extended group function and then try again.
  • Query the NFS public configuration after modification.
    admin:/>show service nfs_config 
    Communication Thread Number  : 100 
    Work Thread Number       : 100 
    Max Block Size         : 10240 
    Listen IP            : permit * 
    Client List           : permit * 
    Communication Thread Priority : high 
    Transcode Switch Status : Disabled 
    Silent Time(s)         : 80 
    Fileid Length(bit)       : 32 
    Nsm Query Dns Switch Status : Disabled 
    NFSv3 Automount Switch      : Enabled 
    NFSv4 Automount Switch      : Enabled 
    NFSv4.1 Automount Switch : Enabled 
    Extended Groups Switch      : Disabled 
    Extended Groups Limit       : 32 
    Nobody UID                  : 65534
  • Enable or disable the function of automatically mounting directories for NFSv3 in a vStore.
    admin@vstore1:/>change service nfs_config v3_automount_switch=enable 
    WARNING: You are about to enable or disable the function of automatically mounting directories for NFS. This operation may cause service interruption. If services are interrupted, mount shares again. 
    Suggestion: Confirm that you want to perform this operation based on the service type. 
    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.
  • Enable or disable the function of automatically mounting directories for NFSv4 in a vStore.
    admin@vstore1:/>change service nfs_config v4_automount_switch=enable 
    WARNING: You are about to enable or disable the function of automatically mounting directories for NFS. This operation may cause service interruption. If services are interrupted, mount shares again. 
    Suggestion: Confirm that you want to perform this operation based on the service type. 
    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.
  • Enable or disable the function of automatically mounting directories for NFSv4.1 in a vStore.
    admin@vstore1:/>change service nfs_config v41_automount_switch=enable 
    WARNING: You are about to enable or disable the function of automatically mounting directories for NFS. This operation may cause service interruption. If services are interrupted, mount shares again. 
    Suggestion: Confirm that you want to perform this operation based on the service type. 
    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.
  • Query NFS configurations in a vStore after modification.
    admin@vstore1:/>show service nfs_config 
    NFSv3 Automount Switch : Enabled 
    NFSv4 Automount Switch : Enabled 
    NFSv4.1 Automount Switch : Enabled 
    Extended Groups Switch : Disabled 
    Extended Groups Limit : 32 
    Nobody UID               : 65534
  • Enable or disable the extended group function in a vStore.
    admin@vstore1:/>change service nfs_config extended_groups_switch=enable 
    WARNING: You are about to enable the extended group function. This operation may degrade the NFS service performance. 
    Suggestion: Confirm that you want to perform this operation. 
    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.
  • Change the number of extended groups in a vStore.
    admin@vstore1:/>change service nfs_config extended_groups_limit=64 
    Command executed successfully.
  • Change the percentage of slow I/O requests.
    admin:/>change service nfs_config slow_io_percent=60 
    Command executed successfully.
  • Change the ID of the nobody user.
    admin:/>change service nfs_config nobody_id=65534 
    Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-07-11

Document ID: EDOC1000181601

Views: 311790

Downloads: 39

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