Obsidian/Recognition/Programing/Linux/RHEL9/NFS 설치 EAI적용.md

826 B

사전 작업 (USB마운트)

# USB 마운트
mkdir /tmp/usbTest

fdisk -l
mount /dev/sdb1 /tmp/usbTest
vi /etc/yum.repos.d/local.repo
	[local]
	name=usbrepo
	baseurl=file:///tmp/usbTest/BaseOS/
	gpgcheck=0
	enabled=1

yum clean all


# 기타
systemctl disable firewalld


# USB 언마운트
umount /tmp/usbTest

서버

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

mkdir /Data/EAIShare
vi /etc/exports
	/Data/EAIShare  192.168.231.10/255.255.255.0(rw,no_root_squash,sync)

exportfs -r

클라이언트

yum -y install nfs-utils

showmount -e 10.251.190.51
mkdir /Data/EAIShare

mount -t nfs 10.251.190.52:/TiberoDB/nfsshare /TiberoDB/nfsshare 

vi /etc/fstab
	192.168.231.12:/Data/EAIShare  /Data/EAIShare     nfs     defaults        0 0