Install nfs in Server and Client
# yum install nfs-utils nfs-utils-lib nfs-common
# yum install portmap
At Server(192.168.1.1)
Edit /etc/exports file for which directory to export
# cat /etc/exports
/nfsfs 192.168.1.2(rw,sync,no_root_squash)
# chkconfig nfs on
# service rpcbind stop
# service nfs stop
# chkconfig nfs on
# service rpcbind start
# service nfs start
# exportfs -a
# mkdir -p /nfsfs
# cat /etc/fstab
192.168.1.1:/nfsfs /nfsfs nfs auto,soft,noatime,nolock,bg,intr,tcp,actimeo=1800 0 0
# mount -a
# df -kh
192.168.1.1:/nfsfs 44G 5.7G 36G 14% /nfsfs
# yum install nfs-utils nfs-utils-lib nfs-common
# yum install portmap
At Server(192.168.1.1)
Edit /etc/exports file for which directory to export
# cat /etc/exports
/nfsfs 192.168.1.2(rw,sync,no_root_squash)
# chkconfig nfs on
# service rpcbind stop
# service nfs stop
# chkconfig nfs on
# service rpcbind start
# service nfs start
# exportfs -a
At Client(192.168.1.2)
# chkconfig nfs on
# service rpcbind stop
# service nfs stop
# chkconfig nfs on
# service rpcbind start
# service nfs start
# service rpcbind stop
# service nfs stop
# chkconfig nfs on
# service rpcbind start
# service nfs start
# mkdir -p /nfsfs
# cat /etc/fstab
192.168.1.1:/nfsfs /nfsfs nfs auto,soft,noatime,nolock,bg,intr,tcp,actimeo=1800 0 0
# mount -a
# df -kh
192.168.1.1:/nfsfs 44G 5.7G 36G 14% /nfsfs
No comments:
Post a Comment