做光驱NFS映射可以避免在各分区做光驱的DLPAR操作。具体操作步骤如下:
1.在有光驱的机器启动以下服务:
#startsrc -s portmap
0513-059 The portmap Subsystem has been started. Subsystem PID is 479330.
#startsrc -g nfs
0513-059 The biod Subsystem has been started. Subsystem PID is 471050.
0513-059 The nfsd Subsystem has been started. Subsystem PID is 659672.
0513-059 The rpc.mountd Subsystem has been started. Subsystem PID is 430118.
0513-059 The nfsrgyd Subsystem has been started. Subsystem PID is 749700.
0513-059 The gssd Subsystem has been started. Subsystem PID is 745646.
0513-059 The rpc.lockd Subsystem has been started. Subsystem PID is 749702.
0513-059 The rpc.statd Subsystem has been started. Subsystem PID is 708646.
2.mount cdrom
3.将/cdrom加入export list中:
#smit mknf***p
Add a Directory to Exports List
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[TOP] [Entry Fields]
* Pathname of directory to export [/cdrom] /
Anonymous UID [-2]
Public filesystem? no +
* Export directory now, system restart or both now +
Pathname of alternate exports file []
Allow access by NFS versions [] +
External name of directory (NFS V4 access only) []
* Security method [sys,krb5p,krb5i,krb5,dh,none] +
* Mode to export directory read-only +
Hostname list. If exported read-mostly []
Hosts & netgroups allowed client access []
Hosts allowed root access [ptcdb]
Security method [] +
[MORE...19]
4.#showmount -e
export list for ptctest:
/cdrom (everyone)
5.在要需要使用光驱的服务器做如下操作:
#startsrc -s portmap
0513-059 The portmap Subsystem has been started. Subsystem PID is 635230.
#startsrc -g nfs
0513-059 The biod Subsystem has been started. Subsystem PID is 221412.
0513-059 The nfsd Subsystem has been started. Subsystem PID is 331812.
0513-059 The rpc.mountd Subsystem has been started. Subsystem PID is 229550.
0513-059 The nfsrgyd Subsystem has been started. Subsystem PID is 340110.
0513-059 The gssd Subsystem has been started. Subsystem PID is 311462.
0513-059 The rpc.lockd Subsystem has been started. Subsystem PID is 340112.
0513-059 The rpc.statd Subsystem has been started. Subsystem PID is 364598.
6.创建挂载点:
#mkdir rom
7.观察导出的文件系统:
##showmount -e ptctest --ptctest是有光驱的那台机器
export list for ptctest:
/cdrom (everyone)
8.mount操作:
#mount ptctest:/cdrom /rom
配置过程中典型的错误:
1.nfsmnthelp: 1831-019 ptctest: System call error number -1.
mount: 1831-008 giving up on:
ptctest:/cdrom
System call error number -1.
--这是因为HOSTS文件的问题。检查hosts文件看看是否有错,比如不正确的mapping。两台机器的HOSTS文件要能正确的解析对方的主机名。
2.mount: 1831-011 access denied for ...
默认情况下是防止ROOT用户操作NFS的,所以在mknf***p中的Hosts allowed root access选项中可以明确的填上要共享光驱的主机名。在第一次操作的时候我就遇到了这样的问题,但在第二次进行配置的时候却重现不了这样的问题,有点奇怪。
3.NFS跟.rhosts文件无关;服务器和客户端的安全认证方式在AIX5.3版本上要一致;挂载点最好不在/etc/filesystems中。
阅读(1844) | 评论(0) | 转发(0) |