Server端(dwetl:192.168.32.66)
1.修改/etc/hosts
加入
192.168.32.65 ods
2.创建nfs存储:
创建一个jsf2的文件系统,挂在到/dwetlNfs目录下。
3.mount文件系统:
mount /dwetlNfs
/dev/dwetl_nfslv /dwetlNfs jfs2 Dec 01 17:04 rw,log=/dev/hd8
4.配置Server NFS(实际修改/etc/exports文件,提供nfs服务):
smit mknfsexp
* Pathname of directory to export /dwetlNfs
* Version of exported directory to be changed
Anonymous UID [-2]
Public filesystem? [no]
* Change export 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? []
Scatter none
Security method 1 [sys,krb5p,krb5i,krb5,dh]
Mode to export directory [read-write]
Hostname list. If exported read-mostly [ods]
Hosts & netgroups allowed client access [ods]
Hosts allowed root access [ods]
Client端配置(ods:192.168.32.65)
1.修改/etc/hosts
加入
dwetl 192.168.32.66
2.在文件"/etc/filesystems"中添加如下内容(类似Linux中的fstab):
/dwetlNfs:
dev = /dwetlNfs
vfs = nfs
nodename = dwetl
type = nfs3
log = /tmp/dwetl_nfslog
mount = true
options = rw,bg,hard,intr,proto=tcp,vers=3,rsize=32768,wsize=32768,timeo=600
account = false
3.创建本地挂载节点:
mkdir /dwetlNfs
4.加载NFS文件系统:
mount -o rw,bg,hard,intr,proto=tcp,vers=3,rsize=32768,wsize=32768,timeo=600 dwetl:/dwetlNfs /dwetlNfs
5.测试重启是否能自动挂载:
umount /dwetlNfs
mount /dwetlNfs
mount(查看是否挂载成功dwetlNfs nfs文件系统)
至此,Client就可以正常备份Oracle数据到挂载上来的NFS(/dwetlNfs)了。
如果是11gR2的RAC环境,请参考如下参数完成NFS Client的配置:
/onfs:
dev = /nfs
vfs = nfs
nodename = racdb1
type = nfs3
log = /tmp/nfslog
mount = true
options = cio,rw,bg,hard,intr,rsize=32768,wsize=32768,vers=3,timeo=600,noac
account = false
参考文章:
《Mount Options for Oracle files when used with NFS on NAS devices (文档 ID 359515.1)》:http://blog.itpub.net/23135684/viewspace-625315/
--end--
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23135684/viewspace-624480/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/23135684/viewspace-624480/