AIX下配置NFS



AIX下配置NFS
 
环境:
服务端:AIX 5.3.10
客户端:Red Hat Linux As 5
 
服务端
1.创建文件系统soft
同时mount该文件系统
#mount /soft
 
2.编译服务端的/etc/hosts文件,添加NFS客户端信息 
192.168.1.103 stdby
 
3.编辑/etc/exports,(默认情况下没有这个文件, 需要自己创建)
vi /etc/exports
/soft -rw,root=stdby,access=stdby
 
4.编辑/etc/xtab 
/soft -rw,root=stdby_1,access=stdby_1
   www.2cto.com  
5.启、停NFS服务 
立即启动 
#/usr/sbin/mknfs '-N' 
立即启动,restart也自动运行 
#/usr/sbin/mknfs '-B'
立即停止 
#/usr/sbin/rmnfs '-N' 
立即停止,系统停止也停止 
#/usr/sbin/mknfs '-B'
 
6.服务器上执行 
#exportfs -a 
该命令将导出/etc/exports中写入的所有目录
 
客户端配置:
1.客户端机器的host中写入NFS服务器的信息,我的客户端是linux,修改/etc/hosts 
192.168.1.185 hxl
 
2.创建目录并加载
#mkdir data 
#mount hxl:/soft /data 
加载成功
www.2cto.com  
3.查看加载目录
[root@stdby data]# pwd
/data
[root@stdby data]# ls -al
total 2511436
drwxr-xr-x  7  202  202       4096 Sep  2 10:53 .
drwxr-xr-x 27 root root       4096 Sep  2 15:53 ..
-rw-r-----  1  202  202 1564425851 Aug 22 08:54 aix.ppc64_11gR2_database_1of2.zip
-rw-r-----  1  202  202 1007010341 Aug 19 11:56 aix.ppc64_11gR2_database_2of2.zip
drwxr-xr-x  9  202  202       4096 Dec 21  2009 database
drwxr-x---  2  202  202      12288 Aug 19 12:03 DownloadDirector
drwxr-xr-x  3  203  202        256 Sep  2 10:55 gridsoft
-rw-r-----  1  202  202      75320 Aug 20 10:22 gzip-1.2.4a-10.aix5.2.ppc.rpm
drwxr-xr-x  2  202  202        256 Sep  1 09:59 java
drwxr-xr-x  2  202  202        256 Aug 19 11:44 lost+found
-rw-r-----  1  202  202     156854 Aug 20 10:22 unzip-5.51-1.aix5.1.ppc.rpm
  www.2cto.com  
发现在客户端能看到了服务端/soft的内容
服务器端
客户端加载成功后,可以查看加载的机器
[hxl/root]#showmount
stdby
[hxl/root]#
 
-- The End --
 

相关内容

    暂无相关文章