liusu_520 发表于 2011-08-21 17:18

sun cluster 实验证明

实验目的:证明两台主机操作系统一样,而update版本不一样,(如一台solaris10u9,另一台solarisu8)也可以做cluster,

主机系统:一台solaris10u9 x86,另一台solaris10u8 x86
sun cluster版本:cluster3.2u3
实验环境:vmware workstation 7
共享存储:starwind5.7

实验结果:证明两台主机操作系统一样,而update版本不一样,也是可以做sun cluster。

日志如下:
第一台:
-bash-3.00# uname -a
SunOS sunu8 5.10 Generic_141445-09 i86pc i386 i86pc
-bash-3.00# more /etc/release
                     Solaris 10 10/09 s10x_u8wos_08a X86
         Copyright 2009 Sun Microsystems, Inc.All Rights Reserved.
                        Use is subject to license terms.
                           Assembled 16 September 2009
-bash-3.00# scinstall -pv
Solaris Cluster 3.2u3 for Solaris 10 i386

第二台:
-bash-3.00# uname -a
SunOS sunb 5.10 Generic_142910-17 i86pc i386 i86pc
-bash-3.00# more /etc/release
                  Oracle Solaris 10 9/10 s10x_u9wos_14a X86
   Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
                            Assembled 11 August 2010
-bash-3.00# scinstall -pv
Solaris Cluster 3.2u3 for Solaris 10 i386

资源切换前:
-bash-3.00# scstat
------------------------------------------------------------------

-- Cluster Nodes --

                  Node name         Status
                  ---------         ------
Cluster node:   sunb                Online
Cluster node:   sunu8               Online

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

-- Cluster Transport Paths --

                  Endpoint               Endpoint               Status
                  --------               --------               ------
Transport path:   sunb:e1000g3         sunu8:e1000g3          faulted
Transport path:   sunb:e1000g2         sunu8:e1000g2          Path online

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

-- Quorum Summary from latest node reconfiguration --

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


-- Quorum Votes by Node (current status) --

                  Node Name         Present Possible Status
                  ---------         ------- -------- ------
Node votes:       sunb                1      1       Online
Node votes:       sunu8               1      1       Online


-- Quorum Votes by Device (current status) --

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

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

-- Device Group Servers --

                         Device Group      Primary             Secondary
                         ------------      -------             ---------
Device group servers:csset               sunu8               sunb


-- Device Group Status --

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


-- Multi-owner Device Groups --

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

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

-- Resource Groups and Resources --

            Group Name   Resources
            ----------   ---------
Resources: orarg          suncls datars


-- Resource Groups --

            Group Name   Node Name                State          Suspended
            ----------   ---------                -----          ---------
   Group: orarg          sunu8                  Online         No
   Group: orarg          sunb                     Offline      No


-- Resources --

            Resource NameNode Name                State          Status Message
            ----------------------                -----          --------------
Resource: suncls         sunu8                  Online         Online - LogicalHostname online.
Resource: suncls         sunb                     Offline      Offline

Resource: datars         sunu8                  Online         Online
Resource: datars         sunb                     Offline      Offline

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

-- IPMP Groups --

            Node Name         Group   Status         Adapter   Status
            ---------         -----   ------         -------   ------
IPMP Group: sunb                ipmp1   Online         e1000g1   Online
IPMP Group: sunb                ipmp1   Online         e1000g0   Online

IPMP Group: sunu8               ipmp1   Online         e1000g1   Online
IPMP Group: sunu8               ipmp1   Online         e1000g0   Online


-- IPMP Groups in Zones --

            Zone Name         Group   Status         Adapter   Status
            ---------         -----   ------         -------   ------
------------------------------------------------------------------

资源切换后:
-bash-3.00# scswitch -z -g orarg -h sunb        #没有报错

-bash-3.00# scstat
------------------------------------------------------------------

-- Cluster Nodes --

                  Node name         Status
                  ---------         ------
Cluster node:   sunb                Online
Cluster node:   sunu8               Online

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

-- Cluster Transport Paths --

                  Endpoint               Endpoint               Status
                  --------               --------               ------
Transport path:   sunb:e1000g3         sunu8:e1000g3          faulted
Transport path:   sunb:e1000g2         sunu8:e1000g2          Path online

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

-- Quorum Summary from latest node reconfiguration --

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


-- Quorum Votes by Node (current status) --

                  Node Name         Present Possible Status
                  ---------         ------- -------- ------
Node votes:       sunb                1      1       Online
Node votes:       sunu8               1      1       Online


-- Quorum Votes by Device (current status) --

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

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

-- Device Group Servers --

                         Device Group      Primary             Secondary
                         ------------      -------             ---------
Device group servers:csset               sunb                sunu8


-- Device Group Status --

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


-- Multi-owner Device Groups --

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

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

-- Resource Groups and Resources --

            Group Name   Resources
            ----------   ---------
Resources: orarg          suncls datars


-- Resource Groups --

            Group Name   Node Name                State          Suspended
            ----------   ---------                -----          ---------
   Group: orarg          sunu8                  Offline      No
   Group: orarg          sunb                     Online         No


-- Resources --

            Resource NameNode Name                State          Status Message
            ----------------------                -----          --------------
Resource: suncls         sunu8                  Offline      Offline - LogicalHostname offline.
Resource: suncls         sunb                     Online         Online - LogicalHostname online.

Resource: datars         sunu8                  Offline      Offline
Resource: datars         sunb                     Online         Online

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

-- IPMP Groups --

            Node Name         Group   Status         Adapter   Status
            ---------         -----   ------         -------   ------
IPMP Group: sunb                ipmp1   Online         e1000g1   Online
IPMP Group: sunb                ipmp1   Online         e1000g0   Online

IPMP Group: sunu8               ipmp1   Online         e1000g1   Online
IPMP Group: sunu8               ipmp1   Online         e1000g0   Online


-- IPMP Groups in Zones --

            Zone Name         Group   Status         Adapter   Status
            ---------         -----   ------         -------   ------
------------------------------------------------------------------

cwnlinux 发表于 2011-08-21 19:29

这样做有什么意义呢?用可能是没有问题,但是出了问题排除起来就会很麻烦。何必给自己找麻烦呢?

unix5188 发表于 2011-08-21 23:44

可以练练手,熟悉下环境也不错。

wang_sy 发表于 2011-08-22 09:58

练练手还可以,恐怕没有人愿意在生产环境上这样做吧!

yuhuohu 发表于 2011-08-22 10:16

恩,鼓励lz,不过生产系统的话原则上是绝对不允许这么折腾

liusu_520 发表于 2011-08-22 10:20

做这个实验也是想和大家一起研究cluster,个人认为这样做是没什么问题的,

毕竟我们以后遇到的问题多种多样,

yuhuohu 发表于 2011-08-22 10:45

回复 6# liusu_520


    部署生产系统的首要思路就是尽可能的减少潜在的威胁

zhmzhouming 发表于 2011-08-22 11:35

还有一个,你这个是一两天的试验,生产系统是需要成年累月的运行的,路遥知马力,跑久了,也许这种不兼容的情况就会慢慢显现出来了。
:dizzy:

wangyl1977 发表于 2011-08-24 13:59

回复 8# zhmzhouming


    还有一种情况就是: 某些配置不被certified,并不是根本就无法work,只是 没做完整的test,出问题厂商不负任何责任。

沙中有金 发表于 2011-08-24 21:27

没意义
页: [1] 2
查看完整版本: sun cluster 实验证明