Last active
December 28, 2015 01:59
-
-
Save tkuchiki/7424612 to your computer and use it in GitHub Desktop.
nfs 構築手順
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nfs server (192.168.10.10) | |
yum install -y portmap nfs-utils nfs-utils-lib | |
mkdir /nfs_data | |
chown nfsnobody:nfsnobody /nfs_data | |
cat >> /etc/exports | |
/nfs_data 192.168.10.0/24(rw,no_root_squash) | |
# 以下の順で実行 | |
service rpcbind start | |
service nfslock start | |
service nfs start | |
# /etc/exports 反映 | |
exportfs -ra | |
chkconfig nfs on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nfs client (192.168.10.11) | |
yum install -y portmap nfs-utils nfs-utils-lib | |
# 以下の順で実行 | |
service rpcbind start | |
service nfslock start | |
service nfs start | |
chkconfig nfs on | |
mkdir /data | |
cat >> /etc/fstab | |
192.168.10.10:/nfs_data /data nfs rw 0 0 | |
# /etc/fstab を反映 | |
mount -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment