- 浏览: 1001603 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (529)
- 服务器 (8)
- jsp (1)
- java (6)
- AIX (1)
- solaris (3)
- linux学习 (53)
- javaScript (2)
- hibernate (1)
- 数据库 (74)
- sql语句 (8)
- oracle 学习 (75)
- oracle 案例 (42)
- oracle 管理 (42)
- Oracle RAC (27)
- oracle data guard (12)
- oracle 参数讲解 (14)
- Oracle 字符集 (8)
- oracle性能调优 (24)
- oracle备份与恢复 (12)
- oracle Tablespace (9)
- oracle性能诊断艺术 (1)
- oracle 11g学习 (5)
- oracle streams (1)
- oracle upgrade and downgrade (4)
- db2学习 (13)
- db2命令学习 (2)
- mysql (28)
- sql server (30)
- sql server 2008 (0)
- 工具 (10)
- 操作系统 (3)
- c++ (1)
- stock (1)
- 生活 (5)
- HADOOP (2)
最新评论
-
massjcy:
...
如何将ubuntu文件夹中文名改为英文 -
skypiea:
谢谢。。。
终于解决了。。。
Oracle 10.2.0.4(5)EM不能启动的解决方案(Patch 8350262) -
qwe_rt:
引用vi /etc/sysconfig/network 请问 ...
Linux操作系统下配置静态IP上网 -
liuqiang:
sudo killall -9 apache2
ps 和 kill 命令详解 -
dazuiba:
引用*绝杀 kill -9 PID 当使用此命令时,一定要通过 ...
ps 和 kill 命令详解
操作系统版本:RedHat-AS5,2.6.18-8el5内核
OCFS版本:Ocfs1.2.7-1、ocfs2-tool 1.2.7-1,均为rpm格式安装包。
安装完成后,启动报以下错误:
# /etc/init.d/o2cb start ocfs2 Mounting configfs filesystem at /config: OK Loading module "ocfs2_dlmfs": OK Mounting ocfs2_dlmfs filesystem at /dlm: OK Starting cluster ocfs2: Failed o2cb_ctl: Unable to load cluster configuration file "/etc/ocfs2/cluster.conf" Stopping cluster ocfs2: Failed o2cb_ctl: Unable to load cluster configuration file "/etc/ocfs2/cluster.conf" |
查看模块加载情况:
# lsmod | grep ocfs ocfs2_dlmfs 19592 0 ocfs2 306848 0 ocfs2_dlm 134540 2 ocfs2_dlmfs,ocfs2 ocfs2_nodemanager 133624 3 ocfs2_dlmfs,ocfs2,ocfs2_dlm configfs 22028 2 ocfs2_nodemanager jbd 48536 2 ocfs2,ext3 |
查看配置文件:
# cat /etc/ocfs2/cluster.conf node: ip_port = 7777 ip_address = 192.168.51.140 number = 0 name = rac1 cluster = ocfs2 node: ip_port = 7777 ip_address = 192.168.51.141 number = 1 name = rac2 cluster = ocfs2 cluster: |
使用ocfs2console工具创建节点是出现错误,提示不能启动到集群节点,即使将/etc/ocfs2/cluster.conf文件删除,节点也不能被成功。
通过分析,发现/etc/init.d/o2cb脚本文件中通过o2cb_ctl命令对集群文件进行操作的,进一步查看o2cb_ctl的命令帮助,可以通过此命令创建集群配置文件。对旧cluster.conf配置文件改名,试用o2cb_ctl命令进行创建。
# o2cb_ctl -h
o2cb_ctl -C -n object -t type [-i] [-a attribute ] # o2cb -C -n ocfs2 -t cluster -i # o2cb -C -n rac1 -t node -a number=0 -a ip_address=192.168.51.140 -a ip_port=7777 -a cluster=ocfs2 # o2cb -C -n rac2 -t node -a number=1 -a ip_address=192.168.51.141 -a ip_port=7777 -a cluster=ocfs2 |
启动cluster:
# /etc/init.d/o2cb online
Starting cluster ocfs2: OK |
启动成功!
通过比较分析,发现目前的cluster.conf配置文件内容与原来的配置文件有微小的差别,该文件如下:
node: node: cluster: |
请注意:每行属性的前面是以TAB制表符开始的,通过多次的尝试,将属性行的第一个字符改为空格或TAB制表时,ocfs2的cluster能够正常启动,如果删除,则提示“o2cb_ctl: Unable to load cluster configuration file "/etc/ocfs2/cluster.conf"”错误。我的cluster.conf文件是通过网上的配置文件修改而成的,忽略了这个细节,所以不能正常启动!
问题虽然解决了,但还有两个问题依然不能弄明白:
1、通过ocfs2console,为什么不能成功创建节点,但用命令行可以?
2、/etc/ocfs2/cluster.conf配置文件的属性行为什么必须已空格或制表符开始呢?
发表评论
-
11gR2 RAC dbca无法发现ASM磁盘组
2012-07-30 11:28 1420安装好Grid Infrastructure和Database ... -
RAC dbca无法发现ASM磁盘组
2012-07-30 11:20 0查看( 1501 ) / 评论( 10 ) / 评分( 0 / ... -
RAC优化要点
2011-01-19 23:03 1931RAC环境下,DB CACHE的命中率对系统的性能影响 ... -
11gR2 cluvfy tools usage
2011-01-05 03:01 1252Note that the following only s ... -
配置11gR2 RAC SCAN
2011-01-02 21:11 343011G RAC scan即用DNA解析的I ... -
CRS-0215: Could not start resource 'ora..vip' [ID 356535.1]
2010-12-17 17:34 3338Oracle Server - Enterprise Edit ... -
Oracle RAC选件技术的价值何在?
2010-07-14 11:38 1647随着IT技术的发展,网格计算目前已经成为一个热点,它所带来的低 ... -
怎样修改 SCAN信息(来自于metalink)
2010-06-06 00:34 1543Applies to: Oracle Server ... -
Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node [ID 27
2010-05-14 11:28 2335Applies to: Oracle Server ... -
RAC或OPS环境下重新创建控制文件 引自Metalink
2010-05-13 13:33 1639PURPOSE-------This article desc ... -
How to Change Interconnect/Public Interface IP or Subnet in Oracle Clusterware [
2010-04-30 12:06 2425Applies to: Oracle Server ... -
10gR2 RAC Install issues on Oracle EL5 or RHEL5 or SLES10 (VIPCA / SRVCTL / OUI
2010-04-30 12:04 1548Applies to: Oracle Server ... -
RAC环境下listener无法启动案例分析
2010-04-26 21:24 2452RAC系统重新配置listener后无法启动: [root@ ... -
CRS-1019: Resource ora.rac02.ons (application) cannot run on rac01 问题解决
2010-04-25 16:15 2638[root@rac01 bin]# ./crs_stat -t ... -
AIX集群修改IP步骤
2010-04-25 01:50 4333集群修改IP步骤 环境: AIX 5L HACMP ... -
关于虚拟 IP
2010-04-23 11:14 1805关于虚拟 IP10g 中为什么使用虚拟 IP (VIP)?为什 ... -
RAC Ocfs2文件系统常见问题解决方法
2010-01-11 14:28 1590现象一:mount -t ocfs2 -o datavolum ... -
RAC User Equivalence Check Failed
2010-01-11 14:17 1610在使用SSH方式配置RAC时,可能会在检查用户等价时失败。 ... -
ORACLE RAC:监听原理 简介
2010-01-11 14:15 3632RAC1 RAC2 都需需要配置监听,各自监听自己的 实例 ... -
Oracle集群文件系统(OCFS2)用户指南
2010-01-11 14:02 2792http://oss.oracle.com/projects/ ...
相关推荐
ocfs1.4.1 oracle分布式文件系统
Config OCFS2 and GFS2
ocfs的安装包linux for x86_64
Header describing the interface between userspace and the kernel for the ocfs2_nodemanager module.
ocfs1.2.7 源码,oracle并行文件系统
Linux5安装ORACEL RAC 工具ocfs2安装文件
oracle_10g_rac_ocfs2_linux64最详细安装文档,全截图文档,亲自实践安装过,无错误,傻瓜式安装文档
文件重命名:ocfs.sys------------------ocfs.sys.w2k864 orafencedrv.sys---------orafencedrv.sys.w2k8 然后运行如下命令启动oracle clusterware 安装程序: setup.exe New_DRIVER_Loc="c:\\7320726
OCFS2 存储 云计算 H3C PPT
A CLUSTER FILE SYSTEM FOR LINUX USER’S GUIDE FOR RELEASE 1.4
ocfs2的部署与配置; 系统:centos
OCFS2创建方法
OCFS2 is the next generation of the Oracle Cluster File System. It has been designed to be a generalpurpose cluster file system. With it, one can store not only database related files on a shared disk...
Defines macros and structures used in OCFS2 for Linux v2.13.6.
本文在centos5.8上基于ASM+OCFS2+grid+DNS搭建了oracle11gR2 RAC集群,并测试验证通过
在rac安裝中需要ocfs2用于安裝ocfs2
ocfs2集群管理状态机转换图,ocfs2集群管理中异常处理和状态切换代码分析和流程图
ocfs2-2.6.9-22.EL-1.2.0-1.i686.rpm
ocfs2console-1.2.7-1.el4.i386.rpm 下载