NFS 마운트

김성훈·2021년 3월 31일
0

설치
$ yum install nfs-utils
$ yum install net-tools
$ systemctl --now enable nfs-server.service

본진 서버

vi /etc/exports

/data/crm              999.232.88.67(rw,no_root_squash,sync)
/data/crm              999.232.88.157(rw,no_root_squash,sync)
/data/storage          888.168.88.41(rw,no_root_squash,sync)
/data/crm              888.168.88.41(rw,no_root_squash,sync)
/data/storage          888.168.88.42(rw,no_root_squash,sync)
/data/crm              888.168.88.42(rw,no_root_squash,sync)
/data/storage          888.168.88.43(rw,no_root_squash,sync)
/data/crm              888.168.88.43(rw,no_root_squash,sync)
/data/storage          888.168.88.44(rw,no_root_squash,sync)
/data/crm              888.168.88.44(rw,no_root_squash,sync)



/root/nfs_test/15          192.168.1.15(rw,no_root_squash,sync)




$ mkdir /root/nfs_test/15

멀티 서버

$ mkdir -p /data/storage
$ touch /data/storage/hello.txt
$ df -h
$ vi /etc/fstab

192.168.1.203:/root/nfs_test/15 /data/storage   nfs     hard            0 0

$ mount -t nfs 192.168.1.203:/root/nfs_test/15 /data/storage
$ mount -a

0개의 댓글