1.1 建NFS文件系统
smitty nfs 启动NFS服务 下面以建/arch1为例:
1:确认2台机器的nfs是启动状态,命令如下: $ lssrc -g nfs
Subsystem Group PID Status
biod nfs 352466 active rpc.statd nfs 413912 active rpc.lockd nfs 295094 active nfsd nfs 573456 active rpc.mountd nfs 475196 active
nfsrgyd nfs inoperative gssd nfs inoperative
2:建NFS文件系统: smitty nfs
Network File System (NFS)
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 [/arch1] Anonymous UID [-2]
Public filesystem? no * Export directory now, system restart or both both Pathname of alternate exports file []
Allow access by NFS versions [] External name of directory (NFS V4 access only) [] Referral locations (NFS V4 access only) [] Replica locations []
Ensure primary hostname in replica list yes Allow delegations? no Scatter none * Security method 1 [sys,krb5p,krb5i,krb5,dh]
* Mode to export directory read-write Hostname list. If exported read-mostly [] Hosts & netgroups allowed client access [] Hosts allowed root access []
Security method 2 [] Mode to export directory [] Hostname list. If exported read-mostly []
Hosts & netgroups allowed client access [sxtssadb1, sxtssadb2]
Hosts allowed root access []
3:/usr/sbin/exportfs -a
4:/usr/sbin/exportfs
5:在客户端 sxtssadb2建目录: mkdir /arch1 在60上执行 mount -o rw,bg,nointr,hard,noac,timeo=600,wsize=32768,rsize=32768 sxtssadb1:/arch1 /arch1 /arch2其他同理 在50上执行 mount -o rw,bg,nointr,hard,noac,timeo=600,wsize=32768,rsize=32768 sxtssadb2:/arch2 /arch2
注:这种使用挂在RAC归档目录,是必须的,不能使用不添加参数方式直接mount,不然在归档的时候会失败的。