今天在家折腾自己的小实验室,把自己NAS上的一个目录用NFS挂载到一套11g RAC的实验环境中。
当我在备份数据库到NAS上时,发现一个奇怪的问题,同样的目录下,默认backup 备份集的情况,备份是成功的,但如果使用backup as copy备份则会报错,现象如下:

RMAN> backup datafile 6 format '/public/backup/oradb23/dbs_d_jingyu.bak';Starting backup at 25-MAR-17
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00006 name=+DATA/jyzhao/datafile/dbs_d_jingyu.268.937515173
channel ORA_DISK_1: starting piece 1 at 25-MAR-17
channel ORA_DISK_1: finished piece 1 at 25-MAR-17
piece handle=/public/backup/oradb23/dbs_d_jingyu.bak tag=TAG20170325T210550 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:07
Finished backup at 25-MAR-17Starting Control File and SPFILE Autobackup at 25-MAR-17
piece handle=/public/backup/oradb23/c-2520969382-20170325-01 comment=NONE
Finished Control File and SPFILE Autobackup at 25-MAR-17RMAN> backup as copy datafile 6 format '/public/backup/oradb23/%u.dbf';Starting backup at 25-MAR-17
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
input datafile file number=00006 name=+DATA/jyzhao/datafile/dbs_d_jingyu.268.937515173
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 03/25/2017 21:07:30
ORA-19504: failed to create file "/public/backup/oradb23/0vs0200h.dbf"
ORA-27054: NFS file system where the file is created or resides is not mounted with correct options
Additional information: 3
Additional information: 12RMAN>

看backup as copy的报错明显是告诉我们无法在/public/backup/oradb23/目录下创建文件,但目录肯定有写权限,不然备份集备份也一样不会成功。
使用oerr简单先查看该错误号的说明:

[oracle@oradb23 ~]$ oerr ora 27504
27504, 00000, "IPC error creating OSD context"
// *Cause:  This is an operating system/cluster interconnect error.
// *Action: Check the value of errno and contact Oracle Support Services.

也没有太多有价值的内容。

进而查看MOS,最终找到下面这篇文档,
Mount Options for Oracle files for RAC databases and Clusterware when used with NFS on NAS devices (文档 ID 359515.1)

RAC including RACone and single instance RAC

In the table below

Binaries is the shared mount points where the Oracle Home and CRS_HOME is installed.
Datafiles includes Online Logs, Controlfile and Datafiles
nfsvers and vers are identical on those OS platforms that has nfsvers. The ver option is an alternative to the nfsvers option. It is included for compatibility with other operating systems
Please note that the mount options on each of the following cells are applicable only to those type of files listed in the column heading.
For RMAN backup sets, image copies, and Data Pump dump files, the "NOAC" mount option should not be specified - that is because RMAN and Data Pump do not check this option and specifying this can adversely affect performance.

Due to Unpublished bug 5856342, it is necessary to use the following init.ora parameter when using NAS with all versions of RAC on Linux (x86 & X86-64 platforms) until 10.2.0.4. This bug is fixed and included in 10.2.0.4 patchset.
filesystemio_options = DIRECTIO

大概意思是存储数据文件的话,在mount时,还需要指定一些特定的选项:

--vi /etc/fstab
#192.168.1.196:/mnt/HD/HD_a2/Public     /public nfs rw
192.168.1.196:/mnt/HD/HD_a2/Public     /public nfs rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,actimeo=0,vers=3,timeo=600

第一行注释的是之前我配置的NFS挂载,而实际如果要存放数据文件,则需要按照上面提到的MOS文档进行配置,也就是第二行内容。
修改完重新挂载/public, 再次测试backup as copy,已经可以正常备份了。

RMAN> backup as copy datafile 6 format '/public/backup/oradb23/%u.dbf';Starting backup at 25-MAR-17
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
input datafile file number=00006 name=+DATA/jyzhao/datafile/dbs_d_jingyu.268.937515173
output file name=/public/backup/oradb23/17s022f8.dbf tag=TAG20170325T214928 RECID=16 STAMP=939592197
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35
Finished backup at 25-MAR-17Starting Control File and SPFILE Autobackup at 25-MAR-17
piece handle=/public/backup/oradb23/c-2520969382-20170325-03 comment=NONE
Finished Control File and SPFILE Autobackup at 25-MAR-17

至此,就可以正常backup as copy到我的NAS设备中了。

