ITPub博客

首页 > 数据库 > Oracle > 一次虚拟机挂起后的排错--openfiler,ocfs2

一次虚拟机挂起后的排错--openfiler,ocfs2

原创 Oracle 作者:peng163fj 时间:2015-07-31 13:29:07 0 删除 编辑

暂挂后,恢复时,两台机器分别重启

然后crs_stat失败,开始排错

 

1.         首先查看存储,发现openfiler中绿色扇区丢失。Fdisk看不到磁盘

 

2.         参考这个文档,将被异常排除的列注释掉

3.        

4.         重新扫描

iscsiadm -m node -T iqn.2006-01.com.openfiler:fra -p 10.0.0.3:3260 -l 

iscsiadm -m node -T iqn.2006-01.com.openfiler:ocr -p 10.0.0.3:3260 -l 

iscsiadm -m node -T iqn.2006-01.com.openfiler:data -p 10.0.0.3:3260 -l 

start_udev

fdisk -l

最后通过ll –l /dev/ora*来确认。(双机)

5.         虽然找到磁盘,但是报错

[root@rac2 ~]# /etc/init.d/o2cb status

Driver for "configfs": Loaded

Filesystem "configfs": Mounted

Stack glue driver: Loaded

Stack plugin "o2cb": Loaded

Driver for "ocfs2_dlmfs": Loaded

Filesystem "ocfs2_dlmfs": Mounted

Checking O2CB cluster ocfs2: Offline

6.         添加文件

注意是tab

 

[root@rac2 ocfs2]# vi cluster.conf

node:

        ip_port = 7777

        ip_address = 172.16.5.230

        number = 0

        name = rac1

        cluster = ocfs2

node:

        ip_port = 7777

        ip_address = 172.16.5.231

        number = 1

        name = rac2

        cluster = ocfs2

cluster:

        node_count = 2

        name = ocfs2

 

[root@rac2 ocfs2]# /etc/init.d/o2cb load

[root@rac2 ocfs2]#  /etc/init.d/o2cb online ocfs2

Setting cluster stack "o2cb": OK

Starting O2CB cluster ocfs2: OK

[root@rac2 ocfs2]#  /etc/init.d/o2cb status

Driver for "configfs": Loaded

Filesystem "configfs": Mounted

Stack glue driver: Loaded

Stack plugin "o2cb": Loaded

Driver for "ocfs2_dlmfs": Loaded

Filesystem "ocfs2_dlmfs": Mounted

Checking O2CB cluster ocfs2: Online

Heartbeat dead threshold = 61

  Network idle timeout: 30000

  Network keepalive delay: 2000

  Network reconnect delay: 2000

Checking O2CB heartbeat: Not active




crs_start -all

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/21302630/viewspace-1757666/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2013-11-20

  • 博文量
    155
  • 访问量
    390528