两台sun v880做cluster,请高手帮忙!

发表于:2007-06-09来源:作者:点击数: 标签:
小弟从来没有做过cluster,不知道sun下作cluster是怎么回事,哪里有相关文档?请各位高手帮帮小弟!! daemonix 回复于:2002-12-09 15:14:14 不会 帮你顶一下 南非蜘蛛 回复于:2002-12-09 15:14:15 到这里http://docs.sun.com然后searchcluster hgzwjl 回

小弟从来没有做过cluster,不知道sun下作cluster是怎么回事,哪里有相关文档?请各位高手帮帮小弟!!

 daemonix 回复于:2002-12-09 15:14:14
不会
帮你顶一下

 南非蜘蛛 回复于:2002-12-09 15:14:15
到这里http://docs.sun.com然后search cluster

 hgzwjl 回复于:2002-12-09 15:15:56
完了以后,一定要上传经验呦,最好是笔记

 hutao 回复于:2002-12-09 15:24:37
有2种软件可以做到,就目前我所接触到的

1:veritas cluster server

2:sun cluster server来做

他们共同的特性是要共享一个磁盘阵列

 liuhust 回复于:2002-12-09 15:29:25
cluster除了共享一个磁盘阵列 还有什么别的用处?它和HA有什么区别呢

 dou221 回复于:2002-12-09 15:42:10
