首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > 其他操作系统 > NFS Mount Problem Determination
【标  题】:NFS Mount Problem Determination
【关键字】:NFS,Mount,Problem,Determination
【来  源】:http://blog.chinaunix.net/article.php?articleId=58773&blogId=12

NFS Mount Problem Determination

今天一个朋友问aix 和nas的事情.手头的资料都在公司.所以上网给他找了一个资料还不错.

NFS Mount Problem Determination

Abstract
This technote shows some common NFS mount problems on AIX and gives you some ideas on how to solve them. These connectivity issues can occur when you are trying to mount an exported IBM TotalStorage NAS Gateway 500 NFS share from any NFS client (UNIX/AIX/Linux).
.
Contents
_
Check if the file system you try to mount is exported

When a mount request is sent to a server for an export that does not exist, the error message shown in the example below appears.

AIX NFS mounting error 1:

# mount nas500:/nasnfs /nas
mount: 1831-011 access denied for nas500:/nasnfs
mount: 1831-008 giving up on:
nas500:/nasnfs
The file access permissions do not allow the specified action.

Then you must check if the directory you want to mount is actually exported on the NAS Gateway 500. To check what file systems, directories, or files are exported from NAS Gateway 500, use the showmount command as follows:

showmount -e <IP address of NAS Gateway 500>

The output from the command shows you the directories exported, and to whom they are exported.

If NAS Gateway 500 doesn’t respond to the showmount command, or the error shown in following example is reported, you should check if the NFS server daemons are running at NAS Gateway 500.

AIX RPC error:

RPC: 1832-019 Program not registered

Use this command:
rpcinfo -p <IP address of NAS Gateway 500>

The following example shows the output you will get from this command.

rpcinfo on AIX:

# rpcinfo -p 9.1.38.198
program vers proto port service
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100021 1 udp 32772 nlockmgr
100021 2 udp 32772 nlockmgr
100021 3 udp 32772 nlockmgr
100021 4 udp 32772 nlockmgr
100021 1 tcp 32773 nlockmgr
100021 2 tcp 32773 nlockmgr
100021 3 tcp 32773 nlockmgr
100021 4 tcp 32773 nlockmgr
100024 1 tcp 32789 status
100024 1 udp 32798 status
100133 1 tcp 32789
100133 1 udp 32798
200001 1 tcp 32789
200001 1 udp 32798
200001 2 tcp 32789
200001 2 udp 32798

The output shows that the portmap (program 100000) is available, but statd (100024), lockd (100021), nfsd (100003), and mountd (100005) are not available. This means the NFS server is not up and running. You must review the NFS exports configuration steps introduced in the beginning of this chapter. Make sure there is no error generated when you make or modify NFS exports.

The reverse lookup problem on AIX
Sometimes you mount an NFS share through the SMIT menu or command line and get the error message shown in the following example.


AIX NFS mounting error 2:

# mount nas500:/home /mnt
nfsmnthelp: 1831-019 nas500: System call error number -1.
mount: 1831-008 giving up on:
nas500:/home
System call error number -1.

This is usually caused by the reverse lookup problem, which means NAS Gateway 500 can not resolve AIX client’s IP address to host name.

There are several ways for the NAS Gateway 500 to make the IP address to host name resolution. The most widely used methods in the TCP/IP world are DNS system and local file mapping. For availability reasons, we highly recommend that you use local file mapping, that is, store host to IP address mapping in the /etc/hosts file on NAS Gateway 500. We just do not want a DNS server outage to bring down the storage system.

Next we explain how to manage the local mapping on NAS Gateway 500.

First of all, you need to build an interactive session to the NAS Gateway 500, either through terminal or through telnet.

  1. Login as root user. Run the command smitty hostent.
  2. You will get the smitty Hosts table (/etc/hosts) screen.
  3. You can add, remove, and modify local IP addresses to host name mapping entries here. You select the Add a host task and provide the next host information.The other functions of this menu are also very straightforward


After adding all mappings for your storage client, SMITTY will process your input. Following that you can check your NFS exports using SMITTY to verify, and then try the NFS mount again; the problem should be solved.

Check the syntax on the mount command
Try to use SMIT menus while mounting a NFS share on AIX instead of long and complex command line entries, this can help you avoid a lot of errors.


Important: Always remember that only root can issue any mount command, and system group members can issue mounts, provided they have write access to the mount point.

.
Special Notices

This material has not been submitted to any formal IBM test and is published AS IS. It has not been the subject of rigorous review. IBM assumes no responsibility for its accuracy or completeness. The use of this information or the implementation of any of these techniques is a customer responsibility and depends upon the customer's ability to evaluate and integrate them into the customers operational environment.

.
AIX 的许可权限:【上一篇】
内存优化:【下一篇】
【相关文章】
  • 新增/home/Test0目录只有在umount /home之后才能访问
  • Solaris nfs server & client配置
  • Stale NFS file handle的解决方法
  • mount用法
  • freebsd下mount windows分区
  • nis + autofs + nfs
  • 终于MOUNT成功.
  • Problems with ClusterKnoppix 3.6
  • mount ntfs的盘时,如何能看到那些名字有中文的文件和目录
  • Performing Mounts and Unmounts 4-19
  • 【随机文章】
  • 1.6 基础ActionScript程序(1)
  • Spring in Action 学习笔记—第七章 访问企业服务
  • FrameBuffer的重要数据结构
  • 最简单的加载大对象到LOB字段的方法
  • Java的秘密武器:使用全屏幕模式
  • 编译MYSQL的步骤
  • oracle相关技术资料
  • 转 台湾一杀毒商,最上面是老总的手提电脑
  • 轮廓提取源程序
  • 如何在Java程序内实现键盘监听?
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.