서버 측

필요 패키지 설치

sudo yum install nfs-utils rpcbind

NAS 디렉토리 생성

mkdir -p /home1/irteam/data/mobile_main

NAS 연결접근 설정

sudo vi /etc/exports
/home/jongpak/data 10.*.*.*

rpcbind / nfs-server 구동

sudo systemctl start rpcbind
sudo systemctl start nfs-server

rpcbind / nfs-server 상태 확인

sudo systemctl status rpcbind
sudo systemctl status nfs-server

클라이언트 측

마운트

sudo yum install nfs-utils rpcbind
sudo systemctl start rpcbind
sudo systemctl status rpcbind
sudo mount -t nfs test-content-mirror-jongpak:/home/jongpak/history-data ./nfs_test

마운트 중인 클라이언트 목록 확인

$ /sbin/showmount -a
All mount points on test-jpngpak.host:
10.106.164.92:/home/jongpak/history-data
10.113.126.119:/home/jongpak/history-data

트러블슈팅

mount: wrong fs type, bad option, bad superblock 발생 시

sudo yum install nfs-utils

Job for rpc-statd.service failed because the control process exited with error code 발생 시