- 论坛徽章:
- 0
|
server端(1.1.6.68)
1) 修改 /etc/dfs/dfstab文件
# more /etc/dfs/dfstab
# Place share(1M) commands here for automatic execution
# on entering init state 3.
#
# Issue the command '/etc/init.d/nfs.server start' to run the NFS
# daemon processes and the share commands, after adding the very
# first entry to this file.
#
# share [-F fstype] [ -o options] [-d ""] [resource]
# .e.g,
# share -F nfs -o rw=engineering -d "home dirs" /export/home2
share -F nfs -o rw=1.1.1.3 /tmp
2) 启动rpc进程(如果没启动)
# /etc/rc2.d/S71rpc start
3) 启动server nfs进程
# /etc/init.d/nfs.server start
4) 检查dfshares是否成功
# dfshares
RESOURCE SERVER ACCESS TRANSPORT
host:/tmp host -
client端(1.1.1.3)
启动client端 nfs进程
#/etc/init.d/nfs.client start
Mount
##mount 1.1.6.68:/tmp /nfs
# df -k
Filesystem kbytes used avail capacity Mounted on
-----------------------------------------------------------------
1.1.6.68:/tmp 2481656 220904 2260752 9% /nfs
成功。配置中我也遇到过问题,详细请大家看
配置nfs,在client端mount时报RPC: Rpcbind failure - RPC: Timed out
http://bbs.chinaunix.net/viewthread.php?tid=950691&page=1&extra=#pid6949062
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/2005/showart_325584.html |
|