LINUX 作为NFS服务端,AIX作为NFS客户端,配置过程如下:
一、linux服务端
1.创建nfs目录
mkdir -p 【NFS_EXPORT_PATH】
2.定义共享策略
vi /etc/exports
添加 【NFS_EXPORT_PATH】 *(rw,no_root_squash,sync)
3.设置NFS服务开机自启动
chkconfig nfs on;chkconfig nfslock on
4.启动NFS服务
service nfs start
二、aix客户端
1.设置nfs服务端的主机名及ip地址
vi /etc/hosts
添加 nfsrv 【NFS_SERVER_IP_ADDRESS】
2.设置AIX系统执行mount命令请求时使用预先定义好的端口
nfso -o nfs_use_reserved_ports=1
3.创建nfs挂载目录
mkdir -p 【NFS_MOUNT_PATH】
4.挂载nfs
手工挂载
mount nfsrv:【NFS_EXPORT_PATH】 【NFS_MOUNT_PATH】
自动挂载:smitty nfs
smitty nfs > Network File System (NFS) > Add a File System for Mounting
Add a File System for Mounting
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* Pathname of mount point [/mnt/nfsShare]
* Pathname of remote directory [/nfs_data]
* Host where remote directory resides [10.1.1.1]
Mount type name []
* Security method [sys]
* Mount now, add entry to /etc/filesystems or both? both
* /etc/filesystems entry will mount the directory yes
on system restart.
* Mode for this NFS file system read-write
* Attempt mount in foreground or background background
Number of times to attempt mount []
Buffer size for read []
Buffer size for writes []
NFS timeout. In tenths of a second []
NFS version for this NFS filesystem any
Transport protocol to use any
Internet port number for server []
* Allow execution of setuid and setgid programs yes
in this file system?
* Allow device access via this mount? yes
* Server supports long device numbers? yes
* Mount file system soft or hard hard
Minimum time, in seconds, for holding [3]
attribute cache after file modification
Allow keyboard interrupts on hard mounts? yes
Maximum time, in seconds, for holding [60]
attribute cache after file modification
Minimum time, in seconds, for holding [30]
attribute cache after directory modification
Maximum time, in seconds, for holding [60]
attribute cache after directory modification
Minimum & maximum time, in seconds, for []
holding attribute cache after any modification
The maximum number of biod daemons allowed [6]
to work on this file system
* Use acls on this mount? no
Number of NFS retransmits []
* Exchange POSIX pathconf information? no
* Inherit group IDs? no
添加新评论0 条评论