Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1965143
  • 博文数量: 498
  • 博客积分: 2078
  • 博客等级: 大尉
  • 技术积分: 1645
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-18 22:43
个人简介

安大

文章分类

全部博文(498)

文章存档

2017年(1)

2016年(2)

2015年(21)

2014年(90)

2013年(101)

2012年(267)

2011年(16)

分类:

2012-06-29 18:17:39

原文地址:VCS001_INSTALL 作者:shexiaoyu

手头有个SOLARIS8+ORACLE817+VCS4的例子,结合手册写个系列,不知有多少人感兴趣?就在博客上写了,因为可以插图,计划一个月内将重点说一下,但网速慢,也忙,慢慢整理吧
 
先说安装
本例没有volume manager所以solaris的补丁打到29就可以了

#uname -a

SunOS sunfirev490-1 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Fire-V490

可以先装oracle再装VCS,也可以先装vcs,规划好硬盘,网址,网口,主机名并且申请到license key就可以开始了

Starting Software Installation

1. Change to the directory where you can start the installvcs utility:

# cd cluster_server

2. Start the VCS installation utility by entering: # ./installvcs

3. The installer begins with the following introduction: VERITAS CLUSTER SERVER 4.0 INSTALLATION PROGRAM

 

Copyright (c) 2003 VERITAS Software Corporation. All rightsreserved.

VERITAS, the VERITAS Logo and all other VERITAS product namesand slogans are trademarks or registered trademarks of VERITASSoftware Corporation. VERITAS and the VERITAS Logo Reg. U.S.Pat. & Tm. Off. Other product names and/or slogans mentionedherein may be trademarks or registered trademarks of theirrespective companies.

4. The utility prompts for the names of the systems in the cluster.

 

Enter the system names separated by spaces on which to installVCS: north south


 

 

26 VERITAS Cluster Server Installation Guide

Example VCS Installation

 

Performing Initial System Checks

5. The installer verifies that the systems you specify use the proper operating system and that they are configured with ssh or rsh for system-to system communication. If the installer finds ssh binaries, it confirms that ssh is set up to operate without requests for passwords or passphrases.

 

Checking OS version on north ......................... SunOS 5.9Checking VRTSvcs package ........................ not installedVerifying communication with south ............ ping successfulAttempting rsh with south ....................... rsh successfulAttempting rcp with south ....................... rcp successfulChecking OS version on south ........................ SunOS 5.9Checking VRTSvcs package ........................ not installedCreating log directory on south .......................... Done

Logs for installvcs are being created in/var/tmp/installvcsdate_time.

Using /usr/bin/rsh and /usr/bin/rcp to communicate with remotesystems.

Initial system check completed successfully.

 

 

Installing the VERITAS Infrastructure Packages

6. The infrastructure packages are installed after the installer verifies they are not already installed and that disk space is available:

 

Installing VERITAS Infrastructure packages on north:Checking VRTSvlic package .................... not installedChecking VRTScpi package ..................... not installedChecking file system space ........ required space availableInstalling VRTScpi 4.0.4 on north ..................... DoneInstalling VRTSvlic 3.02.005d on north ................ Done

Installing VERITAS Infrastructure packages on south:Checking VRTSvlic package .....................not installedChecking VRTScpi package ..................... not installedChecking file system space ........ required space availableCopying VRTScpi package to south....................... DoneInstalling VRTScpi 4.0.4 on south...................... DoneCopying VRTSvlic.tar.gz to south ...................... DoneInstalling VRTSvlic 3.02.005d on south ................ Done

VERITAS Infrastructure packages installed successfully.


 


 


 

 

Chapter 3, Using the VCS Installation Utilities 27

Example VCS Installation

 

 

Verifying VCS Licenses

7. The installer checks for VCS license keys currently in place on each system. You can enter a VCS license and add licenses for additional product features, such as the Global Cluster option.

 

Each system requires a VCS product license before installation.License keys for additional product features should also be addedat this time.

Some license keys are node locked and are unique per system. Otherlicense keys, such as demo keys and site license keys, areregistered on all systems and must be entered on the first system.

VCS Licensing Verification:

