This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
aix:aix_nfsv4 [2023/10/10 13:49] manu [Performance] |
aix:aix_nfsv4 [2024/02/26 09:43] (current) manu |
||
---|---|---|---|
Line 186: | Line 186: | ||
Best proctice for AIX LPAR: | Best proctice for AIX LPAR: | ||
- | * Entitle CPU: **1.0** | + | * Processing Units: **1.0** |
+ | * network options | ||
+ | <cli prompt='#'> | ||
+ | # no -p -o tcp_sendspace=524288 | ||
+ | # no -p -o tcp_recvspace=524288 | ||
+ | </cli> | ||
+ | | ||
* nfs options | * nfs options | ||
<cli prompt='#'> | <cli prompt='#'> | ||
- | [root@tsmtesth]/root# nfso -L | + | [root@testh]/root# nfso -L |
NAME CUR DEF BOOT MIN MAX UNIT TYPE | NAME CUR DEF BOOT MIN MAX UNIT TYPE | ||
DEPENDENCIES | DEPENDENCIES | ||
Line 199: | Line 205: | ||
nfs_rfc1323 1 1 1 0 1 On/Off D | nfs_rfc1323 1 1 1 0 1 On/Off D | ||
</cli> | </cli> | ||
+ | |||
+ | * enable largesend | ||
+ | |||
+ | jumbo_frames yes | ||
+ | large_receive yes | ||
+ | large_send yes | ||
+ | <cli prompt='#'> | ||
+ | [root@testh]/root# lsattr -El ent3 | ||
+ | chksum_offload yes Request checksum offload True | ||
+ | jumbo_frames yes Request jumbo frames True | ||
+ | large_receive yes Request Rx TCP segment aggregation True | ||
+ | large_send yes Request Tx TCP segment offload True | ||
+ | ... | ||
+ | | ||
+ | [root@testh]/root# lsattr -El en3 | ||
+ | ... | ||
+ | mtu 9000 Maximum IP Packet Size for This Device True | ||
+ | mtu_bypass on Enable/Disable largesend for virtual Ethernet True | ||
+ | state up Current Interface Status True | ||
+ | </cli> | ||
+ | |||
+ | For info, largesend 'll send packet 64k, that 'll be split on VIOS side (hypervisor), when analyse packet, checksum for 64k return FFFF bad checksum, it normal. | ||
+ | |||
+ | Example of mount options: | ||
+ | # mount -o bg,hard,intr,rsize=131072,wsize=131072,timeo=1200,vers=4,sec=sys nfssrv:/nfspath /mnt | ||
+ | |||
+ | ===== NFS ERROR ===== | ||
+ | |||
+ | * **Mount error** | ||
+ | <code> | ||
+ | NFS lookup failed for server : rpc error 7 (RPC: 1832-010 Authentication error) errno 5 | ||
+ | </code> | ||
+ | |||
+ | Try: | ||
+ | <cli prompt='#'> | ||
+ | # nfso -p -o portcheck=1 | ||
+ | # nfso -p -o nfs_use_reserved_ports=1 | ||
+ | </cli> | ||
+ | |||
+ | * **Set range ports for NFS** | ||
+ | |||
+ | Normally, The usage of NFS ports will be dynamically in AIX.... If you would like to set the port ranges, | ||
+ | |||
+ | The NFS_PORT_RANGE environment variable can be used to limit the source port of network calls the client makes to the server. If used, this environment variable should be added to the **/etc/environment** file. The format of the environment variable is as follows: | ||
+ | NFS_PORT_RANGE=udp[4000-5000]:tcp[7000-8000] | ||
+ |