在NAS设备上用NFS服务为RAC数据库和集群件存储oracle文件时的mount选项相关推荐

  1. CentOS8上部署NFS服务端和客户端

    centos8上部署nfs服务端和客户端 文章目录 背景 服务端与客户端信息 配置服务端 安装软件包 编辑配置文件 验证并使配置生效 启动服务端服务 查看服务端状态: 配置客户端: 安装软件包 启动客 ...

  2. rabbitmq使用_RabbitMQ的使用(二) RabbitMQ服务在单机中做集群

    作者:markjiang7m2 博客园地址:https://www.cnblogs.com/markjiang7m2/p/12837151.html 官网地址:http://letyouknow.ne ...

  3. 一个半月快速、低成本上云,云数据库专属集群解决方案看过来

    在6月9日的"全速重构"2020阿里云·线上峰会(点击可查看数据库专场亮点)中,阿里云智能数据库事业部的资深产品专家斗佛开启了全球首发4款云数据库新产品--云数据库专属集群.图数据 ...

  4. 搭建ELK日志分析平台(上)—— ELK介绍及搭建 Elasticsearch 分布式集群

    笔记内容:搭建ELK日志分析平台(上)-- ELK介绍及搭建 Elasticsearch 分布式集群 笔记日期:2018-03-02 27.1 ELK介绍 27.2 ELK安装准备工作 27.3 安装 ...

  5. seata的部署与微服务集成(包含多集群异地容灾配置)

    seata的部署与微服务集成 一.部署Seata的tc-server 1.下载与安装 2.配置文件详细讲解 3.创建数据库表 4.启动 二.微服务集成seata 1.引入依赖 2.修改配置文件 3.启 ...

  6. .Net Core微服务入门——Ocelot和Consul集群高可用

    .Net Core微服务入门--Ocelot和Consul集群高可用 上一章 我们ocelot网关顺利的接入了consul集群,并且访问成功. 但是,我们也遇到了问题,把 192.168.8.25 上 ...

  7. 简单体验K8S的Saas服务-青云KubeSphereCloud轻量集群服务

    简单体验K8S的Saas服务-青云KubeSphereCloud轻量集群服务 背景 之前有写过几篇KubeSphere的使用笔记: 使用kubekey的all-in-one安装K8S1.24及Kube ...

  8. CentOS 6.4 Heartbeat+mysql+nfs实现高可用的mysql集群

    一.Heartbeat网络架构 二.准备工作 1.操作系统 CentOS 6.4 X86-64 最小化安装 由于用源码编译安装heartbeat一直没有通过,所以没办法只能采用yum安装. heart ...

  9. 在 openEuler 上通过 KubeEdge+iSulad 搭建云边协同集群

    本文非广告,分享一篇欧拉系统关于边缘计算相关的文章. 9月,全新的 openEuler 21.09 正式发布.openEuler 21.09 是欧拉正式升级面向数字基础设施的开源操作系统后的第一个社区 ...

最新文章

  1. Mybatis底层原理学习(二):从源码角度分析一次查询操作过程
  2. 我也能做CTO之程序员职业规划
  3. Matlab生成m序列
  4. RHCE课程-RH253Linux服务器架设笔记三-Samba服务器配置(1)
  5. OSX系统编译cocos2dx andriod工程
  6. 关于height、offsetheight、clientheight、scrollheight、innerheight、outerheight的区别
  7. 《我的世界》AI大战降临:6000万帧超大数据集已发布,NeurIPS 19向你约战
  8. 对于集成SP3后后不能激活的解释
  9. 小程序image组件自适应宽高比
  10. 177、模拟行走机器人
  11. 面向对象编程介绍,类和对象
  12. [data engineering] (一)数据工程师的工作内容以及需要的软硬实力
  13. mq5 EA模板及双均线交叉策略EAdemo
  14. 苹果id退出后数据还在吗_答疑你的手机连接WiFi后,会关闭移动数据吗?
  15. discuz数据字典
  16. ffmpeg截取一段视频
  17. Android Google 账户
  18. 计算机主板知识,电脑硬件及电脑配置知识大全-主板知识
  19. 夜游模式探索推动文旅融合可持续发展
  20. ACM组合数学题目列表

热门文章

  1. VS2010 win32项目windows窗体程序 向导生成代码解析
  2. .NET重构—单元测试的代码重构
  3. hdoj 1025 Constructing Roads In JGShining's Kingdom(最长上升子序列+二分)
  4. 64位Fedora运行32位C++程序中int精度溢出处理
  5. 基于时间的访问控制列表
  6. [转]Format a ui-grid grid column as currency
  7. java 类型转换的原理
  8. UIPickerView和UIDataPicker
  9. [c#基础]关于try...catch最常见的笔试题
  10. U-Mail邮件系统的管理权限分配