Checking VCS license key on north .................. not licensedEnter a VCS license key for north: [?] XXXX-XXXX-XXXX-XXXX-XXXRegistering XXXX-XXXX-XXXX-XXXX-XXX on north ........ Done

Note You can add other licenses, such a for the Global Cluster option, at this time.

Do you want to enter another license key for north? [y,n,q,?] (n)

Registering XXXX-XXXX-XXXX-XXXX-XXX on southChecking VCS license key on south ..................Cluster Server

Do you want to enter another license key for south? [y,n,q,?] (n)

VCS licensing completed successfully.

Press [Return] to continue


 


 

 

28 VERITAS Cluster Server Installation Guide

Example VCS Installation


 

 

Choosing Optional Packages Before Adding VCS Packages

8. The installer prompts you to install optional VCS packages. You can select from the optional packages, and see their descriptions.For example:

 

installvcs can install the following optional VCS packages:

VRTSobgui VERITAS Enterprise AdministratorVRTSvxfen VERITAS I/O FencingVRTSvcsmn VERITAS Cluster Server Man PagesVRTSvcsdc VERITAS Cluster Server DocumentationVRTScssim VERITAS Cluster Server SimulatorVRTScscm VERITAS Cluster Server Cluster Manager

1) Install all of the optional packages

2) Install none of the optional packages

3) View package description and select optional packages

 

Select the optional packages to be installed on all systems?[1-3,q,?] (1)

9. After you choose whether to install optional packages, the installer lists all of the packages to be installed:

 

installvcs will install the following VCS packages:VRTSperl VERITAS Perl 5.8.0 RedistributionVRTSob VERITAS Enterprise Administrator ServiceVRTSmuob VERITAS Enterprise Administrator Service Localized

PackageVRTSobgui VERITAS Enterprise AdministratorVRTSllt VERITAS Low Latency TransportVRTSgab VERITAS Group Membership and Atomic BroadcastVRTSvxfen VERITAS I/O FencingVRTSvcs VERITAS Cluster ServerVRTSvcsmg VERITAS Cluster Server Message CatalogsVRTSvcsag VERITAS Cluster Server Bundled AgentsVRTSvcsmn VERITAS Cluster Server Man PagesVRTScspro VERITAS Cluster Server VEA ProviderVRTSvcsdc VERITAS Cluster Server DocumentationVRTSjre VERITAS Java Runtime Environment RedistributionVRTScutil VERITAS Cluster UtilitiesVRTScssim VERITAS Cluster Server SimulatorVRTScscw VERITAS Cluster Server Configuration WizardsVRTSweb VERITAS Java Web ServerVRTSvcsw VERITAS Cluster Manager (Web Console)VRTScscm VERITAS Cluster Server Cluster Manager

Press [Return] to continue:


 


 


 

 

Chapter 3, Using the VCS Installation Utilities 29

Example VCS Installation

10. The installer checks both systems to make sure none of the packages are already installed, that sufficient space is available to install the packages, and that none of the processes and drivers related to VCS are currently are currently running.

 

Checking VCS installation requirements on north:Checking VRTSperl package .................... not installedChecking VRTSob package ...................... not installedChecking VRTSmuob package .................... not installedChecking VRTSobgui package ................... not installedChecking VRTSllt package ..................... not installedChecking VRTSgab package ..................... not installedChecking VRTSvcs package ..................... not installedChecking VRTSvcsmg package ................... not installedChecking VRTSvcsag package ................... not installedChecking VRTSvcsmn package ................... not installedChecking VRTScspro package ................... not installedChecking VRTSvcsdc package ................... not installedChecking VRTSjre package ..................... not installedChecking VRTScutil package ................... not installedChecking VRTScssim package ................... not installedChecking VRTScscw package .................... not installedChecking VRTSweb package ..................... not installedChecking VRTSvcsw package .................... not installedChecking VRTScscm package .................... not installedChecking VERITAS patch 115209 ................ not installedChecking VERITAS patch 115212 ................ not installedChecking VERITAS patch 115210 ................ not installedChecking file system space ..... required space is availableChecking had process ........................... not runningChecking hashadow process ...................... not runningChecking CmdServer process ..................... not runningChecking notifier process ...................... not runningChecking vxsvc process ......................... not runningChecking vxfen driver .......................... not runningChecking gab driver ............................ not runningChecking llt driver ............................ not running

