Linux installation configuration Vcs,oracle two machines __ Small program

Source: Internet
Author: User
Tags ssh
1. VCS preparation before installation.
To see if the Veritas version of the operating system version, and so on, meet the installation conditions.
Generating DSA keys #ssh-keygen-t dsa//
#chmod 755-t/root/.ssh
Put root/.ssh/id_dsa.pub file as Authorized_keys2
Copy the AUTHORIZED_KEYS2 to the/ROOT/.SSH directory where you need to install the VCs all servers. (This is important)
Execute the following command on the VRTS1 machine, which does not require a password to generate logins at the current shell.
#exec/usr/bin/ssh-agent $SHELL
#ssh-add
Execute on the VRTS1 server: (where VRTS1, VRTS2 are two machine names respectively)
In the course of execution, with no need to enter a password to be valid, each command can perform two times to see the effect.
#ssh-X-l root VRTS1 ls
#ssh-X-L root VRTS1 ifconfig
#ssh-X-l root VRTS2 ls
#ssh-X-L root VRTS2 ifconfig
Sftp> put/root/.ssh/id_dsa.pub/root/.ssh/id_dsa.pub

2, add the following format value in the/ect/hosts file. (IP server name)
10.1.4.58 VRTS1
10.1.4.68 VRTS2
To join the installation Veritas All installation point server information, this machine on two, if more than one, according to the same format increase.
3, install Veritas.
Under the Veritas source file, locate the installation file and run the installation file.
./installer
Enter the installation interface, prompted to install the main menu, prompts:
I: Install/update
C: Configure and install the product
L: License of products
......
Select Installation: I
Prompts you to install which feature block of the Veritas product.
Selection: 1 (VERITAS Cluster Server)
Install software for testing, after testing prompts to continue, to confirm by return.
For license detection, enter license information.

After successful detection, carriage return determines to continue.

Installation prompts select which VCs RPMs to install
Selection: 1) Install all of the optional RPMs
The software detects which is not installed, prompts, press ENTER to confirm, continue to install.
Configure VCs to determine the VCS name, VCs ID, two or more heartbeats. (Can use a heartbeat)
VCs Name: Keanvcs
VCS id:123
Heartbeat line, two root: eth1,eth2
Sets the VCS password password, which defaults to Admin/password. The default password is not set (you can set it by yourself).
Prompts to increase the number of users without adding users.
Prompts whether to configure Web Console. Not configured. (The following are configuration information)
All systems use eth0 for public nic;virtual IP: 10.1.4.78;netmask:255.255.0.0.
Indicates whether SMTP (simple Mail Transfer Protocol) is configured and not configured.
  
Prompts whether the VCS will be installed on all machines at the same time. Determine to install at the same time.
Follow the prompts to confirm.

The software installs automatically, the prompt installs completes.
4, application configuration.
When configuring application applications, you need to set up the start, stop, Pidfiles, Monitorprogram, monitorprocesses
One of the three pidfiles, Monitorprogram, monitorprocesses, as long as one of the configuration is complete.
In this I only oidfiles the way to configure success, the other two are not.
I wrote this in the startup script to get Pidfile.
Export Path=/root/jdk1.5.0_06/bin:/root/test PATH
Export classpath=.:/ oracle/study/study.jar:/root/jdk1.5.0_06/lib/dt.jar:/root/jdk1.5.0_06/lib/tools.jar:/root/jdk1.5.0_06/lib/ Sa-jdi.jar CLASSPATH
Nohup Java Study. Studymain &
Ps-ef|grep "Java" |grep "study. Studymain "|grep-v grep |awk ' {print $} ' >/oracle/study/study.pid

5. Oracle is configured in the VCs.
Install the following two packages. This VCs is not in the zone and needs to be bought separately.
# RPM-IVH Vrtsvcsor
# RPM-IVH VRTSCSOCW

6. Import Oracle configuration files in the VCs interface.
Open the VCs interface in the command window,/opt/vrtsvcs/hagui.
After you log into the admin interface, open the import/etc/vrtsvcs/conf/config/oracletype.cf file.
This will have the Oracle and listener options when adding resources.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.