- 浏览: 959105 次
- 性别:
- 来自: 杭州
文章分类
最新评论
-
孤星119:
好熟悉的数据库字段啊, 上家公司做的项目每天都跟这些字段打招呼 ...
Oracle exp compress参数引起的空间浪费 -
itspace:
quxiaoyong 写道遇到个问题,网上一搜,全他妈这篇文章 ...
数据库连接错误ORA-28547 -
quxiaoyong:
遇到个问题,网上一搜,全他妈这篇文章。你转来转去的有意思吗?
数据库连接错误ORA-28547 -
hctech:
关于version count过高的问题,不知博主是否看过ey ...
某客户数据库性能诊断报告 -
itspace:
invalid 写道写的不错,我根据这个来安装,有点理解错误了 ...
AIX 配置vncserver
介绍解决方法之前,先简单说明系统环境,共涉及到4台主机。为了保护客户隐私,ip地址做了修改。NFS服务端主机名为dqsbbak,操作系统版本为6100-01。hosts文件主要条目为
客户端共有三台主机。
客户端一主机名为dqora,操作系统版本为5300-04,hosts文件主要条目为
客户端二主机名为dqapp,操作系统版本为5300-05。
其hosts文件主要条目为
客户端三主机名为dqjynew,操作系统版本为6100-01。其hosts主要条目为
其中主机dqora和dqapp做了HA互备,10.90.144.6和10.90.144.8分别为dqora和dqapp的服务ip。
一、服务端操作。
1、检查服务端nfs进程。
2、启动服务端nfs进程。
3、配置hosts文件,添加以下ip地址
4、配置exports文件
二、客户端操作。
1、在dqora,dqapp建立文件夹/Tbackup/dqsb,在dqjynew建立文件/Tbackup/dqjy
2、每个客户端检查进程portmap是否启动正常
3、在客户端配置文件/etc/hists文件添加如下条目
4、在客户端dqora,dqora配置文件/etc/filesystems中添加如下条目
在客户端dqjynew配置文件/etc/filesystems中添加如下条目
5、在dqjynew主机上挂载nfs文件系统,文件系统成功挂载
在dqora,dqapp主机上挂载nfs文件系统,文件系统挂载错误
经查官方文档有如下解释,红色字体部分明确说明服务端和客户端需要在hosts文件一一对应。由上面的操作步骤中,可以看出,服务端和客户端已经做了明确对应。
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.[color=red] 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.
[/color]
分析造成以上错误的原因:
1、服务端dqsbbak版本为6100,出现错误的客户端版本为5300。而客户端6100挂载nfs则完全正常。莫非是版本不兼容造成?但据以往实施经验,nfs可以在unix,linux平台上自由挂载,没理由在AIX 5L和6L中不能互相挂载。
2、由于客户端dqora,dqapp做了HA互备,莫非是HA影响了NFS挂载?为了印证上述猜想。修改服务端hosts文件,添加如下条目:
修改/etc/exports,即将各客户端的服务ip替换为永久ip
3、将修改生效
4、在客户端再次挂载nfs,挂在成功。
dqora:/# mount /Tbackup/dqsb
引用
127.0.0.1 loopback localhost
10.90.150.78 dqsbbak
10.90.150.78 dqsbbak
客户端共有三台主机。
客户端一主机名为dqora,操作系统版本为5300-04,hosts文件主要条目为
引用
127.0.0.1 loopback localhost # loopback (lo0) name/address
#dqora
100.10.10.1 dqora_boot1 dqora
100.10.20.1 dqora_boot2 dqora
10.90.144.6 dqora_svc dqora
10.90.144.7 dqora_pre
#dqapp
100.12.10.2 dqapp_boot1 dqapp
100.12.20.2 dqapp_boot2 dqapp
10.90.144.8 dqapp_svc dqapp
10.90.144.9 dqapp_pre
192.168.0.100 dqora
10.90.144.13 backup
#dqora
100.10.10.1 dqora_boot1 dqora
100.10.20.1 dqora_boot2 dqora
10.90.144.6 dqora_svc dqora
10.90.144.7 dqora_pre
#dqapp
100.12.10.2 dqapp_boot1 dqapp
100.12.20.2 dqapp_boot2 dqapp
10.90.144.8 dqapp_svc dqapp
10.90.144.9 dqapp_pre
192.168.0.100 dqora
10.90.144.13 backup
客户端二主机名为dqapp,操作系统版本为5300-05。
其hosts文件主要条目为
引用
127.0.0.1 loopback localhost # loopback (lo0) name/address
#dqora
100.10.10.1 dqora_boot1 dqora
100.10.20.1 dqora_boot2 dqora
10.90.144.6 dqora_svc dqora
10.90.144.7 dqora_pre
#dqapp
100.10.10.2 dqapp_boot1 dqapp
100.10.20.2 dqapp_boot2 dqapp
10.90.144.8 dqapp_svc dqapp
10.90.144.9 dqapp_pre
192.168.0.101 dqapp
10.90.144.13 backup
#dqora
100.10.10.1 dqora_boot1 dqora
100.10.20.1 dqora_boot2 dqora
10.90.144.6 dqora_svc dqora
10.90.144.7 dqora_pre
#dqapp
100.10.10.2 dqapp_boot1 dqapp
100.10.20.2 dqapp_boot2 dqapp
10.90.144.8 dqapp_svc dqapp
10.90.144.9 dqapp_pre
192.168.0.101 dqapp
10.90.144.13 backup
客户端三主机名为dqjynew,操作系统版本为6100-01。其hosts主要条目为
引用
127.0.0.1 loopback localhost
10.90.144.15 dqjynew
10.90.144.15 dqjynew
其中主机dqora和dqapp做了HA互备,10.90.144.6和10.90.144.8分别为dqora和dqapp的服务ip。
一、服务端操作。
1、检查服务端nfs进程。
引用
# lssrc -g nfs
Subsystem Group PID Status
biod nfs 172190 active
rpc.statd nfs 119182 active
rpc.lockd nfs 147652 active
nfsd nfs inoperative
rpc.mountd nfs inoperative
nfsrgyd nfs inoperative
gssd nfs inoperative
Subsystem Group PID Status
biod nfs 172190 active
rpc.statd nfs 119182 active
rpc.lockd nfs 147652 active
nfsd nfs inoperative
rpc.mountd nfs inoperative
nfsrgyd nfs inoperative
gssd nfs inoperative
2、启动服务端nfs进程。
引用
# startsrc -g nfs
0513-029 The biod Subsystem is already active.
Multiple instances are not supported.
0513-059 The nfsd Subsystem has been started. Subsystem PID is 528854.
0513-059 The rpc.mountd Subsystem has been started. Subsystem PID is 671898.
0513-059 The nfsrgyd Subsystem has been started. Subsystem PID is 659720.
0513-059 The gssd Subsystem has been started. Subsystem PID is 647348.
0513-029 The rpc.lockd Subsystem is already active.
Multiple instances are not supported.
0513-029 The rpc.statd Subsystem is already active.
Multiple instances are not supported.
# lssrc -g nfs
Subsystem Group PID Status
biod nfs 172190 active
rpc.statd nfs 119182 active
rpc.lockd nfs 147652 active
nfsd nfs 528854 active
rpc.mountd nfs 671898 active
nfsrgyd nfs inoperative
gssd nfs inoperative
0513-029 The biod Subsystem is already active.
Multiple instances are not supported.
0513-059 The nfsd Subsystem has been started. Subsystem PID is 528854.
0513-059 The rpc.mountd Subsystem has been started. Subsystem PID is 671898.
0513-059 The nfsrgyd Subsystem has been started. Subsystem PID is 659720.
0513-059 The gssd Subsystem has been started. Subsystem PID is 647348.
0513-029 The rpc.lockd Subsystem is already active.
Multiple instances are not supported.
0513-029 The rpc.statd Subsystem is already active.
Multiple instances are not supported.
# lssrc -g nfs
Subsystem Group PID Status
biod nfs 172190 active
rpc.statd nfs 119182 active
rpc.lockd nfs 147652 active
nfsd nfs 528854 active
rpc.mountd nfs 671898 active
nfsrgyd nfs inoperative
gssd nfs inoperative
3、配置hosts文件,添加以下ip地址
引用
10.90.144.6 dqora
10.90.144.8 dqapp
10.90.144.15 dqjynew
10.90.144.8 dqapp
10.90.144.15 dqjynew
4、配置exports文件
引用
# cat /etc/exports
/Tbackup/dqsb -rw,access=dqora:dqapp
/Tbackup/dqjy -rw,access=dqjynew
/Tbackup/dqsb -rw,access=dqora:dqapp
/Tbackup/dqjy -rw,access=dqjynew
二、客户端操作。
1、在dqora,dqapp建立文件夹/Tbackup/dqsb,在dqjynew建立文件/Tbackup/dqjy
2、每个客户端检查进程portmap是否启动正常
引用
# lssrc -s portmap
Subsystem Group PID Status
portmap portmap 352434 active
Subsystem Group PID Status
portmap portmap 352434 active
3、在客户端配置文件/etc/hists文件添加如下条目
引用
10.90.150.78 dqsbbak
4、在客户端dqora,dqora配置文件/etc/filesystems中添加如下条目
引用
/Tbackup/dqsb:
dev= "/Tbackup/dqsb"
vfs= nfs
nodename= dqsbbak
mount= true
type= nfs
options= rw,bg,hard,intr,vers=3,rsize=32768,wsize=32768,timeo=600,proto=tcp,biods=32
account= false
dev= "/Tbackup/dqsb"
vfs= nfs
nodename= dqsbbak
mount= true
type= nfs
options= rw,bg,hard,intr,vers=3,rsize=32768,wsize=32768,timeo=600,proto=tcp,biods=32
account= false
在客户端dqjynew配置文件/etc/filesystems中添加如下条目
引用
/Tbackup/dqjy:
dev= "/Tbackup/dqjy"
vfs= nfs
nodename= dqsbbak
mount= true
type= nfs
options= rw,bg,hard,intr,vers=3,rsize=32768,wsize=32768,timeo=600,proto=tcp,biods=32
account= false
dev= "/Tbackup/dqjy"
vfs= nfs
nodename= dqsbbak
mount= true
type= nfs
options= rw,bg,hard,intr,vers=3,rsize=32768,wsize=32768,timeo=600,proto=tcp,biods=32
account= false
5、在dqjynew主机上挂载nfs文件系统,文件系统成功挂载
引用
dqjynew:/# mount /Tbackup/dqjy
在dqora,dqapp主机上挂载nfs文件系统,文件系统挂载错误
引用
dqora:/# mount /Tbackup/dqsb
nfsmnthelp: 1831-019 dqsbbak: System call error number -1.
mount: 1831-008 giving up on:
dqsbbak:/Tbackup/dqsb
System call error number -1.
nfsmnthelp: 1831-019 dqsbbak: System call error number -1.
mount: 1831-008 giving up on:
dqsbbak:/Tbackup/dqsb
System call error number -1.
经查官方文档有如下解释,红色字体部分明确说明服务端和客户端需要在hosts文件一一对应。由上面的操作步骤中,可以看出,服务端和客户端已经做了明确对应。
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.[color=red] 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.
[/color]
分析造成以上错误的原因:
1、服务端dqsbbak版本为6100,出现错误的客户端版本为5300。而客户端6100挂载nfs则完全正常。莫非是版本不兼容造成?但据以往实施经验,nfs可以在unix,linux平台上自由挂载,没理由在AIX 5L和6L中不能互相挂载。
2、由于客户端dqora,dqapp做了HA互备,莫非是HA影响了NFS挂载?为了印证上述猜想。修改服务端hosts文件,添加如下条目:
引用
10.90.144.7 dqora_pre
10.90.144.9 dqapp_pre
10.90.144.9 dqapp_pre
修改/etc/exports,即将各客户端的服务ip替换为永久ip
引用
/Tbackup/dqjy -rw,access=dqjynew
/Tbackup/dqsb -rw,access=
/Tbackup/dqsb -rw,access=
引用
dqora_pre:dqapp_pre
3、将修改生效
引用
#exportfs -a
4、在客户端再次挂载nfs,挂在成功。
dqora:/# mount /Tbackup/dqsb
发表评论
-
记一次rsync在nfs环境下错误处理
2011-05-26 13:44 2398公司有一应用,即利用rsync开源工具从生产机拉归档日志至备份 ... -
浅谈AIX /var/adm/wtmp
2010-12-11 18:42 4966今天登陆系统时报如下错误 引用telnet (mcsvr) ... -
AIX和linux之间挂载nfs错误
2010-11-25 12:12 1856linux作为nfs服务器,其/etc/exports文件为 ... -
记一次存储不可读修复
2010-08-31 14:05 2136同事告诉我一AIX主机文件系统不可写 引用# touch ll ... -
记一次AIX平台存储脏块处理
2010-08-06 13:36 2516客户数据库出现问题,归档日志不可读,具体表现为 引用$ du ... -
AIX 配置vncserver
2010-06-08 09:40 8287我们安装数据库时,很多情况下客户现场并没有配置图形界面,这是就 ... -
vi替换文本中的^M
2010-04-16 13:27 2988工作中经常碰到^M结尾的文本,可以用以下方法替换 引用:%s/ ... -
AIX 查看网卡是否做绑定
2010-04-08 11:49 5054可以通过lsattr命令查看网卡是否做过绑定,以下仅作记录 引 ... -
AIX查看rootvg是否做镜像
2010-04-08 11:22 2916因工作需要,仅作记录 AIX查看rootvg是否做镜像,只需要 ... -
AIX 使用lsof查看端口占用进程
2010-03-12 10:05 10750lsof功能很强大,这里主要介绍使用lsof查看端口占用进程, ... -
AIX 关闭ftp服务
2010-03-12 09:29 6386很多情况下,比如处于安全考虑,我们需要关闭ftp服务。在AIX ... -
AIX working with the LDR_CNTRL environment variable
2010-03-11 08:48 2439The LDR_CNTRL environment varia ... -
AIX 查看aio状态
2010-03-10 15:31 9475Aix平台打开异步io需要fileset支持 引用# lslp ... -
Aix 查看进程占用内存大小(按从大小排列)
2010-03-08 13:43 14780主要通过以下两条命令进行观察,单位为K RSS表示the am ... -
AIX 6L虚拟内存参数变化
2010-02-08 14:31 1970操作系统版本为: 引用P590_lpar1/>oslev ... -
AIX 查看HA脚本位置
2010-01-20 09:14 2802#smitty hacmp =>Initializati ... -
AIX 虚拟内存管理(VMM)优化
2010-01-14 16:17 2406AIX版本为 引用#oslevel -r 5300-04 查看 ... -
AIX 域名解析顺序
2010-01-07 15:55 2975AIX 主机IP地址的解析顺序依次是dns/bind,nis, ... -
AIX ruby调用openssl LoadError
2010-01-05 16:35 2449ruby调用openssl时报如下错误: 引用 # oslev ... -
AIX 平台ruby卸载
2010-01-05 16:27 1428ruby在AIX平台下默认安装路径如下,将以下文件删除即可 引 ...
相关推荐
本文详细描述了使用sfu采用NFS协议在windows与AIX之间共享文件,其他文档中都没有特别详细的描述,在大家做的过程中可能会出现问题,这篇操作手册将解决所有可能遇到的问题~不过里面还是有一些技术问题没有解决,...
NFS提供的服务 Mount: 通过在服务端启用/usr/sbin/rpc.mountd伺服进程,在客户端使用mount命令,mounted伺服进程是一个RPC来回应客户端的请求 Remote File access:通过在服务端启用/usr/sbin/nfsd和在客户端启用...
AIX 技术资料-AIX 技术资料-AIX 技术资料-AIX 技术资料-AIX 技术资料-AIX 技术资料-AIX 技术资料-AIX 技术资料-AIX 技术资料-AIX 技术资料-AIX 技术资料-AIX 技术资料-
AIX_7.1_Updates_7100-03-03_62014.tar.gz3.37GB AIX_7.1_Information_Center_for_x86_012014.tar.gz3.11GB Information_Center_V7.1_for_POWER_012014.tar.gz3.06GB AIX_7.1_ba<x>se_Operating_System_TL_...
AIX操作系统命令的详细解释,每个命令都有详细解释包括命令参数,命令对象,命令例子
AIX操作系统命令的详细解释,每个命令都有详细解释包括命令参数,命令对象,命令例子
AIX操作系统命令的详细解释,每个命令都有详细解释包括命令参数,命令对象,命令例子
AIX操作系统命令的详细解释,每个命令都有详细解释包括命令参数,命令对象,命令例子
此资源为AIX7.2版本 cd1和cd2,已经上传度盘 aix_7200-04-02-2027_1of2_072020.iso aix_7200-04-02-2027_2of2_072020.iso 通过qemu-system-ppc程序能在X86平台安装运行 此资源为AIX7.1版本 cd1和cd2 AIX_7.1_Base_...
AIX- 第二个 用户 root -id
AIX操作系统命令的详细解释,每个命令都有详细解释包括命令参数,命令对象,命令例子
AIX\IBM Certification Study Guide - pSeries AIX System Administration SG24-6191-00.pdf
1,Redhat5.3建立NFS共享的设置 2,AIX6.1做客户端设置设置 3,AIX的smitty命令,自动mount及修改filesystems
1,linux及AIX上建立AIX共享 2,手动mount不同服务器上的共享路径 3,linux及AIX系统启动自动mount的建立
本文档详细记述了一次AIX下NFS服务的配置全过程,希望对您有所用处
《AIX5.3通用编程概念:编写并调试程序》《AIX5.3通用编程概念:编写并调试程序》
AIX上NFS配置.pdf
AIX 5L 卷2 版本5.2 AIX命令参考大全 卷2 d-h
AIX 6 System Administration II: Problem Determination (Course code AU16) Student Exercises with hints 自测练习题