The same checks are made on south and the following message displays:

Installation requirement checks completed successfully.

In some cases, packages may already be installed on a system. If the current version of a package is installed, it is removed from the package installation list for the system. If a previous version of a package is installed, it is removed and the current version is installed.


 


 


 

 

30 VERITAS Cluster Server Installation Guide

Example VCS Installation


 

 

Configuring the Cluster

11. The installer describes the options you have selected to install and configure with VCS. While VCS must be configured before it can be used, you have the choice to install and configure VCS now, or to merely install packages on the systems and leave the cluster configuration steps for later.

 

It is optional to configure VCS now. If you choose toconfigure VCS later, you can either do so manually or run theinstallvcs -configure command. Are you ready to configure VCS?[y,n,q] (y) y

12. The installer lists the information it requires to configure a VCS cluster: To configure VCS the following is required:

 

A unique Cluster nameA unique Cluster ID number between 0-255Two or more NIC cards per system used for heartbeat links

One or more heartbeat links are configured as private linksOne heartbeat link may be configured as a low priority link

All systems are being configured to create one cluster

e

Enter the unique cluster name: [?] vcs_cluster2Enter the unique Cluster ID number between 0-255: [b,?] 7

13. The installer discovers the NICs available on the first system and reports them: Discovering NICs on north ...discovered hme0 qfe0 qfe1 qfe2 qfe3

 

The installer presents questions about configuring the discovered heartbeat NICS:

Enter the NIC for the first private heartbeat NIC on north:[b,?] qfe0Would you like to configure a second private heartbeat link?[y,n,q,b,?] (y)Enter the NIC for the second private heartbeat NIC on north:[b,?] qfe1Would 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 allsystems? [y,n,q,b,?] (y)

Note When answering “Y,” be sure that the same NICs are available on each system; the installer does not verify this.


 


 


 

 

Chapter 3, Using the VCS Installation Utilities 31

Example VCS Installation

Notice that in this example, hme0 is not selected for use as a private heartbeat NIC because it already in use as the public network interface. The default responses are chosen.

14. The installer summarizes the information and prompts you to confirm it is correct: Cluster information verification:

 

Cluster Name: vcs_cluster2Cluster ID Number: 7Private Heartbeat NICs for north: link1=qfe0 link2=qfe1Private Heartbeat NICs for south: link1=qfe0 link2=qfe1

Is this information correct? [y,n,q] (y)

◆ If the information is not correct, answer “n.” The installer prompts you to enter the information again.

◆ If the information is correct, press Return.


 


 


 

 

32 VERITAS Cluster Server Installation Guide

Example VCS Installation


 

 

Adding VCS Users

15. On systems operating under an English locale, you can add VCS users at this time. For each user you want to add, the installer prompts you for the user’s name, password, and level of privileges. You also have the opportunity to reset the password for the Admin user.

 

The following information is required to add VCS users:

A user nameA password for the userUser privileges (Administrator, Operator, or Guest)

Do you want to set the password for the Admin user(default password=’password’)? [y,n,q] (n) yEnter New Password:******

Enter Again:******Do you want to add another user to the cluster? [y,n,q] (y)

Enter the user name: [?] smithEnter New Password:*******

Enter Again:*******Enter the privilege for user smith (A=Administrator, O=Operator,G=Guest): [?] a

Would you like to add another user? [y,n,q] (n)

User: admin Privilege: AdministratorsUser: smith Privilege: Administrators

Passwords are not displayed

Is this information correct? [y,n,q] (y)


 


 


 

 

Chapter 3, Using the VCS Installation Utilities 33

Example VCS Installation


 

 

Configuring Cluster Manager

16. The installer describes information required to configure Cluster Manager:

 

The following information is required to configure ClusterManager:

A public NIC used by each system in the clusterA Virtual IP address and netmask for Cluster Manager

Do you want to configure Cluster Manager (Web Console)[y,n,q](Y)

