sun服务器磁带机数据库安装及日常维护手册内容摘要:

备工作 :  设置两台主机的 HOSTS 表,都应包含两台主机的正确名称和 IP  设置 SSH 访问信任机制,让 HLCDBSVR01 可以通过 SSH 不需要口令访问 HLCDBSVR02。 (具体参考安装手册,此处不详述) 软件安装过程: 以 root 用户登录 HLCDBSVR01 主机,解压 VCS 软件包: tar xvf cd dvd1redhatlinux/rhel5_x86_64/cluster_server ./installvcs Enter the system names separated by spaces on which to install VCS: HLCDBSVR01 HLCDBSVR02 //输入需要安装 VCS软件的主机名称 此时安装 程序会自动检测两台主机上是否安装过旧版本的 VCS和到HLCDBSVR02的 SSH通讯是否正常,如果正常则进行下一步提示信息,如果有问题,则出现报错信息。 Enter a VCS license key for HLCDBSVR01: PZZUWPJWU2Z7NTVZPX3MPP //输入LICENSE码 PZZUWPJWU2Z7NTVZPX3MPP successfully registered on HLCDBSVR01 VCS license registered on HLCDBSVR01 Do you want to enter another license key for HLCDBSVR01? [y,n,q,?](n) Enter a VCS license key for HLCDBSVR02: PZZUWPJWU2Z7NTVZPX3MPP //输入LICENSE码 PZZUWPJWU2Z7NTVZPX3MPP successfully registered on HLCDBSVR01 VCS license registered on HLCDBSVR02 Do you want to enter another license key for HLCDBSVR01? [y,n,q,?](n) Select the RPMs to be installed on all systems? [13,q,?](3) 2 //在两台主机上安装 VCS软件包程序。 此后进入程序安装过程,需要一些时间。 Are you ready to configure VCS? [y,n,q] (y) Y //是否需要配置 VCS, 回答 Y Enter the unique cluster name: [?] HLCDB //输入 CLUSTER NAME Enter the unique Cluster ID number between 065535: [b,?] 1 //Cluster ID 配置心跳通信网络 Enter the NIC for the first private heartbeat NIC on HLCDBSVR01:[b,?] eth2 Would you like to configure a second private heartbeat link?[y,n,q,b,?] (y) Enter the NIC for the second private heartbeat NIC on HLCDBSVR01:[b,?] eth3 Would you like to configure a third private heartbeat link?[y,n,q,b,?](n) Do you want to configure an additional low priority heartbeatlink? [y,n,q,b,?] (n) Are you using the same NICs for private heartbeat links on all systems? [y,n,q,b,?] (y) //此网卡配置是否在两台主机是同样的。 回答 yes Would you like to configure VCS to use Symantec Security Services? [y,n,q] (n) n //不配置 Symantec的安全服务 Do you want to set the password for the Admin user (default password=’ password’ )? [y,n,q] (n) N //使用默认密码 password Do you want to add another user to the cluster? [y,n,q] (y) n //不增加用户 Do you want to configure SMTP notification? [y,n,q] (y) n //不配置 SMTP服务 Do you want to configure SNMP notification? [y,n,q] (y) n //不配置 Snmp服务 Do you want to configure the Global Cluster Option? [y,n,q] (y)n //不配置 Global服务 Creating Cluster Server configuration files ............ Done Copying configuration files to HLCDBSVR01.................... Done Copying configuration files to HLCDBSVR02.................... Done Cluster Server configured successfully. VCS 5 软件安装完成。 详细的 VCS 资源组配置过程由于本手册篇幅所限,请参考随机文档《 Veritas Cluster for oracle installation and configration Guid》。 VCS软件日常管理 VCS 软件管理有两种方式:  图形管理界面  命令行管理 图形界面管理方式: 登录到 HLCDBSVR01 或者 HLCSBSVR02 主机中的任何一个,运行如下命令: /opt/VRTSvcs/bin/hagui amp。 启动 VCS 管理图形界面。 用户名: admin 口令: password Admin 用户授权通过后的界面: 在此管理软件中可以配置 VCS 的所有的信息,同时也可以通过该软件监控VCS 的健康状况。 例如:上图中标示 HLCDBORA10G 资源组中有一个资源状态是故障的( Public_NIC),通过点击左侧的详细详细栏,可以看到故障的原因是该网卡( eht1)上的网线不通了,需要现场检查来排除故障。 如果资源组是全蓝色的图标,则标示该资源工作正常。 命令行管理方式: 以 root 用户登录到 VCS 中的任何一台主机上,执行下列命令来监控: hastatus –summary //查看 VCS 整体状态 SYSTEM STATE System State Frozen A HLCDBSVR01 RUNNING 0 A HLCDBSVR02 RUNNING 0 GROUP STATE Group System Probed AutoDisabled State B HLCDBORA10G HLCDBSVR01 Y N PARTIAL B HLCDBORA10G HLCDBSVR02 Y N OFFLINE RESOURCES FAILED Group Type Resource System C HLCDBORA10G NIC Public_NIC HLCDBSVR01 C HLCDBORA10G NIC Public_NIC HLCDBSVR02 hastart //启动 VCS hastart onenode hastart help hastart v hastart version hastop //停止 VCS hastop local [force|evacuate|noautodisable] hastop local [force|evacuate noautodisable] hastop sys system .... [force|evacuate|noautodisable] hastop sys system .... [force|evacuate noautodisable] hastop all force hastop all hastop [help] hasys //管理 vcs 节点命令,配合各种参数使用 hasys add sys hasys delete sys hasys freeze [persistent] [evacuate] sys hasys unfreeze [persistent] sys hasys force sys hasys load sys value hasys display [system(s)] [attribute attribute(s)] [clus cluster | localclus] hasys state [sys] [clus cluster | localclus] hasys list [conditional(s)] [clus cluster | localclus] hasys value sys attr [clus cluster | localclus] hasys nodeid [nodeid] hasys updatelic sys sys hasys updatelic all hasys wait sys attr value [clus cluster] [time timeout] hagrp //资源组管理命令 hagrp add group hagrp delete group hagrp link parent group child group dependency hagrp unlink parent group child group hagrp clear group [sys system] [clus cluster | localclus] hagrp clearadminwait [fault] group sys system hagrp flush group sys system [clus cluster | localclus] hagrp online [force] [nopre] group sys system [checkpartial system] [clus cluster | localclus] hagrp online [force] group any [clus cluster | localclus] hagrp offline。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。