




已阅读5页,还剩1页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
AIX 上使用NFS实现AIX之间文件网络共享 作者:tomroom 环保男 环境AIX 6.1 AIX 可以使用NFS在AIX之间实现类似window共享文件夹功能,在多台aix上安装系统补丁的时候比较有用只需要在一台服务器上FTP上传,其他AIX通过共享访问(注意不要多台一起访问可能会由于I/O繁忙带有问题)注意:1. 多台AIX之前在同一个局域网子网段中没有问题,若跨网段请确认网络开通NFS端口2. 下面我都是用root账户登录操作3. 要在A,B两端的/etc/hosts里互相都加上彼此的IP地址和hostname(若不用DNS都通过hosts表里namel 第一部分在AIX服务器A 上面建里要通过NFS共享的目录比如:根目录下/test目录 # ls -ltotal 8-rw-r- 1 root system 543 Jul 24 03:39 temp.txt/test目录中存放一个文件temp.txt内容如下,后面可以用这个验证共享成功# cat temp.txt SBMJOB CMD(STROBJCVN LIB(*ALLUSR) LOG(4 0 *SECLVL) S6564E5B定时任务 DAILY4 HOLD磁带机中磁带 卷标 001176推入磁带机TAP07Opt Queue Manager Port HHT 1417 MQM HHT Opt Queue Manager Port HHT 1414 HHT 1417 A机器上运行# smit nfs 先选择Network File System (NFS) NFSMove cursor to desired item and press Enter. Configure TCP/IP (If Not Already Configured) Network File System (NFS) Network Information Service (NIS) Configure Secure NFS & NIS再选择Add a Directory to Exports List(先Change / Show Attributes of an Exported Directory确认目录之前没有被Exported Network File System (NFS)Move cursor to desired item and press Enter. Configure NFS on This System Add a Directory to Exports List Change / Show Attributes of an Exported Directory Remove a Directory from Exports List Add a File System for Mounting Change / Show Attributes of an NFS File System Remove an NFS File System Flush NFS V4 Translation Cache Add NFSv4 File System FSID Options Change / Show NFSv4 File System FSID Options Reset NFSv4 File System FSID Options下面画面中* Pathname of directory to export 输入导出目录路径和名称 /test Add a Directory to Exports ListType or select values in entry fields.Press Enter AFTER making all desired changes.TOP Entry Fields* Pathname of directory to export /test Anonymous UID -2 Public filesystem? no * Export directory now, system restart or both both 运行完成之后如下提示 COMMAND STATUSCommand: running stdout: yes stderr: noBefore command completion, additional instructions may appear below.0513-059 The nfsd Subsystem has been started. Subsystem PID is 5505044.0513-059 The rpc.mountd Subsystem has been started. Subsystem PID is 7077952.l 第二部分在另外一台服务器B上运行smitty nfs选择Network File System (NFS) NFSMove cursor to desired item and press Enter. Configure TCP/IP (If Not Already Configured) Network File System (NFS) Network Information Service (NIS) Configure Secure NFS & NISB机器上选择Add a File System for Mounting Network File System (NFS)Move cursor to desired item and press Enter. Configure NFS on This System Add a Directory to Exports List Change / Show Attributes of an Exported Directory Remove a Directory from Exports List Add a File System for Mounting Change / Show Attributes of an NFS File System Remove an NFS File System Flush NFS V4 Translation Cache Add NFSv4 File System FSID Options Change / Show NFSv4 File System FSID Options Reset NFSv4 File System FSID OptionsPathname of mount point 填B机上mount点Pathname of remote directory填A机上路径Host where remote directory resides填A机主机名(在A机器上运行hostname获得) Add a File System for MountingType or select values in entry fields.Press Enter AFTER making all desired changes.TOP Entry Fields* Pathname of mount point /tmp/test/ * Pathname of remote directory /test* Host where remote directory resides svr05427 Mount type name * Security method sys * Mount now, add entry to /etc/filesystems or both? now * /etc/filesystems entry will mount the directory no on system restart. 注意: 要在A,B两端的/etc/hosts里互相都加上彼此的IP地址和hostname若提示not in hosts database 需要修改B机器上/etc/hosts文件增加A服务器的IP地址和hostname COMMAND STATUSCommand: failed stdout: yes stderr: noBefore command completion, additional instructions may appear below.mount: 1831-009 svr05427 not in hosts databasemount: 1831-008 giving up on:svr05427:/testA route to the remote host is not available.若有如下错误可能网络上没有开放NFS需要的端口 COMMAND STATUSCommand: failed stdout: yes stderr: noBefore command completion, additional instructions may appear below.nfsmnthelp: 1831-019 svr05427: System call error number -1.mount: 1831-008 giving up on:svr05427:/testSystem call error number -1.成功之后可以在B机上smit mount中 List all能看到mount上文件验证,并访问共享文件内容确认可以访问l 卸载取消在B机上可以用smit umount指定上面B机上mount点可以在B机器上取消该NFS在A机器上卸载,smit nfs选择Remove a Directory from Exports List 输入路径 Network File System (NFS)Move cursor to desired item and press Enter. Configure NFS on This System Add a Directory to Exports List Change / Show Attributes of an Exported Directory Remove a Directory from Exports List Add a File System for Mounting Change / Show Attributes of an NFS File System Remove an NFS File System Flush NFS V4 Translation Cache Add NFSv4 File System FSID Options Change / Show NFSv4 File System FSID Options Reset NFSv4 File System FSID Optionsl 权限我两台机器都是用root账户访问权限两台都是如下一样# ls -ltotal 8-rw-r- 1 root system 543 Jul 24 06:10 temp.txtl 附录:l windows端也能访问AIX NFS ,也有建议window访问aix文件系统SAMBA比NFS好比如:/jh/9/503373.html经常碰到一些客户需要将PCServer的数据定期放到运行AIX操作系统的6000小机的 磁带机上备份,做了几个这样的案例Share一下:) 1、下载SFU SFU是微软的一款与UNIX系统进行文件共享的软件100M左右。可在Windows端模拟NFSServer或者使 Windows成为NFSClient。他是免费的。下载时需要.net帐户(msn的就行) 2、在Windows端安装SFU软件。选择作为NFSClient。安装时间较长。安装结束后可以在网上邻居中发现新增加了一个叫做SFU的 工作组(好像是这个名字) 在上面点击右键选择添加,将6000的IP地址加入。在6000一端开启NFS服务。刷新后就可看到该服务器了 3、身分认证:在两端建立相同帐号,需要在6000上编辑/etc/hosts文件。将需要访问NFS路径的服务器IP地址与机器名称加入。这是 在PCServer端就可以访问该共享文件夹了。在上面还可进行权限的管理有兴趣的自己实验吧。 最后:使用Windows备份策略定期将被分文件写入该文件夹。在AIX上编辑crontab即可。“AIX 上使用NFS实现AIX之间文件
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 水墨插画风儿童故事绘本双管齐下
- 典型行政法学试题与答案汇编
- 执业医师考试各科目重难点分析试题及答案
- 中国文化自信的时代意义试题及答案
- 护理临床研究设计试题及答案分析
- 常见错误与解决方案执业医师考试试题及答案
- 护理技能提升策略执业护士考试试题及答案
- 网络文化对青少年心理的影响试题及答案
- 护理学实践能力考核试题及答案
- 护理统计学基本知识试题及答案
- 解除实习协议书(2篇)
- 2025年部编版新教材语文一年级下册第七单元复习课教案
- 《低压电工实操及考证》全套教学课件
- 个人阅兵申请书
- 颈椎病课件完整版
- 2025年国家药监局医疗器械技术审评检查大湾区分中心事业编制人员招聘5人历年高频重点提升(共500题)附带答案详解
- 巡逻盘查培训课件
- GB/T 39733-2024再生钢铁原料
- 《工业机器人现场编程》课件-任务3.涂胶机器人工作站
- 程序设计高级应用(Java程序设计)知到智慧树章节测试课后答案2024年秋山东劳动职业技术学院
- 2025年教师资格考试高级中学学科知识与教学能力物理试题与参考答案
评论
0/150
提交评论