假定你的机器的硬件环境支持:各个FIRMWARE的版本满足。
1 、把c0t0d0s4要有100m作为globaldevices
2 、 在第一台机器上安装
# ./scinstall
*** Main Menu ***
Please select from one of the following (*) options:
* 1) Establish a new cluster using this machine as
the first node
* 2) Add this machine as a node in an established
cluster
3) Configure a cluster to be JumpStarted from this
install server
4) Add support for a new data service to this
cluster node
5) Print release information for this cluster node
* ?) Help with menu options
* e) Exit
Option: 1
What is the name of the cluster you want to establish?
planets
>>> Cluster Nodes <<<
This release of Sun Cluster supports a total of up
to 8 nodes.Please list the names of the other nodes
planned for the initial cluster configuration. List one
node name per line. When finished, type Control-D:
Node name: mars
Node name (Ctrl-D to finish): ^D
This is the complete list of nodes:
venus
mars
Is it correct (yes/no) [yes]? yes
Do you need to use DES authentication (yes/no) [no]? no安全认证
Is it okay to accept the default network address (yes/no) [yes]? yes
Is it okay to accept the default netmask (yes/no) [yes]? yes
Does this two-node cluster use transport junctions (yes/no) [yes]? yes  transport junctions 是你的私网网卡是不是通过HUB连接
What is the name of the first junction in the cluster [switch1]? sw1
What is the name of the second junction in the cluster [switch2]? sw2
What is the name of the first cluster transport adapter ? hme1
Name of the junction to which “hme1” is connected [sw1]? sw1
Okay to use the default for the “hme1” connection [yes]? yes
What is the name of the second cluster transport adapter [hme2]? hme2
Name of the junction to which “hme2” is connected [sw2]? sw2
Use the default port for the “hme2” connection [yes]? yes
The default is to use /globaldevices.
Is it okay to use this default (yes/no) [yes]? yes
Do you want scinstall to re-boot for you (yes/no) [yes]?
yes
Do you want scinstall to re-boot for you (yes/no) [yes]?
yes
二,安装另一台
# ./scinstall
*** Main Menu ***
Please select from one of the following (*) options:
* 1) Establish a new cluster using this machine as
the first node
* 2) Add this machine as a node in an established
cluster
3) Configure a cluster to be JumpStarted from this
install server
4) Add support for a new data service to this
cluster node
5) Print release information for this cluster node
* ?) Help with menu options
* e) Exit
Option:2
四、Resetting Install Mode Using the scsetup Utility
# /usr/cluster/bin/scsetup
>>> Initial Cluster Setup <<<
This program has detected that the cluster
“installmode” attribute is set ...
Please do not proceed if any additional nodes have yet
to join the cluster.
Is it okay to continue (yes/no) [yes]? yes
Which global device do you want to use (d<N>? d2
Is it okay to proceed with the update (yes/no) [yes]? yes
scconf -a -q globaldev=d2
Do you want to add another quorum disk (yes/no)? no
Is it okay to reset “installmode” (yes/no) [yes]? yes
scconf -c -q reset
Cluster initialization is complete.


 dou221 回复于:2002-12-09 15:48:27
后期:
1 、vi/etc/inet/ntp.conf
删除
peer clusternode3-priv
peer clusternode4-priv
peer clusternode5-priv
peer clusternode6-priv
peer clusternode7-priv
peer clusternode8-priv
如果,要用VM,SDS作为DG管理的话,还有一堆的事情!对了,/etc/hosts文件底下要有两台机器的名字和IP地址

 dou221 回复于:2002-12-10 09:31:53
最重要一点,更改SCSI ID号码:先做这个,我给忘了!
ok> nvedit
   0: probe-all install-console banner
   1: cd /pci@6,4000/scsi@3
   2: 6 encode-int " scsi-initiator-id" integer-property
   3: device-end
   4: banner (ctrol C)
   5:
ok> nvstore
ok> setenv use-nvramrc? true
ok> reset-all

 leucen 回复于:2002-12-18 13:20:33
[quote][b]下面引用由[u]dou221[/u]在 [i]2002/12/09 03:42pm[/i] 发表的内容:[/b]
假定你的机器的硬件环境支持:各个FIRMWARE的版本满足。
1 、把c0t0d0s4要有100m作为globaldevices
2 、 在第一台机器上安装
# ./scinstall
...
[/quote]


这上面的hme0,hme1的IP怎么配置呀?
心跳线HME1?
两台机器的hme1的hosts.hme1怎么配置的呢?
  

 minechina 回复于:2002-12-19 00:02:03
Veritas怎么配.

 mysun 回复于:2003-05-26 10:08:48
Sun Cluster 安装步骤 
sun cluster 的服务号称是sun公司的金牌服务,价值40 - 50 多万,只可以sun的 
工程师来做,诸位安装成功了就可以看到其实cluster也并不是很难,(服务赚钱啊)  
难就难在相关技术有欠缺的地方,例如怎样接阵列,怎样做卷,还有就是对cluster 
的概念不清楚。  


以下只是我以前做cluster的记录,当时偷懒,现在就只有这些了  
澄清一些概念:  
共享盘一定要两台主机都可以看到  
心跳线是指两个网卡专门用于cluster通讯,有四口网卡更好  
qurumdevice是指,除了心跳线之外,保障唯一性的另一种方法,cluster会往上面 
写信息,画出一个单独的分区就可以了。(如果启动后遇到minidevice之类的问题, 
进入配置文件ccd.???,在里面直接修就可以了)  
2.2cluster bug较多,要打补丁,安装成功后启动时要仔细查看启动信息,很详细 
的,对排除问题很有用  

SUN 双机的安装  

一.安装前的准备工作  
1.环境说明  
SUN E450主机2台,配置相同,各装1块9G硬盘,所装的SCSI的慒位必须相同  
SUN D1000阵列一台,内装8块4G硬盘  

2.硬盘安装过程  
两台主机分别安装操作系统及推荐的patch  
正确连接主机和阵列,两台主机通过SCSI控制线连接D1000  
更改其中一台主机的scsi-initiator-id,另一台先不开机  
方法如下:进入ok提示符下  
ok setenv auto-boot? True  
ok reset-all  
ok probe-scsi-all  记录显示的阵列中控制器的物理路径,如/pci@4,4000/scsi@3及 
/pci@4,4000/scsi@3,1,一下以此为例  
ok nvedit  
 0:probe-all install-console banner  
 1:cd /pci@4,4000/scsi@3  
 2:6 “ scsi-initiator-id” interger-property  将scsi-initiator-id改为6  
 3:device-end  
 4:cd /pci@4,4000/scsi@3,1  
 5:6 “ scsi-initiator-id” integer-property  
 6:device-end  
 7:banner (ctrl+c)  
ok nvstore  
ok setenv use-nvramrc? True  
ok setenv auto-boot? True  
ok reset-all  
至此,两台主机可以同时开机进入操作系统,用format命令可以看到9块硬盘,而且保 
证阵列上的8块硬盘在两台主机上的物理路径于逻辑设备名完全一致  

二:卷管理器Volume Manager3.0的安装  
Volume Manager的版本不同,安装和管理界面会有所不同,以下以Volume Manager3.0 
版本为基础。  
1.将Volume Manager光盘上的tar文件展开到硬盘上  
cd pkgs  
pkgadd –d .  
安装所有的软件和patch,安装会安装可执行文件到/usr/sbin下,可使用  
ls /usr/sbin/vx* 查看  
2.硬盘划分  
将Volume Manager要管理的硬盘作以下处理,以便Volume Manager能够识别  
将D1000上的硬盘前1024个柱区为空,或者画出3,4分区以便Volume Manager识别,3区 
为Volume Manager的private region用于管理,3-4M即可,4区为public region。这 
样Volume Manager即可认出硬盘,如果不行仔细检查  
root所属的硬盘可以不用处理,但是最好流出7分区作为Volume Manager的管理用  
3.初始化  
可以按照安装说明的方式执行vxinstall,然后按选项执行下去即可,主要是可以选择 
不封装root分区。  
另一种方式  
vxlicense –c  产生一个key文件,输入序列号,注意,要激活VM的全部功能,需输入 
相应的系列号  
vxconfig –m disable  
vxdctl init  重新初始化/etc/vx/volboot  
vxdctl init rootdg  
vxdctl add disk c0t0d0s7 type=simple  
vxdisk –f init c0t0d0s7 type=simple  
vxdg adddisk c0t0d0s7  
vxdctl enable  
rm /etc/vx/reconfig.d/stanstard/install-db  
重新启动机器  

4.卷管理  
正常启动后VM server已经启动,用ps可以看到两个VM进程已经启动  
如果没有启动参照手册排除问题  
执行vmsa  
vmsa启动后,会连到本机的VM server,输入root口令后进入管理界面  
在管理界面中创建disk group:oracle,在其中oracle组中创建两个卷,这里暂定 
为vol01  vol02,选择不在启动时自动挂上,  
然后在其中一台主机上将oracle组deport出去,在另一台机器上import进来,确保 
两台机器可以正确使用disk group  

三:HA的安装  
将Cluster软件拷入到/tmp目录下,  
cd Sun_suncluster_sc_2_2/Sun_Cluster2。2/Tools  
./scinstall  
选择4,安装server and client  
下一步选择automatic  自动安装  
接着选择所用的卷管理器:3    Sun StorEdge Volume Manager (SSVM)  
输入cluster的名字:cluster  
输入cluster内的节点数目:2  
输入开始初始化的节点:2  
输入内部连接使用的方式:ether  
输入节点0的名字:datahost2  
输入节点0内部通讯使用的网卡:hme1  
输入节点0内部通讯使用的第二块网卡:hme2  
输入节点0的MAC地址:  
输入节点1的名字:datahost1  
输入节点1内部通讯使用的网卡:qfe0  
输入节点1内部通讯使用的第二块网卡:qfe1  
输入节点1的MAC地址:  
输入节点0对外的网卡:hme0  
输入节点1对外的网卡:hme0  
是否选择第二块公共子网:no  
输入逻辑主机名:log-datahost  
是否选择失败后自动返回:根据需要选择  
选择quorum device:选择公共的硬盘  
接下来选择是否是否安装HA的工具包  
选择安装SUN Cluster HA for Oracle  

安装结束后,安装patch  
install_scpatches  
重启机器  


HA的启动  
在master机器上  
Scadmin startcluster hostname  clustername  
例如scadmin staartcluster datahost2 cluster  
在第二块节点上  
scadmin startnode  hostname  

HA的停止  
Scadmin stopnode  

HA的切换  
Scadmin switch  clustname dest-host logical-hosts

原文转自:http://www.ltesting.net