Manages Network File System (NFS) tuning parameters.
nfso [ -p | -r ] [ -c ] { -o Tunable[ =newvalue ] }
nfso [ -p | -r ] { -d Tunable }
nfso [ -p | -r ] -a [-F] [ -c ]
nfso -h [ Tunable ]
nfso -l [ hostname ]
nfso [ -@ WparName ] [ -p | -r ] -a [ -c ]
nfso [ -@ WparName ] [ -p | -r ] [ -c ] { -o Tunable[ =newvalue ] }
Use the nfso command to configure Network File System tuning parameters. The nfso command sets or displays current or next boot values for Network File System tuning parameters. This command can also make permanent changes or defer changes until the next reboot. Whether the command sets or displays a parameter is determined by the accompanying flag. The -o flag performs both actions. It can either display the value of a parameter or set a new value for a parameter.
Understanding the Effect of Changing Tunable Parameters
Extreme care should be taken when using this command. If used incorrectly, the nfso command can make your system inoperable.
Before modifying any tunable parameter, you should first carefully read about all its characteristics in the Tunable Parameters section below, and follow any Refer To pointer, in order to fully understand its purpose.
You must then make sure that the Diagnosis and Tuning sections for this parameter truly apply to your situation and that changing the value of this parameter could help improve the performance of your system.
If the Diagnosis and Tuning sections both contain only "N/A", you should probably never change this parameter unless specifically directed by AIX® development.
Item | Description |
---|---|
-a | Displays the current, reboot (when used in conjunction with -r) or permanent (when used in conjunction with -p) value for all tunable parameters, one per line in pairs Tunable = Value. For the permanent options, a value is only displayed for a parameter if its reboot and current values are equal. Otherwise NONE displays as the value. |
-c | Changes the output format of the nfso command to colon-delineated format. |
-d Tunable | Sets the Tunable variable back to its default value. If a Tunable needs to be changed that is, . it is currently not set to its default value) and is of type Bosboot or Reboot, or if it is of type Incremental and has been changed from its default value, and -r is not used in combination, it will not be changed but a warning displays instead. |
-D | Sets all Tunable variables back to their default value. If Tunables needing to be changed are of type Bosboot or Reboot, or are of type Incremental and have been changed from their default value, and the -r flag is not used in combination, they will not be changed but warnings display instead. |
-F | Forces restricted tunable parameters to be displayed when the options -a, -L or -x are specified on the command line. If you do not specify the -F flag, restricted tunables are not included, unless they are specifically named in association with a display option. |
-h [Tunable] | Displays help about Tunable parameter if one is specified. Otherwise, displays the nfso command usage statement. |
-l hostname | Allows a system administrator to release NFS file locks on
an NFS server. The hostname variable specifies the host name
of the NFS client that has file locks held at the NFS server. The nfso
-l command makes a remote procedure call to the NFS server's rpc.lockd network
lock manager to request the release of the file locks held by the hostname NFS
client. If there is an NFS client that has file locks held at
the NFS server and this client has been disconnected from the network
and cannot be recovered, the nfso -l command can be used to
release those locks so that other NFS clients can obtain similar file
locks.
Note: The nfso command can be used to release locks
on the local NFS server only.
|
-L [Tunable] | Lists the characteristics of one or all Tunable, one
per line, using the following format:
|
-o Tunable[ =newvalue ] | Displays the value or sets Tunable to newvalue.
If a tunable needs to be changed (the specified value is different
than current value), and is of type Bosboot or Reboot, or if it is
of type Incremental and its current value is bigger than the specified
value, and -r is not used in combination, it will not be changed
but a warning displays instead. When -r is used in combination without a new value, the nextboot value for the Tunable displays. When -p is used in combination without a newvalue, a value displays only if the current and next boot values for the Tunable are the same. Otherwise NONE displays as the value. |
-p | Makes changes apply to both current and reboot values, when
used in combination with -o, -d or -D, that is,
it turns on the updating of the /etc/tunables/nextboot file
in addition to the updating of the current value. These combinations
cannot be used on Reboot and Bosboot type parameters because their
current value cannot be changed. When used with -a or -o without specifying a new value, values are displayed only if the current and next boot values for a parameter are the same. Otherwise NONE displays as the value. |
-r | Makes changes apply to reboot values when used in combination
with -o, -d or -D, that is, it turns on the updating
of the /etc/tunables/nextboot file. If any parameter of type
Bosboot is changed, the user is prompted to run bosboot. When used with -a or -o without specifying a new value, next boot values for tunables display instead of current values. |
-x [Tunable] | Lists characteristics of one or all tunables,
one per line, using the following (spreadsheet) format:
|
-@ WparName | Sets or displays tunables for the specified workload partition. The -@ flag can only be used when the nfso command is run in the global partition. |
If you make any change (with -o, -d or -D) to a restricted tunable parameter, it results in a warning message that a tunable parameter of the restricted-use type has been modified. If you also specify the -r or -p options on the command line, you are prompted for confirmation of the change. In addition, at system reboot, the presence of restricted tunables in the /etc/tunables/nextboot file, which were modified to a value that is different from their default value (using a command line specifying the -r or -p options), results in an error log entry that identifies the list of these modified tunables.
If you make any change (with -o, -d, or -D) to a parameter of type Mount, it results in a warning message that the change is only effective for future mountings.
If you make any change (with -o, -d or -D) to a parameter of type Connect, it results in inetd being restarted, and a warning message that the change is only effective for future socket connections.
If you make any change (with -o, -d, or -D) to a parameter of type Bosboot or Reboot without -r, it results in an error message.
If you make any change (with -o, -d, or -D but without -r) to the current value of a parameter of type Incremental with a new value smaller than the current value, it results in an error message.
Item | Description |
---|---|
Dynamic | If the parameter can be changed at any time |
Static | If the parameter can never be changed |
Reboot | If the parameter can only be changed during reboot |
Bosboot | If the parameter can only be changed by running bosboot and rebooting the machine |
Mount | If changes to the parameter are only effective for future file systems or directory mounts |
Incremental | If the parameter can only be incremented, except at boot time |
Connect | If changes to the parameter are only effective for future socket connections |
Deprecated | If changing this parameter is no longer supported by the current release of AIX. |
Note that the current set of parameters managed by the nfso command only includes Dynamic, Mount, and Incremental types.
When running in pre 5.2 compatibility mode (controlled by the pre520tune attribute of sys0, see AIX 5.2 compatibility mode), reboot values for parameters, except those of type Bosboot, are not really meaningful because in this mode they are not applied at boot time.
In pre 5.2 compatibility mode, setting reboot values to tuning parameters continues to be achieved by imbedding calls to tuning commands in scripts called during the boot sequence. Parameters of type Reboot can therefore be set without the -r flag, so that existing scripts continue to work.
This mode is automatically turned ON when a machine is MIGRATED to AIX 5L™ Version 5.2. For complete installations, it is turned OFF and the reboot values for parameters are set by applying the content of the /etc/tunables/nextboot file during the reboot sequence. Only in that mode are the -r and -p flags fully functional. See Kernel Tuning in the AIX Version 7.1 Performance Tools Guide and Reference for details about the new 5.2 mode.
For default values and range of values for tunables, refer the nfso command help (-h <tunable_parameter_name>).
Item | Description |
---|---|
client_delegation |
|
nfs_max_read_size |
|
nfs_max_write_size |
|
nfs_rfc1323 |
|
nfs_securenfs_authtimeout |
|
nfs_server_base_priority |
|
nfs_server_clread |
|
nfs_use_reserved_ports |
|
nfs_v3_server_readdirplus |
|
nfs_v4_fail_over_timeout |
|
portcheck |
|
server_delegation |
|
utf8_validation |
|
nfso -o portcheck=0
nfso -r -d udpchecksum
nfso -a -c
nfso -L
nfso -h nfs_tcp_duplicate_cache_size
nfso -p -o nfs_dynamic_retrans=0
nfso -r -a
nfso -x