Press Return to configure Cluster Manager (Web Console) on the systems. Enter “n” to skip configuring Cluster Manager and advance to configure SMTP notification.

17. Confirm whether you want to use the discovered public NIC on the first system.

 

Active NIC devices discovered on north: hme0Enter the NIC for Cluster Manager (Web Console) to use on north:[b,?](hme0)

Press Return if the discovered NIC is the one to use. Otherwise, type the name of a NIC to use and press Return.

Is hme0 to be the public NIC used by all systems [y,n,q,b,?] (y)

Press Return if all systems use the same public NIC. You are prompted to enter a NIC for each system if unique NICs are used.

18. Enter the virtual IP address to be used by Cluster Manager: Enter the Virtual IP address for Cluster Manager: [b,?]

 

10.180.88.199

19. You can confirm the default netmask, or enter another: Enter the netmask for IP 10.180.88.199: [b,?] (255.255.240.0)

20. The installer prompts you to verify Cluster Manager information: Cluster Manager (Web Console) verification:

 

NIC: hme0IP: 10.180.88.199Netmask: 255.255.240.0

Is this information correct? [y,n,q] (y)

◆ If the information is not correct, answer “n.” The installer prompts you to enter the information again.

◆ If the information is correct, press Return.


 


 


 

 

34 VERITAS Cluster Server Installation Guide

Example VCS Installation


 

 

Configuring SMTP Email Notification

21. The installation program describes the information required to configure the SMTP notification feature of VCS:

 

The following information is required to configure SMTPnotification:

The domain-based hostname of the SMTP serverThe email address of each SMTP recipientA minimum severity level of messages to send to each recipient

Do you want to configure SMTP notification? [y,n,q] (y) y

You can enter “n” and skip configuring SMTP notification. The program advances you to the screen enabling you to configure SNMP notification (see step 24).

22. Respond to the prompts and provide information to configure SMTP notification.

 

Enter the domain-based hostname of the SMTP server(example: smtp.yourcompany.com): [b,?] smtp.xyzstar.comEnter the full email address of the SMTP recipient(example: user@yourcompany.com): [b,?] ozzie@xyzstar.com

Enter the minimum severity of events for which mail should besent to ozzie@xyzstar.com [I=Information, W=Warning,E=Error, S=SevereError]: [b,?] w

Would you like to add another SMTP recipient? [y,n,q,b] (n) yEnter the full email address of the SMTP recipient(example: user@yourcompany.com): [b,?] harriet@xyzstar.com

Enter the minimum severity of events for which mail should besent to harriet@xyzstar.com [I=Information, W=Warning,E=Error, S=SevereError]: [b,?] E

Would you like to add another SMTP recipient? [y,n,q,b] (n)

23. The installer prompts you to verify the SMTP notification information:

 

SMTP Address: smtp.xyzstar.comRecipient: ozzie@xyzstar.com receives email for Warning orhigher eventsRecipient: harriet@xyzstar.com receives email for Error orhigher events

Is this information correct? [y,n,q] (y)

◆ If the information is not correct, answer “n.” The installer prompts you to enter the information again.

◆ If the information is correct, press Return.


 


 


 

 

Chapter 3, Using the VCS Installation Utilities 35

Example VCS Installation


 

 

Configuring SNMP Trap Notification

24. The installation program describes the information required to configure the SNMP notification feature of VCS:

 

System names of SNMP consoles to receive VCS trap messagesSNMP trap daemon port numbers for each oonsoleA minimum severity level of messages to send to each console

Do you want to configure SNMP notification? [y,n,q] (y)

You can enter “n” and skip configuring SNMP notification. The program advances you to the screen enabling you to configure the Global Cluster option.

25. Respond to the prompts and provide information to configure SNMP trap notification:

 

Enter the SNMP trap daemon port: [b,?] (162)Enter the SNMP console system name: [b,?] saturnEnter the minimum severity of events for which SNMP traps should

be sent to saturn [I=Information, W=Warning, E=Error,

S=SevereError]: [b,?] EWould you like to add another SNMP console? [y,n,q,b] (n) yEnter the SNMP console system name: [b,?] jupiterEnter the minimum severity of events for which SNMP traps should

