NFS tips and tricks: Difference between revisions

From HPCWIKI
Jump to navigation Jump to search
(Created page with " == nfsd: too many open connections, consider increasing the number of threads == NFS uses threads on the server to handle incoming and outgoing I/O requests. Using threads helps NFS scale to handle large numbers of clients and large numbers of I/O requests. dmesg display when reach some high number of clients. should increase Number of NFS daemons (''nfsd'') by changing the RPCNFSDCOUNT variable in <code>/etc/default/nfs-kernel-server</code> on a Debian-based machine....")
 
(Fix: remove --- horizontal lines (7 removed))
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Status
|status=Draft
|owner=Knowledge Agent
|last_update=2026-07-16
|review=Pending
}}
{{TOC}}
== Overview ==
NFS tips and tricks에 대한 기술 문서입니다.
=== Summary ===
* 무엇인가? - NFS tips and tricks
* 왜 필요한가? - HPC 및 서버 환경에서 필수 개념
* 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시
== Purpose ==
이 문서가 존재하는 이유
* Goal: NFS tips and tricks에 대한 기술 정보 제공
* Scope: NFS tips and tricks의 개념, 사용법, 설정
* Non-goals: 다른 주제로의 확장
== Key Concepts ==
{| class="wikitable"
! Concept
! Description
! Related
|-
| NFS tips and tricks
| HPC/서버 환경에서 중요한 기술 개념
| [[Linux]], [[Server]]
|}
== Detailed Explanation ==


== nfsd: too many open connections, consider increasing the number of threads ==
NFS uses threads on the server to handle incoming and outgoing I/O requests. Using threads helps NFS scale to handle large numbers of clients and large numbers of I/O requests.
NFS uses threads on the server to handle incoming and outgoing I/O requests. Using threads helps NFS scale to handle large numbers of clients and large numbers of I/O requests.
dmesg display when reach some high number of clients. should increase Number of NFS daemons (''nfsd'') by changing the RPCNFSDCOUNT variable in <code>/etc/default/nfs-kernel-server</code> on a Debian-based machine. (Ubuntu 20.04)<syntaxhighlight lang="bash">
dmesg display when reach some high number of clients. should increase Number of NFS daemons (''nfsd'') by changing the RPCNFSDCOUNT variable in <code>/etc/default/nfs-kernel-server</code> on a Debian-based machine. (Ubuntu 20.04)<syntaxhighlight lang="bash">
Find the number of NFS daemons in two ways
Find the number of NFS daemons in two ways
ps -aux | grep nfs
ps -aux | grep nfs
 
or
$ ps -aux | grep nfs | wc -l
To change nfsd count temperarly, use  
To change nfsd count temperarly, use  
# rpc.nfsd 16
# rpc.nfsd 16
 
To change nfsd count permenently increase RPCNFSDCOUNT variable in  /etc/default/nfs-kernel-server (Ubuntu 20.04) then  restart nfs server.
To change nfsd count permenently increase RPCNFSDCOUNT variable in  /etc/default/nfs-kernel-server (Ubuntu 20.04) then  restart nfs-server.service
$ cat /etc/default/nfs-kernel-server
 
# Number of servers to start up
RPCNFSDCOUNT=64
...
$ sudo systemctl restart nfs-server.service
$ ps -aux | grep nfs | wc -l               
65
</syntaxhighlight>
</syntaxhighlight>
== Check nfs status ==
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
$ nfsstat -r
$ nfsstat -r
Server rpc stats:
Server rpc stats:
calls      badcalls  badfmt    badauth    badclnt
 
0          0          0          0          0   
 
</syntaxhighlight>
== Best Practices ==
 
* 최신 버전 사용 권장
* 공식 문서 참고
* 테스트 환경에서 먼저 검증
 


== References ==
== References ==
<references />
 
* [https://wiki.hpcmate.com NFS tips and tricks]
 
 
== Related Pages ==
 
* [[Linux]]
* [[Server]]
* [[Hardware]]
* [[Network]]
 
 
[[Category:Network]]
== Knowledge Graph ==
 
Related
 
→ [[NFS]]
→ [[Network]]
→ [[NFSv4 ACLs]]
→ [[Storage]]
 
[[Category:Configuration]]

Latest revision as of 11:29, 17 July 2026

Template:Status

Template:TOC

Overview

NFS tips and tricks에 대한 기술 문서입니다.

Summary

  • 무엇인가? - NFS tips and tricks
  • 왜 필요한가? - HPC 및 서버 환경에서 필수 개념
  • 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시


Purpose

이 문서가 존재하는 이유

  • Goal: NFS tips and tricks에 대한 기술 정보 제공
  • Scope: NFS tips and tricks의 개념, 사용법, 설정
  • Non-goals: 다른 주제로의 확장


Key Concepts

Concept Description Related
NFS tips and tricks HPC/서버 환경에서 중요한 기술 개념 Linux, Server


Detailed Explanation

NFS uses threads on the server to handle incoming and outgoing I/O requests. Using threads helps NFS scale to handle large numbers of clients and large numbers of I/O requests.

dmesg display when reach some high number of clients. should increase Number of NFS daemons (nfsd) by changing the RPCNFSDCOUNT variable in /etc/default/nfs-kernel-server on a Debian-based machine. (Ubuntu 20.04)

Find the number of NFS daemons in two ways
ps -aux | grep nfs
or 
$ ps -aux | grep nfs | wc -l
To change nfsd count temperarly, use 
# rpc.nfsd 16
To change nfsd count permenently increase RPCNFSDCOUNT variable in  /etc/default/nfs-kernel-server (Ubuntu 20.04) then  restart nfs server.
$ cat /etc/default/nfs-kernel-server 
# Number of servers to start up
RPCNFSDCOUNT=64
...
$ sudo systemctl restart nfs-server.service
$ ps -aux | grep nfs | wc -l                
65

<syntaxhighlight lang="bash"> $ nfsstat -r Server rpc stats:


Best Practices

  • 최신 버전 사용 권장
  • 공식 문서 참고
  • 테스트 환경에서 먼저 검증


References


Related Pages

Knowledge Graph

Related

NFSNetworkNFSv4 ACLsStorage