The deploycluster tool is a standalone program that can run from any Linux server. It connects to Oracle VM 3 Manager to automatically configure any number of nodes (VMs) to create a fully functional Single Instance, Single Instance/HA (Oracle Restart) or Real Application Cluster environment. The tool assumes all VMs are pre-created from the base Oracle DB/RACOVM Template and in the case of Oracle RAC, assigned correct disks & network to allow a successful cluster deployment. It then starts the VMs (if needed), verifies they are configured correctly (disk, network, etc.) then sends the network & build parameters to all VMs. This configures the network in all of the VMs and optionally launches a buildsingle to create a Single Instance environment, or buildcluster operation on the N-nodes cluster to obtain a fully configured Oracle RAC environment. The tool may also be used to configure a single node (VM), to add to an existing cluster, act as a single RAC node or asa Single Instance or Single Instance/HA (Oracle Restart) environment.
Deploycluster 工具主要用于oracle RAC、或者single instance等的自动安装,该脚本配合oracle RAC 模板在OVM 3 环境下使用,能够方便的配置RAC架构,在参数文件、网络文件调整ok后,运行后面的shell语句即可完成Oracle RAC 的安装,安装过程中无需操作RAC各节点、即使各节点服务器的启动也无需手动进行,只需提供节点名即可自动启动各节点,并完成安装。详细参数如下:
[root@ovmm deploycluster]# ./deploycluster.py -h
Oracle DB/RAC OneCommand (v2.0.3) for Oracle VM - deploy cluster - (c) 2011-2013 Oracle Corporation
(com: 28700:v2.0.2, lib: 180072:v2.0.3, var: 1500:v2.0.3) - v2.6.6 - ovmm.example.com (x86_64)
Invoked as root at Thu Nov 13 14:21:24 2014 (size: 45500, mtime: Wed Jul 31 07:55:37 2013)
Usage: deploycluster.py
deploycluster.py provides fully automated backend Oracle DB/Single Instance or
RAC cluster deployment. It assumes all VMs are pre-created from the base
Oracle DB/RAC OVM Template and assigned correct disks & network to allow a
successful cluster deployment. It then starts the VMs (if needed), verifies
they are configured correctly (disk, network, etc.) then sends the network &
build parameters to all VMs. This configures the VMs network and optionally
launches a buildsingle/buildcluster on the single VM or N-nodes cluster to
obtain a fully configured single instance or Oracle RAC environment. See
deploycluster.ini options file for more details.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
Oracle VM Manager Login:
Credentials to login to Oracle VM Manager (SSL supported)
-u , --username= -----常用参数用户名
Username to connect to Oracle VM Manager
-p , --password= -----常用参数之用户密码
Password to connect to Oracle VM Manager
-H , --host= ---------OVM管理机
Manager hostname (use either -H or -U or none)
-U , --url=
Login URL to Manager (default: tcp://localhost:54321
or tcps://host:54322 when -H used to remote node)
Oracle DB/RAC OVM Template Options:
Identify which VMs to deploy as Single Instance or a cluster - pass
any special build attributes. Commonly used flags: -M, -N & -P.
-L, --list_vms_only
List VMs seen via Oracle VM Manager; Honors -M flag
-M , --vms= --------RAC节点名称(创建时指定的)
List of existing VM names or IDs to deploy cluster on.
Supports "*" & "?" wildcard characters
-P , --params= --------常用配置参数,用于配置文件
Location of params.ini file (sent to VMs)
-N , --netconfig= -----网络配置参数,用于网络配置文件
Location of netconfig.ini file (sent to VMs)
-B , --buildcluster=
Start a buildcluster/buildsingle post-network setup
(default: yes. [If netconfig_args passed then default:
no])
-G , --netconfig_args=
Advanced: Arguments to netconfig; override defaults
-K , --kitfile=
Advanced: Unzip new (partial) kitfile inside the VMs
-X , --extrakeys=
Advanced: File containing extra keys to send all VMs
-D, --dryrun Show what will be done (do not start VMs or send msgs)
常用命令如下:
[root@ovmm deploycluster]# ./deploycluster.py -u admin -p Oracle123 -H localhost -M RAC-1,RAC-2 -P utils/params-my.ini -N utils/netconfig-my.ini
注意上述提供的账号密码均为OVM管理机的账号密码
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28612416/viewspace-1331214/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/28612416/viewspace-1331214/