nfs - choisungwook/portfolio GitHub Wiki

이 문서는 nfs서버 설치와 클라이언트 마운트 방법을 설명합니다.

서버

패키지 설치

yum -y install nfs-utils
systemctl start nfs-server
systemctl start rpcbind
systemctl enable nfs-server
systemctl enable rpcbind

공유 볼륨 설정

테스트 목적으로만 사용하세요.

mkdir -p /mnt/kubernetes
chmod 777 /mnt/kubernetes

nfs설정

192.168.25.*대역만 nfs마운트가 가능합니다.

echo "/mnt/kubernetes 192.168.25.*(rw,no_root_squash,sync)" >> /etc/exports
systemctl restart nfs-server

클라이언트

패키지 설치와 설정

yum install -y nfs-utils
systemctl enable rpcbind
systemctl start rpcbind

nfs볼륨 확인

showmount -e 192.168.25.132

마운트

테스트 목적으로만 사용하세요

mkdir /mnt/nfs
chmod 777 /mnt/nfs
mount -t nfs 192.168.25.132:/mnt/kubernetes /mnt/nfs
⚠️ **GitHub.com Fallback** ⚠️