be sent to saturn [I=Information, W=Warning, E=Error,S=SevereError]: [b,?] SWould you like to add another SNMP console? [y,n,q,b] (n)

26. The installer prompts you to verify the SNMP trap notification information:

 

SNMP Port: 162Console: saturn receives SNMP traps for Error or higher eventsConsole: jupiter receives SNMP traps for SevereError or higher

events

Is this information correct? [y,n,q] (y)

◆ If the information is not correct, answer “n.” The installer prompts you to enter the information again.

◆ If the information is correct, press Return.


 


 


 

 

36 VERITAS Cluster Server Installation Guide

Example VCS Installation


 

 

Configuring the Global Cluster Option

27. The installation program describes the information required to configure the Global Cluster option of VCS:

 

The following is required to configure the Global Cluster Option:

A public NIC used by each system in the clusterA Virtual IP address and netmask

The Virtual IP address and NIC may be the same as thoseconfigured for Cluster Manager (Web Console)

Do you want to configure the Global Cluster Option? [y,n,q](y)

You can enter “n” and skip configuring the Global Cluster Option. The installation program starts installation of the packages; see step 30.

28. Respond to the prompts and provide information to configure the Global Cluster option. As the prompts suggest, you can use the same virtual IP address and netmask used by Cluster Manager:

 

Enter the Virtual IP address for Cluster Manager: [b,?](10.180.88.199)

Press return to accept the default, which is the virtual IP address, NIC, and netmask used by Cluster Manager (see step 20). If you enter another IP address, the installer prompts you for a NIC and value for the netmask.

29. The installer prompts you to verify the configuration of the Global Cluster option:

 

Global Cluster Option configuration verification:

NIC: hme0IP: 10.180.88.199Netmask: 255.255.240.0

Matching Cluster Manager (Web Console) Virtual IP configuration

Is this information correct? [y,n,q] (y)

◆ If the information is not correct, answer “n.” The installer prompts you to enter the information again.

◆ If the information is correct, press Return.


 


 


 

 

Chapter 3, Using the VCS Installation Utilities 37

Example VCS Installation


 

 

Installing the VCS Packages

30. After you have verified that the information for the Global Cluster option you have entered is correct, the installation program begins installing by prompting you to indicate whether you want to install the packages consecutively or simultaneously.:

 

VCS packages can be installed on systems consecutively orsimultaneously. Installing packages on systems consecutivelytakes more time but allows for better error handling.

By default, installation occurs on systems consecutively.

Would you like to install Cluster Server packages on allsystems simultaneously? [y,n,q,?] (y) n

Installing Cluster Server 4.0 on north:

Installing VRTSperl 4.0 on north .........Done 1 of 70 stepsInstalling VRTSob 3.2.503.0 on north......Done 2 of 70 stepsInstalling VRTSmuob 3.2.514.0 on north....Done 3 of 70 stepsInstalling VRTSobgui 3.2.514.0 on north...Done 4 of 70 stepsInstalling VRTSllt 4.0 on north.......... Done 5 of 70 stepsInstalling VRTSgab 4.0 on north.......... Done 6 of 70 stepsInstalling VRTSvxfen 4.0 on north........ Done 7 of 70 stepsInstalling VRTSvcs 4.0 on north...........Done 8 of 70 stepsInstalling VRTSvcsmg 4.0 on north........ Done 9 of 70 stepsInstalling VRTSvcsag 4.0 on north....... Done 10 of 70 stepsInstalling VRTSvcsmn 4.0 on north....... Done 11 of 70 stepsInstalling VRTScspro 4.0 on north....... Done 12 of 70 stepsInstalling VRTSvcsdc 4.0 on north....... Done 13 of 70 stepsInstalling VRTSjre 1.4 on north......... Done 14 of 70 stepsInstalling VRTScutil 4.0 on north....... Done 15 of 70 stepsInstalling VRTScssim 4.0 on north....... Done 16 of 70 stepsInstalling VRTScscw 4.0 on north........ Done 17 of 70 stepsInstalling VRTSweb 4.0 on nort.......... Done 18 of 70 stepsInstalling VRTSvcsw 4.0 on north.........Done 19 of 70 stepsInstalling VRTScscm 4.0 on north........Done 20 of 70 stepsAdding patch 115209-05 on north..........Done 21 of 70 stepsAdding patch 115212-05 on north..........Done 22 of 70 stepsAdding patch 115210-05 on north..........Done 23 of 70 steps

