Skip to content

Instantly share code, notes, and snippets.

@tkuchiki
Last active December 28, 2015 01:59
Show Gist options
  • Save tkuchiki/7424612 to your computer and use it in GitHub Desktop.
Save tkuchiki/7424612 to your computer and use it in GitHub Desktop.
nfs 構築手順
# 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
# 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