当前位置:主页 >raybet雷电竞官网

raybet雷电竞官网:Linux系统挂载AIX NFS服务器的配置方法

发布时间:02月07日 阅读:676



1、筹备AIX办事器

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

# stopsrc -g nfs

0513-044 The biod Subsystem was requested to stop.

0513-044 The nfsd Sraybet雷电竞官网ubsystem was requested to stop.

0513-044 The rpc.mountd Subsystem was requested to stop.

0513-044 The rpc.lockd Subsystem was requested to stop.

0513-044 The rpc.statd Subsystem was requested to stop.

#

-g表示竣事一组nfs相关的进程

# stopsrc -s portmap

0513-044 The portmap Subsystem was requested to stop.

#

# cd /etc

# rm -rf sm sm.bak state xtab rmtab

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 -s portmap

0513-059 The portmap Subsystem has been started. Subsystem PID is 233644.

# startsrc -g nfs

0513-059 The biod Subsystem has been started. Subsystem PID is 245894.raybet雷电竞官网raybet雷电竞官网

0513-059 The nfsd Subsystem has been started. Subsystem PID is 213136.

0513-059 The rpc.mountd Subsystem has been started. Subsystem PID is 172270.

0513-059 The nfsrgyd Subsystem has been started. Subsystem PID is 217294.

0513-059 The gssd Subsystem has been started. Subsystem PID is 221400.

0513-059 The rpc.lockd Subsystem has been started. Subsystem PID is 217296.

0513-059 The rpc.statd Subsystem has been started. Subsystem PID is 221402.

#

在AIX上查看NFS的共享目录

# showmount -e localhost

export list for localhost:

/mnt (everyone)

#

在Linux上查看AIX的NFS共raybet雷电竞官网享目录:

test01:~ # showmount -e 192.168.3.162

Export list for 192.168.3.162:

/mnt (everaybet雷电竞官网ryone)

test01:~ #

Linux系统挂载NFS目录

test01:~ # mount 192.168.3.162:/mnt /mnt。



上一篇:雷竞技下载官方版:一棵小草的坚守新闻频道中国青年网
下一篇:电竞下载app送彩金:《环球时报》社评:向李文亮医生致以敬意