The same packages are installed on each machine in the cluster:

Installing Cluster Server 4.0 on south:

Copying VRTSperl.tar.gz to south.........Done 24 of 70 stepsInstalling VRTSperl 4.0.2 on south.......Done 25 of 70 stepsCopying VRTSob.tar.gz to south.......... Done 26 of 70 stepsInstalling VRTSob 3.2.514.0 on south.....Done 27 of 70 steps


 


 


 

 

38 VERITAS Cluster Server Installation Guide

Example VCS Installation

.

.Copying VRTSvcsw.tar.gz to south........ Done 61 of 70 stepsInstalling VRTSvcsw 4.0 on south ....... Done 62 of 70 stepsCopying VRTScscm.tar.gz to south ....... Done 63 of 70 stepsInstalling VRTScscm 4.0 on south ....... Done 64 of 70 stepsCopying patch 115209-05 to south ....... Done 65 of 70 stepsAdding patch 115209-05 on south ........ Done 66 of 70 stepsCopying patch 115212-05 to south ....... Done 67 of 70 stepsAdding patch 115212-05 on south ........ Done 68 of 70 stepsCopying patch 115210-05 to south ....... Done 69 of 70 stepsAdding patch 115210-05 on south ........ Done 70 of 70 steps

Cluster Server installation completed successfully.

Press [Return] to continue:


 

 

Creating VCS Configuration Files

31. The installation program continues by creating configuration files and copying them to each system:

 

Creating Cluster Server configuration files ........... DoneCopying configuration files to north................... DoneCopying configuration files to south................... Done

Cluster Server configured successfully.


 

 

Starting VCS

32. You can now start VCS and its components on each system: Do you want to start Cluster Server processes now? [y,n,q] (y)

 

Starting Cluster Server:

Starting LLT on north .............................. StartedStarting LLT on south .............................. StartedStarting GAB on north .............................. StartedStarting GAB on south .............................. StartedStarting Cluster Server on north ................... StartedStarting Cluster Server on south ................... StartedConfirming Cluster Server startup ........ 2 systems RUNNING

Cluster Server was started successfully.Press [Return] to continue:


 


 


 

 

Chapter 3, Using the VCS Installation Utilities 39

Verifying the Cluster After Installation

33. When Cluster Server 4.0 installation completes successfully, the installation program displays the following messages:

 

Installation of Cluster Server 4.0 has completed successfully.

The installation summary is saved at:/opt/VRTS/install/logs/installvcsdate_time.summary

The installvcs log is saved at:

/opt/VRTS/install/logs/installvcsdate_time.log

The installation response file is saved at:

/opt/VRTS/install/logs/installvcsdate_time.response

These files provide useful information that can assist you with this and future installations:

◆ The “summary” file lists packages installed on each system, describes the cluster and its configured resources, and provides information for managing the cluster.

◆ The “log” file details the entire installation.

◆ The “response” file contains configuration information that can be used to perform secure or unattended installations on other systems

本例安装时不选SMTPSNMP,因为没有Volume Manager,所以vxfen的包也不用安装,如果装了想卸掉可以直接禁止/etc/rc2.d/S97vxfen或者参考下述方法,否则主机启动时报Miss文件错误,但对系统运行没有影响

主机名sunfirev490-1 sunfirev490-2

公网ce1 193.80.2.131 193.80.2.132

浮动IP 193.80.2.130 掩码255.255.255.0

心跳线两根 ce0 ce2

Using installvcs to Configure Without Installation

When VCS has been installed without configuration, use the installvcs -configure option to configure VCS when you are ready for cluster configuration. The installvcs utility prompts for cluster information as described in the section, Example VCS Installation on page 24, and creates VCS configuration files without performing installation.

The -configure option can be used to reconfigure a VCS cluster. VCS must not be running on systems when this reconfiguration is performed.

 

阅读(851) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~