免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1958 | 回复: 3
打印 上一主题 下一主题

SUN cluster不能切换设备。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-09-22 10:00 |只看该作者 |倒序浏览
硬件环境:两个SUN V440,3310阵列柜
软件:solaris8,sun cluster3.1,disk suite 4.2.1
故障现象:安装完后,scswitch -z -g test-rg -h test1
能够正常切换ip,但是不能切换Device Group。重启两台服务器:
root@test2 # metaset

Set name = test-set, Set number = 1

Host                Owner
  test1
  test2

Mediator Host(s)    Aliases
  test1
  test2

Drive               Dbase
  d6                 Yes
root@test1 # scstatsc
scstatsc: not found
root@test1 # scstat
------------------------------------------------------------------

-- Cluster Nodes --

                    Node name           Status
                    ---------           ------
  Cluster node:     test2               Online
  Cluster node:     test1               Online

------------------------------------------------------------------

-- Cluster Transport Paths --

                    Endpoint               Endpoint               Status
                    --------               --------               ------
  Transport path:   test2:ce1              test1:ce1              Path online

------------------------------------------------------------------

-- Quorum Summary --

  Quorum votes possible:      3
  Quorum votes needed:        2
  Quorum votes present:       3

-- Quorum Votes by Node --

                    Node Name           Present Possible Status
                    ---------           ------- -------- ------
  Node votes:       test2               1        1       Online
  Node votes:       test1               1        1       Online


-- Quorum Votes by Device --

                    Device Name         Present Possible Status
                    -----------         ------- -------- ------
  Device votes:     /dev/did/rdsk/d6s2  1        1       Online

------------------------------------------------------------------

-- Device Group Servers --

                         Device Group        Primary             Secondary
                         ------------        -------             ---------
  Device group servers:  test-set            -                   -


-- Device Group Status --

                              Device Group        Status
                              ------------        ------
Device group status:        test-set            Offline


-- Multi-owner Device Groups --

                              Device Group        Online Status
                              ------------        -------------

------------------------------------------------------------------

-- Resource Groups and Resources --

            Group Name          Resources
            ----------          ---------
Resources: test-rg             test-web


-- Resource Groups --

            Group Name          Node Name           State
            ----------          ---------           -----
     Group: test-rg             test2               Online
     Group: test-rg             test1               Offline


-- Resources --

            Resource Name       Node Name           State     Status Message
           -------------       ---------           -----     --------------
  Resource: test-web            test2               Online    Online - LogicalHostname online.
  Resource: test-web            test1               Offline   Offline

------------------------------------------------------------------

-- IPMP Groups --

              Node Name           Group   Status         Adapter   Status
              ---------           -----   ------         -------   ------
  IPMP Group: test2               ipmp-test2 Online         ce0       Online

  IPMP Group: test1               ipmp-test1 Online         ce0       Online

------------------------------------------------------------------

论坛徽章:
0
2 [报告]
发表于 2006-09-22 10:02 |只看该作者
device group需要注册到资源组里面,论坛里面不少精华都会符合你的要求

论坛徽章:
0
3 [报告]
发表于 2006-09-22 10:15 |只看该作者

回复 2楼 Barrfee 的帖子

在我重启前的时候是这样的:
                              Device Group        Status
                              ------------        ------
Device group status:        test-set            onine
其他状态都是正常的。

论坛徽章:
0
4 [报告]
发表于 2006-09-23 22:22 |只看该作者
可能是你的磁盘挂载有问题,查查你的磁盘是否可以开机自动挂载??
我当时也是出现这样的问题导致切换时由于对方没有办法自动挂接文件系统无法正常切换而本端解挂以后又无法重新自动挂接,也没有办法正常启动的情况。

你可以试试手动在两台机器上面起业务,如果能够正常启动,八成是因为我说的问题

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

现在双机上安装Oracle已经完成,注册资源也完成,并且Oracle在双机上都可以成功开启
目前用无法通过命令在两台服务器上进行切换

我怀疑是由于磁盘挂接的问题,sc没有自动执行共享磁盘的挂接和解挂的动作。
请问磁盘的自动挂接是怎么样实现的,我手动在两台主机上起Oracle都要先做以下操作

vxvol -g oracledg startall
vxdg import oracledg
mount /dev/vx/dsk/oracledg/lv_oracledb /opt/oracle/database

然后才能够启动数据库

出现这样的情况,我应该从哪方面去排错???谢谢


具体情况如下:


root@v440a # scstat
------------------------------------------------------------------

-- Cluster Nodes --

                    Node name           Status
                    ---------           ------
  Cluster node:     v440a               Online
  Cluster node:     v440b               Online

------------------------------------------------------------------

-- Cluster Transport Paths --

                    Endpoint               Endpoint               Status
                    --------               --------               ------
  Transport path:   v440a:ce8              v440b:ce8              Path online
  Transport path:   v440a:ce4              v440b:ce4              Path online

------------------------------------------------------------------

-- Quorum Summary --

  Quorum votes possible:      3
  Quorum votes needed:        2
  Quorum votes present:       3


-- Quorum Votes by Node --

                    Node Name           Present Possible Status
                    ---------           ------- -------- ------
  Node votes:       v440a               1        1       Online
  Node votes:       v440b               1        1       Online


-- Quorum Votes by Device --

                    Device Name         Present Possible Status
                    -----------         ------- -------- ------
  Device votes:     /dev/did/rdsk/d6s2  1        1       Online

------------------------------------------------------------------

-- Device Group Servers --

                         Device Group        Primary             Secondary
                         ------------        -------             ---------
  Device group servers:  oracledg            v440a               v440b


-- Device Group Status --

                              Device Group        Status              
                              ------------        ------              
  Device group status:        oracledg            Online


-- Multi-owner Device Groups --

                          Device Group        Online Status
                          ------------        -------------
------------------------------------------------------------------

-- Resource Groups and Resources --

            Group Name          Resources
            ----------          ---------
Resources: oracle-rg           v440-srv storage-rs oracle-lsnr oracle-server


-- Resource Groups --

            Group Name          Node Name           State
            ----------          ---------           -----
     Group: oracle-rg           v440a               Online
     Group: oracle-rg           v440b               Offline


-- Resources --

            Resource Name       Node Name           State     Status Message
            -------------       ---------           -----     --------------
  Resource: v440-srv            v440a               Online    Online - LogicalHostname online.
  Resource: v440-srv            v440b               Offline   Offline - LogicalHostname offline.

  Resource: storage-rs          v440a               Online    Online
  Resource: storage-rs          v440b               Offline   Offline

  Resource: oracle-lsnr         v440a               Online    Online
  Resource: oracle-lsnr         v440b               Offline   Offline

  Resource: oracle-server       v440a               Online    Online
  Resource: oracle-server       v440b               Offline   Offline

------------------------------------------------------------------

-- IPMP Groups --

              Node Name           Group   Status         Adapter   Status
              ---------           -----   ------         -------   ------
  IPMP Group: v440a               v440a-pub Online         ce9       Online
  IPMP Group: v440a               v440a-pub Online         ce1       Online
  IPMP Group: v440a               v440a-pub Online         ce0       Online

  IPMP Group: v440b               v440b-pub Online         ce9       Online
  IPMP Group: v440b               v440b-pub Online         ce1       Online
  IPMP Group: v440b               v440b-pub Online         ce0       Online

------------------------------------------------------------------
root@v440a #
root@v440a # scswitch -z -g oracle-rg -h v440b
scswitch: Resource group oracle-rg failed to start on chosen node and may fail over to other node(s)

[ 本帖最后由 leiyuanfan 于 2006-9-23 23:57 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP