安装sun cluster3.0和volume manger3.5

安装SUN Cluster 软件之前,需准备好下列工作:
各个节点操作系统的安装
双机系统各个节点的操作系统已安装完毕。
相关配置
规划好所有要用到的主机名称及其对应的IP地址,在编辑各机的/etc/hosts 文件时,须将另一节点的IP信息录入。
注意:
以下使用到的IP 地址仅供参考,实际的安装过程中请与局方商量确定真正的IP地址。

1. 操作指引
(1) 配置/etc/hosts文件
此文件包括双机系统所有主机的名称,及其对应的IP地址。以下是样例hosts,安装时请修改为与局方商量确定的真正IP地址。
在节点smcsrv1上如下所示:
127.0.0.1 localhost
10.71.100.191 smcsrv1 loghost
10.71.100.193 smcsrv2
10.76.183.183 service_ip
在节点smcsrv 2上如下所示:
127.0.0.1 localhost
10.71.100.193 smcsrv2 loghost
10.71.100.191 smcsrv1
10.76.183.183 service_ip
(2) 修改/etc/hostname.ce0文件,进行网卡hostname的标准配置。
在节点smcsrv1上如下所示:
smcsrv1
在节点smcsrv 2上如下所示:
smcsrv2
(3) 确认其它文件的下列项目,如不符合要求则修改。
(a)/etc/default/login文件
CONSOLE=/dev/console应被注释为
#CONSOLE=/dev/console
否则只能通过TC来登录主机,其它方式无法登录。
(a) /.profile文件
如果root 用户缺省使用的是Bourne SHELL,可在.profile 文件中的环境变量PATH、MANPATH后加上相关的工作目录,以便安装。
修改后的.profile 文件应有如下内容:
PATH=${PATH}:/sbin:/usr/sbin:/usr/bin:/opt/SUNWcluster/bin:/usr/opt/SUNWmd/sbin
export PATH
MANPATH=${MANPATH}:/usr/share/man:/opt/SUNWcluster/man:/usr/opt/SUNWmd/man
export MANPATH
SHELL=/sbin/sh
export SHELL
TERM=vt100
export TERM
(b) /.rhosts文件
在smcsrv1主机上:
smcsrv1
smcsrv2
在smcsrv2主机上:
smcsrv1
smcsrv2
在节点smcsrv1上安装配置Cluster

安装SUN Cluster 软件之前,需准备好下列工作:
双机系统各个节点的操作系统已安装完毕。
规划好所有要用到的主机名称及其对应的IP地址,在编辑各机的/etc/hosts 文件时,须将另一节点的IP信息录入。
1. 操作指引
(1) 将Cluster安装盘放入光驱中。
(2) 以root用户登录,进入相应目录。
root@smcsrv1# cd /cdrom/cdrom0
root@smcsrv1# cd sun-internal
root@smcsrv1# cd progs
root@smcsrv1# cd SunCluster
root@smcsrv1# cd 3.0
root@smcsrv1# cd Sun_Cluster_3.0_Update3_GA
该目录下应有如下文件:
suncluster_3_0_u3_solaris8.tar.gz
scdataservices_3_0_u3.tar.g
(3) 拷贝安装包到相应目录。
root@smcsrv1# cp suncluster_3_0_u3_solaris8.tar.gz /opt/sun
root@smcsrv1# cp scdataservices_3_0_u3.tar.gz /opt/sun
root@smcsrv1# cd /opt/sun
(4) 解开安装包。
root@smcsrv1# gzcat -d suncluster_3_0_u3_solaris8.tar.gz |tar xf -
root@smcsrv1# cd suncluster_3_0_u3_solaris8/SunCluster_3.0/Tools
当前目录下应有如下文件:
Upgrade defaults lib scinstall
(5) 运行scinstall进行SC以及相关软件的安装和设置, 安装命令如下:
root@smcsrv1# ./scinstall
(6) 下面是交互的安装过程,需要选择的参数如下:
*** Main Menu ***
* 1) Establish a new cluster using this machine as the first node
& 说明:
在节点smcsrv1上选择“1) Establish a new cluster using this machine as the first node.”,如第(6)步所示;
在节点smcsrv2上选择“2) Add this machine as a node in an established cluster。”
在安装过程中随时可以按,返回主菜单。

Do you want to continue (yes/no) [yes]?
Is it okay to continue (yes/no) [yes]?
What is the name of the cluster you want to establish? smcsrvcluster
Node name: smcsrv2
Node name (Ctrl-D to finish): ^D
& 说明:
在节点smcsrv2上的提示信息是:
What is the name of the sponsoring node? smcsrv1

系统将会列出Cluster中定义的所有节点名称,如果正确选择“y”,如果有误,选择“n”,重新设置。
Do you need to use DES authentication (yes/no) [no]?
Is it okay to accept the default network address (yes/no) [yes]?
Is it okay to accept the default netmask (yes/no) [yes]?
& 说明:
default network address及default netmask需要根据实际情况调整。

Does this two-node cluster use transport junctions (yes/no) [yes]?
What is the name of the first junction in the cluster [switch1]?
What is the name of the second junction in the cluster [switch2]?
Select the first cluster transport adapter to use:
1) ce1
2) ce2
3) ce3
4) Other
Option: 2
& 说明:
这里选择ce2作为心跳主用网卡,应根据实际情况选择。

Name of the junction to which "ce2" is connected [switch1]?
Use the default port name for the "ce2" connection (yes/no) [yes]?
Select the second cluster transport adapter to use:
1) ce1
2) ce3
3) Other
Option: 2
& 说明:
选择ce3作为心跳备用网卡。

Name of the junction to which "ce3" is connected [switch2]?
Use the default port name for the "ce3" connection (yes/no) [yes]?
The default is to use /globaldevices.
Is it okay to use this default (yes/no) [yes]?
Do you want scinstall to reboot for you (yes/no) [yes]? No
Are these the options you want to use (yes/no) [yes]?
& 说明:
系统将显示出配置的参数,如果正确,则选择“yes”,继续安装;如果有误,选择“no”,重新进行设置。
Do you want to continue with the install (yes/no) [yes]?
*** Main Menu ***
*q)Quit
Option : q
1.1.2 在smcsrv1上安装Cluster补丁:
将补丁盘放入光驱
cd /cdrom/cdrom0/sun/patch/SunCluster/3.0/8
unpack-patches
cd /tmp/8;./install_patches
cd /cdrom/cdrom0/sun/patch/SunCluster/3.0/common
unpack-patches
cd /tmp/common;./install_patches
注释掉/etc/inet/ntp.conf.cluster文件中以下行:
peer clusternode3-priv
peer clusternode4-priv
peer clusternode5-priv
peer clusternode6-priv
peer clusternode7-priv
peer clusternode8-priv
root@smcsrv1#reboot
系统重启之后,smcsrv1将被设为cluster的第一个node.
1.1.3 在节点smcsrv2上安装配置Cluster
1. 任务说明
节点smcsrv2上Cluster的安装配置过程和节点smcsrv1上的大致相同,请参见smcsrv1上的安装过程完成smcsrv2上Cluster的安装。两个节点上Cluster的配置过程不太一致,下面将详细描述在节点smcsrv2上Cluster的配置过程。
2. 操作指引
(1) 以root用户登录节点smcsrv2。
root@smcsrv2 # ./scinstall
(2) 下面是交互的安装过程,需要设置的参数如下:
*** Main Menu ***
Option: 2
& 说明:
l 选择2表示cluster已经建立,且有一个node存在,当前机器是作为附加node添加的“
l Add this machine as a node in an established cluster。”

Do you want to continue (yes/no) [yes]?
Is it okay to continue (yes/no) [yes]?
What is the name of the sponsoring node? smcsrv1
Do you want to use autodiscovery (yes/no) [yes]?
The following connections were discovered:
smcsrv1:ce3 switch1 smcsrv2:ce3
smcsrv1:ce2 switch2 smcsrv2:ce2
Is it okay to add these connections to the configuration (yes/no) [yes]?
The default is to use /globaldevices.
Is it okay to use this default (yes/no) [yes]?
Do you want scinstall to reboot for you (yes/no) [yes]? no
Are these the options you want to use (yes/no) [yes]?
Do you want to continue with the install (yes/no) [yes]?
1.1.4 在smcsrv2上安装Cluster补丁
将补丁盘放入光驱
cd /cdrom/cdrom0/sun/patch/SunCluster/3.0/8
unpack-patches
cd /tmp/8;./install_patches
cd /cdrom/cdrom0/sun/patch/SunCluster/3.0/common
unpack-patches
cd /tmp/common;./install_patches
注释掉/etc/inet/ntp.conf.cluster文件中两行:
peer clusternode3-priv
peer clusternode4-priv
peer clusternode5-priv
peer clusternode6-priv
peer clusternode7-priv
peer clusternode8-priv
root@smcsrv2#reboot
系统开始重启。
1.1.5 配置路径
编辑各个机器上的/.profile文件
PATH=$PATH:/usr/cluster/bin:/usr/cluster/lib/sc:/usr/cluster/dtk/bin
export PATH
MANPATH=/usr/man:/usr/cluster/man
export MANPATH
编辑完成后运行
#./.profile
1.1.6 安装配置Quorum Disks
1. 任务说明:对共享存储设备进行配置。
创建锁盘。拥有锁盘的节点拥有对共享磁盘的控制权,即是主机;不拥有锁盘的节点是备机。在磁盘阵列中,每个虚拟磁盘(即LUN)拥有一个唯一的global device 号,如LUN0~d2,LUN1~d3 等。
2. 操作步骤:
(1) 查询创建锁盘的磁盘信息
# scdidadm -L
选择LUN0,可查询到创建锁盘所对应的global device 号。
(2) 创建锁盘
启动交互安装过程:
root@smcsrv1 # scsetup
Is it okay to continue (yes/no) [yes]?
Do you want to add any quorum disks (yes/no) [yes]?
Which global device do you want to use (d)? d2
Is it okay to proceed with the update (yes/no) [yes]?
Do you want to add another quorum disk (yes/no)? n
Is it okay to reset "installmode" (yes/no) [yes]?
& 说明:
l d2 即为上面查询到的global device号。

(3) 查看配置结果:
root@smcsrv1 # scstat
如果配置正确,将会有如下显示:
-- Cluster Nodes --
Node name Status
Cluster node: smcsrv1 Online
Cluster node: smcsrv2 Online
-- Cluster Transport Paths --
Endpoint Endpoint Status
Transport path: smcsrv1:ce3 smcsrv2:ce3 Path online
Transport path: smcsrv1:ce2 smcsrv2:ce2 Path online
1.1.7 安装配置Data Services
1. 任务说明
安装oracle数据库的data service,如果本双机系统不需要安装和配置oracle数据库,可以跳过该步。
2. 操作指引
Data Services的安装需要两个节点保持一致,下面描述smcsrv1上的操作,在smcsrv2上的操作与smcsrv1上一样。
(1) 解开安装包
root@smcsrv1# cd /opt/sun
root@smcsrv1# gzcat -d scdataservices_3_0_u3.tar.gz |tar xf -
root@smcsrv1# cd scdataservices_3_0_u3/components/
当前目录下应有如下目录:
SunCluster_HA_Oracle_3.0
(2) 安装SunCluster_HA_Oracle_3.0
root@smcsrv1 # scinstall -ik -s oracle -d /opt/sun/scdataservices_3_0_u3

** Installing Sun Cluster - Highly Available Oracle DBMS **
SUNWscor....done
SUNWscorx...done
(3) 安装SunCluster_HA_Oracle_3.0补丁
root@smcsrv1 # cd /opt/sun/scdataservices_3_0_u3/components/
root@smcsrv1 # cd SunCluster_HA_Oracle_3.0/Tools/Upgrade/Patches
root@smcsrv1 # ls
110651-08 patch_order
root@smcsrv1 # patchadd -u *

Checking installed patches...
Verifying sufficient filesystem capacity (dry run method)...
Installing patch packages...

Patch number 110651-08 has been successfully installed.
See /var/sadm/patch/110651-08/log for details

Patch packages installed:
SUNWscor
SUNWscorx

root@smcsrv1 #

注意:
在两个节点上都需要进行安装操作,否则将导致增加oracle数据库资源失败。
1.1 安装SAN软件包
1.1.1 安装SAN软件
1. 任务说明
在安装Volume Manager之前,必须先安装SAN软件,这是Volume Manager3.5独有的。
2. 操作指引
(1) 将SAN软件安装盘放入光驱。
(2) 以root用户登录。
(3) 进入相应目录。
# cd /cdrom/cdrom0/sun/progs/SAN
(4) 拷贝安装包到临时目录。
# cp SFS_base_packages.S8.tar.gz /opt/sun
# cd /opt/sun
(5) 解开安装包。
# gzcat -d SFS_base_packages.S8.tar.gz|tar xf -
(6) 安装软件包。
# cd /opt/sun/SFS_base_packages.S8
# pkgadd -d .
(7) 下面是交互的安装过程,需要选择的参数如下:
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: 1,2,16
Do you want to continue with the installation of [y,n,?] y
Do you want to install these conflicting files [y,n,?,q] y
Do you want to continue with the installation of [y,n,?] y
(8) 安装完成后选择“q”,退出安装。
1.1.2 安装SAN补丁:
1. 任务说明:
安装完SAN软件后,需要安装SAN软件补丁。
2. 操作指引:
(1) 将SAN补丁安装盘放入光驱。
(2) 以root用户登录。
(3) 进入相应目录。
# cd /cdrom/cdrom0/sun/patch/SAN/8
(4) 解开补丁包。
# unpack-patches
(5) 下面是交互安装过程,需要选择的参数如下:
Are you ready to unpack patches into /tmp/8?[y/n]:y
# cd /tmp/8; ./install_patches
Are you ready to continue with install? [y/n]: y
1.2 安装配置Volume Manager
Volume Manager用来管理磁盘信息。安装完成后磁盘的管理将由UNIX移交给Volume Manager管理。
1.2.1 安装配置Volume Manager
1. 任务说明
安装完成SAN后,就可以进行Volume Manager的安装。Volume Manager的版本为3.5。
2. 操作指引
(1) 将Volume Manager的安装盘放入光驱。
(2) 以root用户登录。
# cd /cdrom/cdrom0/sun-internal/progs/veritas-vm
# cd 3.5
(3) 在当前目录下应有VxFS_VxVM_3.5_for_Solaris.tar.gz安装包。
(4) 拷贝安装包到相应目录。
# cp VxFS_VxVM_3.5_for_Solaris.tar.gz /opt/sun
(5) 解开软件包。
# mkdir /opt/sun/VxFS_VxVM_3.5_for_Solaris
# cd /opt/sun/VxFS_VxVM_3.5_for_Solaris
# gzcat -d ../VxFS_VxVM_3.5_for_Solaris.tar.gz |tar xf -
(6) 安装软件包。
# scvxinstall
Disabling DMP.
Installing Packages from ...
Installing VRTSlic.
Installing VRTSvxvm.
Installing VRTSvmdev.
Installing VRTSvmman.
Obtaining the clusterwide vxio number ...
Using 315 as the vxio major number
Volume Manager instalation is complet.
Please remember to re-boot this node before configuring VxVM
Do you want Volume Manager to encapsulate root [no]? y
Where is the Volume Manager cdrom? /opt/sun/VxFS_VxVM_3.5_for_Solaris
(7) 在安装完成后,需要输入license。
Please enter a Volume Manager license key [none]: 0019 4956 5295 8051 3794 652
& 说明:
一般在刚安装时需要从SUN公司处得到 1 个临时的 License,要根据随机的License申请表格的序列号和机器的Hostid以传真和邮件的方式向SUN公司申请永久的 License(实际使用时应要求SUN工程师提供可用的临时License)。

1.2.2 安装Volume Manager补丁
1. 任务说明
安装Volume Manager 3.5的补丁,补丁版本为112392-06,113203-03,113595-04,113596-03。
2. 操作指引
(1) 将补丁盘放入光驱,以root用户登录。
(2) 进入相应目录。
# cd /cdrom/cdrom/sun/patch/veritas-vm
# cd 3.5
(3) 将需要安装的补丁包拷贝到临时目录。
# cd /cdrom/cdrom0/sun/patch/veritas-vm/3.5
# unpack-patches

Are you ready to unpack patches into /tmp/3.5? [y/n]: y
(4) 安装补丁
# cd /tmp/3.5; ./install_patches
(5) 重启系统。
# scshutdown –y –g0
# reboot -r
1.2.3 配置环境变量
PATH=$PATH:/usr/cluster/bin:/usr/cluster/lib/sc:/usr/cluster/dtk/bin:/opt/VRTSvmsa/bin:/opt/VRTSvxvm/bin:/etc/vx/bin
export PATH
MANPATH=/usr/man:/usr/cluster/man:/opt/VRTS/man
export MANPATH
1.2.4 调整磁盘管理参数
1. 任务说明
操作系统已经实现DMP的功能,关闭Volume Manager中的此功能,否则可能会出问题。
2. 操作指引
(1) 以root用户登录,关闭Volume Manager中的DMP功能。
# vxdiskadm
(2) 下面是交互安装过程,需要选择的参数如下:
Select an operation to perform:17 (选择17Prevent multipathing/Suppress devices from VxVM's view )
Do you want to continue ? [y,n,q,?] (default: y)
Select an operation to perform: 5 (选择5 Prevent multipathing of all disks on a controller by VxVM )
Enter a controller name [,all,list,list-exclude,q,?] all
Continue operation? [y,n,q,?] (default: n) y
(3) 然后选择“q”,逐级返回主菜单。
(4) 重启系统,使修改的参数生效。
# scshutdown –y –g0
# boot

[@more@]

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

转载于:http://blog.itpub.net/9479798/viewspace-1050074/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值