NFS tips and tricks

From HPCWIKI
Jump to navigation Jump to search

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