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
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
showmount -e 192.168.25.132
테스트 목적으로만 사용하세요
mkdir /mnt/nfs
chmod 777 /mnt/nfs
mount -t nfs 192.168.25.132:/mnt/kubernetes /mnt/nfs