you can use the nfso command to configure nfs attributes.
it sets or displays nfs-related options associated with the currently running kernel and nfs kernel extension. see the nfso command in aix 5l version 5.3 commands reference, volume 4 for a detailed description of the command and its output.
note: the nfso command performs no range-checking. if it is used incorrectly, the nfso command can make your system inoperable.
the nfso parameters and their values can be displayed by using the nfso -a command, as follows:
# nfso -a
portcheck = 0
udpchecksum = 1
nfs_socketsize = 60000
nfs_tcp_socketsize = 60000
nfs_setattr_error = 0
nfs_gather_threshold = 4096
nfs_repeat_messages = 0
nfs_udp_duplicate_cache_size = 5000
nfs_tcp_duplicate_cache_size = 5000
nfs_server_base_priority = 0
nfs_dynamic_retrans = 1
nfs_iopace_pages = 0
nfs_max_connections = 0
nfs_max_threads = 3891
nfs_use_reserved_ports = 0
nfs_device_specific_bufs = 1
nfs_server_clread = 1
nfs_rfc1323 = 1
nfs_max_write_size = 65536
nfs_max_read_size = 65536
nfs_allow_all_signals = 0
nfs_v2_pdts = 1
nfs_v3_pdts = 1
nfs_v2_vm_bufs = 1000
nfs_v3_vm_bufs = 1000
nfs_securenfs_authtimeout = 0
nfs_v3_server_readdirplus = 1
lockd_debug_level = 0
statd_debug_level = 0
statd_max_threads = 50
utf8_validation = 1
nfs_v4_pdts = 1
nfs_v4_vm_bufs = 1000
most nfs attributes are run-time attributes that can be changed at any time. load time attributes, such as nfs_socketsize, need nfs to be stopped first and restarted afterwards. the nfso -l command provides more detailed information about each of these attributes, including the current value, default value, and the restrictions regarding when the value changes actually take effect:
# nfso –l
name cur def boot min max unit type dependencies
--------------------------------------------------------------------------------
portcheck 0 0 0 0 1 on/off d
--------------------------------------------------------------------------------
udpchecksum 1 1 1 0 1 on/off d
--------------------------------------------------------------------------------
nfs_socketsize 600000 600000 600000 40000 1m bytes d
--------------------------------------------------------------------------------
nfs_tcp_socketsize 600000 600000 600000 40000 1m bytes d
--------------------------------------------------------------------------------
nfs_setattr_error 0 0 0 0 1 on/off d
--------------------------------------------------------------------------------
nfs_gather_threshold 4k 4k 4k 512 8193 bytes d
--------------------------------------------------------------------------------
nfs_repeat_messages 0 0 0 0 1 on/off d
--------------------------------------------------------------------------------
nfs_udp_duplicate_cache_size
5000 5000 5000 5000 100000 req i
--------------------------------------------------------------------------------
nfs_tcp_duplicate_cache_size
5000 5000 5000 5000 100000 req i
--------------------------------------------------------------------------------
nfs_server_base_priority 0 0 0 31 125 pri d
--------------------------------------------------------------------------------
nfs_dynamic_retrans 1 1 1 0 1 on/off d
--------------------------------------------------------------------------------
nfs_iopace_pages 0 0 0 0 65535 pages d
--------------------------------------------------------------------------------
nfs_max_connections 0 0 0 0 10000 number d
--------------------------------------------------------------------------------
nfs_max_threads 3891 3891 3891 5 3891 threads d
--------------------------------------------------------------------------------
nfs_use_reserved_ports 0 0 0 0 1 on/off d
--------------------------------------------------------------------------------
nfs_device_specific_bufs 1 1 1 0 1 on/off d
--------------------------------------------------------------------------------
nfs_server_clread 1 1 1 0 1 on/off d
--------------------------------------------------------------------------------
nfs_rfc1323 1 0 0 0 1 on/off d
--------------------------------------------------------------------------------
nfs_max_write_size 64k 32k 32k 512 64k bytes d
--------------------------------------------------------------------------------
nfs_max_read_size 64k 32k 32k 512 64k bytes d
--------------------------------------------------------------------------------
nfs_allow_all_signals 0 0 0 0 1 on/off d
--------------------------------------------------------------------------------
nfs_v2_pdts 1 1 1 1 8 pdts m
--------------------------------------------------------------------------------
nfs_v3_pdts 1 1 1 1 8 pdts m
--------------------------------------------------------------------------------
nfs_v2_vm_bufs 1000 1000 1000 512 5000 bufs i
--------------------------------------------------------------------------------
nfs_v3_vm_bufs 1000 1000 1000 512 5000 bufs i
--------------------------------------------------------------------------------
nfs_securenfs_authtimeout 0 0 0 0 60 seconds d
--------------------------------------------------------------------------------
nfs_v3_server_readdirplus 1 1 1 0 1 on/off d
--------------------------------------------------------------------------------
lockd_debug_level 0 0 0 0 10 level d
--------------------------------------------------------------------------------
statd_debug_level 0 0 0 0 10 level d
--------------------------------------------------------------------------------
statd_max_threads 50 50 50 1 1000 threads d
--------------------------------------------------------------------------------
utf8_validation 1 1 1 0 1 on/off d
--------------------------------------------------------------------------------
nfs_v4_pdts 1 1 1 1 8 pdts m
--------------------------------------------------------------------------------
nfs_v4_vm_bufs 1000 1000 1000 512 5000 bufs i
--------------------------------------------------------------------------------
n/a means parameter not supported by the current platform or kernel
parameter types:
s = static: cannot be changed
d = dynamic: can be freely changed
b = bosboot: can only be changed using bosboot and reboot
r = reboot: can only be changed during reboot
c = connect: changes are only effective for future socket connections
m = mount: changes are only effective for future mountings
i = incremental: can only be incremented
value conventions:
k = kilo: 2^10 g = giga: 2^30 p = peta: 2^50
m = mega: 2^20 t = tera: 2^40 e = exa: 2^60
to display or change a specific parameter, use the nfso -o command. for example:
# nfso -o portcheck
portcheck= 0
# nfso -o portcheck=1
the parameters can be reset to their default value by using the -d option. for example:
# nfso -d portcheck
# nfso -o portcheck
portcheck= 0
阅读(2169) | 评论(0) | 转发(0) |