当前位置: 首页 > 图文教程 > 服务器 > Linux服务器 > Linux系统挂载AIXNFS服务器的配置方法

Linux服务器
linux系统下的TC控制服务器流量全攻略
Linux系统快速定位web路径方法
实例解说Postfix服务配置
LINUX服务器:查看服务端口命令nmap
Linux服务器下的软件安装与卸载
Linux服务器教程:认识Linux系统目录
Linux服务器教程:安装apache和php
Linux学习教程:不同版本Mysql安装
Linux中samba服务器的基本配置
如何加强Linux系统在安全方面的管理
LInux服务器:squid的日志文件经常报错
Linux中的Screen命令使用技巧详解
Linux服务器被黑怎么查?
Linux下Apache+Proftpd构建虚拟主机的安全问题
Linux系统下安装VMware虚拟机
安装Ubuntu 7.10简明教程
如何在VMware上安装Linux系统
新手认识Linux系统
Apache SSL证书安装指南
深入学习Apache模块mod_rewrite

Linux服务器 中的 Linux系统挂载AIXNFS服务器的配置方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-18   浏览: 83 ::
收藏到网摘: n/a

1、准备AIX服务器

默认安装完AIX5.3后,先停止nfs和portmap两个进程,然后删掉一些和NFS有关的文件

#stopsrc-gnfs
0513-044ThebiodSubsystemwasrequestedtostop.
0513-044ThenfsdSubsystemwasrequestedtostop.
0513-044Therpc.mountdSubsystemwasrequestedtostop.
0513-044Therpc.lockdSubsystemwasrequestedtostop.
0513-044Therpc.statdSubsystemwasrequestedtostop.
#
-g表示停止一组nfs相关的进程

#stopsrc-sportmap
0513-044TheportmapSubsystemwasrequestedtostop.
#

#cd/etc
#rm-rfsmsm.bakstatextabrmtab

2、配置AIX的NFS服务器

可以直接手动配置/etc/exports或使用smit工具配置,因为AIX的NFS和Linux的配置文件内容不同,所以建议使用smit工具来配

这是我通过smit配置好的/etc/exports文件内容:
#cat/etc/exports
/mnt-sec=sys:krb5p:krb5i:krb5:dh:none,rw,root=192.168.3.160,access=192.168.3.161:192.168.3.160
#

我将/mnt目录共享出去,设置只允许192.168.3.160可以对共享目录写操作,能够访问的服务器有192.168.3.161和192.168.3.160,sec是数据加密方法。配置完后,使用exportfs命令将/etc/exports的内容更新至/etc/xtab文件中,/etc/xtab文件是NFS读取的内容,所以这步很关键,如果不用这个命令,其它的节点是无法正确挂载NFS共享目录的:

#exportfs-a

这里要注意一下:NFS客户端的IP地址要写到/etc/hosts文中,并要指定机器名,否则是无法挂载AIX上的NFS共享目录

3、启动NFS并测试

#startsrc-sportmap
0513-059TheportmapSubsystemhasbeenstarted.SubsystemPIDis233644.
#startsrc-gnfs
0513-059ThebiodSubsystemhasbeenstarted.SubsystemPIDis245894.
0513-059ThenfsdSubsystemhasbeenstarted.SubsystemPIDis213136.
0513-059Therpc.mountdSubsystemhasbeenstarted.SubsystemPIDis172270.
0513-059ThenfsrgydSubsystemhasbeenstarted.SubsystemPIDis217294.
0513-059ThegssdSubsystemhasbeenstarted.SubsystemPIDis221400.
0513-059Therpc.lockdSubsystemhasbeenstarted.SubsystemPIDis217296.
0513-059Therpc.statdSubsystemhasbeenstarted.SubsystemPIDis221402.
#

在AIX上查看NFS的共享目录
#showmount-elocalhost
exportlistforlocalhost:
/mnt(everyone)
#

在Linux上查看AIX的NFS共享目录:
test01:~#showmount-e192.168.3.162
Exportlistfor192.168.3.162:
/mnt(everyone)
test01:~#

Linux系统挂载NFS目录
test01:~#mount192.168.3.162:/mnt/mnt。