HP Serviceguard Enterprise Cluster Master Toolkit manuals
Computer Equipment > Software
When we buy new device such as HP Serviceguard Enterprise Cluster Master Toolkit we often through away most of the documentation but the warranty.
Very often issues with HP Serviceguard Enterprise Cluster Master Toolkit begin only after the warranty period ends and you may want to find how to repair it or just do some service work.
Even oftener it is hard to remember what does each function in Software HP Serviceguard Enterprise Cluster Master Toolkit is responsible for and what options to choose for expected result.
Fortunately you can find all manuals for Software on our side using links below.
HP Serviceguard Enterprise Cluster Master Toolkit Manual
140 pages 2.02 Mb
3 Contents6 1 Introduction8 2 Using the Oracle Toolkit in an HP Serviceguard Cluster9 “Configuring and packaging Oraclesingle-instance database to co-exist with SGeRAC packages” (page 52) Setting Up The Application /home/Oracle 3.Some of the possible configurations are as follows: •Configuring shared file system using LVM Assuming that the name of the database is 'ORACLE_TEST0', create the following: A volume group: A logical volume: A file system: /dev/vg0_ORACLE_TEST0/lvol1 •Configuring shared file system using VxVM Assuming ORACLE_TEST0 the name of the database create the following: ◦A disk group /dev/vx/dsk/DG0_ORACLE_TEST0 A disk group ◦A logical volume /dev/vx/dsk/DG0_ORACLE_TEST0/lvol1 A logical volume ◦A file system /dev/vx/dsk/DG0_ORACLE_TEST0/lvol1 mounted at /ORACLE_TEST0 A file system mounted at /ORACLE_TEST0 $ vxdctl enable Create the directory /ORACLE_TEST0 on all nodes so that /dev/vx/dsk DG0_ORACLE_TEST0/lvol1 10 •Configuring shared file system using CFSThe shared file system can be a CFS mounted file system The control files, table spaces, and 11 /home/Oracle/dbs•Multiple Instance Configuration ◦For LVM ◦For VxVM ◦For CFS •Here is an alternate setup for Oracle 10g/11g single-instancedatabase: ◦If you are using LVM or VxVM (supported on Oracle 10gR2 and 11g only): 13 Toolkit Overview14 Table 2 Legacy Package Scripts (continued)Table 3 Variable or Parameter Name in haoracle.conf file 15 Table 3 Variable or Parameter Name in haoracle.conf file (continued)17 Support for multiple listenersSupport for database hang detection 18 Package Setup and Configuration19 If you are using LVM or VxVMIf you are using CFS Assuming Oracle is installed in Bring the database down If you are using LVM - unmount and deactivate the volume group 20 If you are using VxVM - unmount and deport the disk group•Create the Serviceguard package using legacy method If you are using LVM VOLUME GROUPS Define the file systems which are used by the Oracle instance 21 LV[0]=/dev/vg00_${SID_NAME}/lvol1FS[0]=/${SID_NAME} LV[0]=/dev/vg00_ORACLE_TEST0/lvol1 FS[0]=/ORACLE_TEST0 If you are using VxVM •DISK GROUPS VXVM_DG[0]=/dev/vx/dsk/DG00_${SID_NAME} VXVM_DG[0]=/dev/vx/dsk/DG00_ORACLE_TEST0 LV[0]=/dev/vx/dsk/DG00_${SID_NAME} FS[0]=/${SID_NAME} LV[0]=/dev/vx/dsk/DG00_ORACLE_TEST0/lvol1 FS[0]=/ORACLE_TEST0 SERVICE_NAME[0]=ORACLE_TEST0 22 cmmodpkgTo reset the restart counter execute the following command: cmmodpkg [-v] [-nnode_name] -R -sservice_name package_name /etc/cmcluster/pkg/ORACLE_TEST0/ toolkit.sh function customer_defined_run_cmds test_return function customer_defined_halt_cmds # Stops the database with a "shutdown abort" or a #"shutdown immediate" command if [ $SG_HALT_REASON = "user_halt" ]; then reason="user else reason="auto /etc/cmcluster/pkg/ORACLE_TEST0/toolkit.sh stop $reason •The Serviceguard package configuration file (ORACLE_TEST0.conf) '/etc/cmcluster/pkg/${SID_NAME}/${SID_NAME}.conf /etc/cmcluster/pkg/ORACLE_TEST0/ORACLE_TEST0.conf 23 SERVICE_NAMEIf the listener should also be monitored, another service must be added NOTE: If listener monitoring is not intended, do not create a new service 24 •The Oracle toolkit user configuration fileASM_DISKGROUP, ASM_VOLUME_GROUP, ASM_HOME, ASM_USER, ASM_SID KILL_ASM_FOREGROUNDS 25 Table 5 Files in ORACLE_TEST0Another example to create the Serviceguard package using modular method: # cmmakepkg -mecmt/Oracle/Oracle pkg.conf where 'ecmt/Oracle/Oracle' is the ECMT Oracle toolkit module name pkg.conf is the name of the package configuration file Configure the following Serviceguard parameters in the package_type — Set to failover Edit the service parameters if necessary. The service parameters are preset to: Configure the toolkit parameter 4.Apply the package configuration using the following command: # cmapplyconf -Ppkg2.conf 26 HP Enterprise Cluster Master Toolkita.Edit the package configuration file and populate the new values b.Halt the package c.Apply the package configuration file d.Start the package What is Automatic Storage Management (ASM) 27 Following are the supported versions of HP Serviceguard:•A.11.19 •A.11.20 High Availability Support for Oracle ASM with Serviceguard www.hp.com/go/hpux-serviceguard-docs HP Enterprise Cluster Master Toolkit 28 Figure 1 Oracle database storage hierarchy without and with ASMWhy ASM over LVM ASM-over-LVM ASM-over-LVM The disadvantages of the ASM-over-LVMconfiguration are as follows: •There is a small performance impact from the extra layer of volume management Configuring LVM Volume Groups for ASM Disk Groups •should be contiguous •should not be striped or mirrored 29 Sample Command Sequence for Configuring LVM Volume Groups30 2.For each of the two PVs, create a corresponding LV• Create an LV of zero length • Mark the LV as contiguous 31 Serviceguard support for ASM on HP-UX11i v3 onwardshttp: 2 logical volumes are also supported as members of the ASM disk groups Framework for ASM support with Serviceguard •Many database instances can share one ASM instance per node •Flexibility of the database instances to fail over independently 32 How Toolkit Starts, Stops and Monitors the Database instance33 Serviceguard Toolkit Internal File Structure34 Figure 5 Internal file structure for legacy packagesFigure 6 Internal file structure for modular packages 35 ASM File Descriptor Release36 •Halt the ASM and database instancesConfiguring ASM in a Serviceguard environment and creating the ASM instance Creating an Oracle database on an ASM disk group in a Serviceguard environment 3.Configure a listener (if required) 37 Table 6 Variables or Parameters in haoracle.conf file38 Table 6 Variables or Parameters in haoracle.conf file (continued)40 Oracle Legacy Package Configuration Example1.ASM Multi-NodePackage Setup and Configuration Log in as root: #mkdir /etc/cmcluster/asm_package_mnp #cd /etc/cmcluster/asm_package_mnp INSTANCE_TYPE=ASM ASM_HOME=/ASM_TEST0 ASM_USER=Oracle ASM_SID=+ASM PFILE=${ASM_HOME}/dbs/init${ASM_SID}.ora LISTENER=no (Change from default value "yes" to "no") MONITOR_PROCESSES[0]=asm_pmon_${ASM_SID} MONITOR_PROCESSES[1]=asm_dbw0_${ASM_SID} MONITOR_PROCESSES[2]=asm_ckpt_${ASM_SID} MONITOR_PROCESSES[3]=asm_smon_${ASM_SID} MONITOR_PROCESSES[4]=asm_lgwr_${ASM_SID} MONITOR_PROCESSES[5]=asm_rbal_${ASM_SID} MONITOR_PROCESSES[6]=asm_gmon_${ASM_SID} PARENT_ENVIRONMENT=yes 41 In the package configuration file asmpkg.conf, edit the following parameters:In the package control script asmpkg.cntl, edit the following parameters: Configure the package service: Add in the customer_defined_run_cmds function: Add in the customer_defined_halt_cmds function: #cmapplyconf -Pasmpkg.conf Run the ASM package. cmrunpkg asmpkg_name cmviewcl 2.Database Failover Package Setup and Configuration Copy the framework scripts provided to this location: cp /opt/cmcluster/toolkit/Oracle 42 #cmmakepkg -pdb1pkg.conf#cmmakepkg -sdb1pkg.cntl Edit the package configuration file db1pkg.conf as shown below: PACKAGE_NAME - Set to any name desired PACKAGE_TYPE - Set to FAILOVER 43 Configure the service parameters:SERVICE_NAME ORACLE_DB1_SRV SERVICE_NAME ORACLE_LSNR_SRV Edit the package control script db1pkg.cntl as shown below: SERVICE_NAME[0]="ORACLE_DB1_SRV else reason="auto" fi /etc/cmcluster/db1_package/toolkit.sh stop $reason #cmapplyconf -Pdb1pkg.conf Run the database package: #cmrunpkg dbpkg_name Repeat the above steps for each database instance: Oracle Modular Package Configuration Example Install and Configuration directory operations: /opt/cmcluster/ toolkit/Oracle 44 asmpkg.conf/etc/cmcluster/asm_package_mnp # cmmakepkg -mecmt/Oracle/Oracle asmpkg.conf Configure the Serviceguard parameters as mentioned below: package_name - Set to any name desired package_type - Set to "multi_node Configure the other toolkit parameters for the ASM package Apply the package configuration using: # cmapplyconf -Pasmpkg.conf db1pkg.conf package_name - Set to any name desired. package_type - Set to "failover 45 Edit the dependency parameters as shown:dependency_name asm_dependency dependency_condition <ASM MNP package_name>=up dependency_location same_node Configure the ip_subnet and ip_address parameters “Support For Oracle Database without ASM” (page 9) # cmapplyconf -Pdb1pkg.conf Also refer the whitepaper for more information. You can find this whitepaper at 46 For Oracle 10g:#$ORACLE_HOME/bin/srvctl modify database -d<dbname> -ymanual For Oracle 11g: #$ORACLE_HOME/bin/srvctl modify database -d<dbname> -yMANUAL b.Log in as root and create the database package directory: #mkdir /etc/cmcluster/db1_package Create the modular package configuration file #cmmakepkg -mecmt/Oracle/Oracle db1pkg.conf package_type - Set to "failover dependency_name oc_dependency dependency_condition <SGeRAC OC MNP Package name>=up dependency_location same_node TKIT_DIR /etc/ cmcluster/db1_package e.Configure the ASM Disk Group using the following attributes: 47 1)Set attribute ASM to yes. ASM = yesASM_HOME=/ASM_TEST0 ASM_USER=Oracle ASM_SID=+ASM 7)Apply the package configuration Open the haoracle.conf a)Edit the package configuration file and populate the new values b)Halt the package c)Apply the package configuration file d)Start the package 1.Migration to a legacy database package not using ASM: •Halt the database package 48 ORACLE_ADMIN, SID_NAME, LISTENER, LISTENER_NAMEStart the database package. There is no need to 2.Migration to a legacy database package using ASM: •Configure an ASM MNP as mentioned in this document •Apply the ASM MNP configuration •Run the ASM MNP •Copy the scripts from the package directory to all the configured nodes •Apply the database package configuration •Run the database package 3.Migration to a modular database package not using ASM: # cmmigratepkg -p<legacy_pkg_name> -s -o<modular_pkg_name 49 •Apply the new modular package configuration using cmapplyconf•Start the database package 4.Migration to a modular database package using ASM: •Configure a modular ASM MNP as mentioned in this document Refer to the Whitepaper and also the Whitepaper on modular package support in Serviceguard at ORACLE_HOME, ORACLE_ADMIN, SID_NAME 50 $ cmmodpkg -e -n<node1> -n<node2> ORACLE_TEST0 $ cmmodpkg -eORACLE_TEST0Managing ServiceGuard http://www.hp.com Serviceguard For Example: /etc/hosts EXAMPLE: Add the following entry to your hosts files: 192.10.10.1 ORACLE_TEST0 51 Listener:PASSWORDS_<listener_name LISTENER_PASS Disable the failover of the package through •Pause the monitor script 52 •If required, stop the Oracle database instance as shown below:Re-start Allow monitoring scripts to continue normally as shown below: $ rm •Enable the package failover $ cmmodpkg -eORACLE_TEST0 53 Serviceguard Extension for RAC/opt/cmcluster/SGeRAC/toolkit/README fileThe ASM The ASM Disk Groups and underlying LVM volume groups used by the Attributes newly added to ECMT Oracle toolkit Figure 7 Packages in a coexistence environment 55 ASM_DISKGROUP[1] asm_dg2ASM_VOLUME_GROUP[0] vgora_asm1 ASM_VOLUME_GROUP[1] vgora_asm2 R2 this is same as CRS Home: ASM_HOME /ASM_TEST0 ASM_USER oracle ASM_SID +ASM •Apply the package configuration file: •Open the haoracle.conf file generated in the package directory (TKIT_DIR) To configure an ECMT legacy package for an Oracle database: Copy the framework scripts provided to this location 57 Configure the Package IP and the SUBNET6.Run the database package: ECMT Oracle Toolkit Maintenance Mode If the 58 –servernameRapidInstall NOTE: Refer to the latest Oracle document available in Oracle support website 59 3 Using the Sybase ASE Toolkit in a Serviceguard Cluster on HP-UX60 Shared Configurationmaster.dat sysprocs.dat sybsysdb.dat <ASE_SERVER.cfg 61 /etc/passwd file:file: Assuming that the name of the ASE instance is 'SYBASE0', create the following: Building an HA Cluster Set up additional database logical volumes Use with Asynchronous disk access and file systems: 62 File system for Sybase ASE data files:/SYBASE0 - mount point for /dev/vg03_SYBASE0/lvol1 •Sybase ASE system data tables •Sybase ASE indexes •Sybase ASE stored procedures •Sybase ASE transaction log files •Toolkit Setup •Attribute Definition File (sybase.1) Table 7 (page 62) Table 7 Sybase ASE attributes 63 Table 7 Sybase ASE attributes (continued)•Module Script (tkit_module.sh) 64 On package2.On package halt, it stops the Sybase ASE instance and monitor process •Package Setup and Configuration Building an HA Cluster Configuration hpux-serviceguard-docs 3.Test the set up to ensure Sybase ASE can be properly brought up •The Serviceguard package configuration file (SYBASE0.conf) package_name SYBASE0 node_name node1 node_name node2 65 The following is an example of specifying Sybase ASE specific variables:“Configuring Access Roles” (page 67) ecmt/sybase/sybase/MONITOR_INTERVAL ecmt/sybase/sybase/TIME_OUT ecmt/sybase/sybase/RECOVERY_TIMEOUT ecmt/sybase/sybase/MONITOR_PROCESSES dataserver ecmt/sybase/sybase/MAINTENANCE_FLAG yes vg /dev/vg00_SYBASE0 vg /dev/vg01_SYBASE0 service_restart "-r3 66 To reset the restart counter execute the following command cmmodpkg [-v] [-nnode_name] -R -sservice_name package_name Follow the steps below to create Serviceguard package using Modular method: 1.Create a directory for the package #mkdir /etc/cmcluster/pkg/sybase_pkg 2.Copy the toolkit template and script files from sybase directory #cd /etc/cmcluster/pkg/sybase_pkg/ #cp /opt/cmcluster/toolkit/sybase 3.Create a configuration file (pkg.conf) as follows #cmmakepkg -mecmt/sybase/sybase pkg.conf 4.Edit the package configuration file ecmt/sybase/sybase /etc/cmcluster/pkg/sybase_pkg/pkg.conf PACKAGE_NAME sybase NODE_NAME node1 NODE_NAME node2 TKIT_DIR /etc/cmcluster/pkg/pkg01 Use #cmcheckconf -Ppkg.conf #cmapplyconf -Ppkg.conf 67 cmapplyconf -PSYBASE0cmmodpkg -e -n<node1> -n<node2> SYBASE0 cmmodpkg -eSYBASE0 cmviewcl •USER_NAME •USER_HOST •USER_ROLE Specify one of the following values for the USER_ROLE parameter: Table 8 Parameters in USER_ROLE Securing Serviceguard, March 69 •Sybase ASE interfaces fileThis needs to be edited to have the re-locatable IP-address,as follows: Use the - /etc/hosts /etc/hosts 192.168.10.1 sybase0 70 following procedure should be used:/opt/cmcluster/pkg/SYBASE0 command: Create an empty file <TKIT_DIR>/sybase.debug as shown below: •If required, stop the Sybase ASE database instance as shown below: $ export SG_PACKAGE=SYBASE0 $ $SGCONF/scripts/ecmt/sybase/tkit_module.sh stop •Start the Sybase ASE database instance again if it has been stopped: $ SGCONF/scripts/ecmt/sybase/tkit_module.sh start Allow monitoring scripts to continue normally as shown below: •Enable the package failover: $ cmmodpkg -eSYBASE0 71 4 Using the DB2 database Toolkit in a Serviceguard Cluster in HP-UX72 the Serviceguard user manual available athttp://www-306.ibm.com/software/data/db2/9/sysreqs.html Use the DB2 Setup Wizard or db2install IBM provides a utility called /opt/IBM/DB2/V9.5/bin/db2osconf /opt/IBM/DB2/V9.5/ bin/db2osconf /opt/IBM/DB2/V9.7/bin/db2osconf kctune maxuprc root@hp46t191:/home/root>kctune maxuprc=256 https://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp https://publib.boulder.ibm.com/infocenter/db2luw/v9r7/index.jsp 5.Create required users and groups on all cluster members To create required groups using command line utilities, execute as root: To create required users using command line utilities, execute as root: [root@node1/]> useradd -u500 -gdb2fadm1 -m -d /home/db2fenc1db2fenc1 [root@node1/]> useradd -u600 -gdasadm1 -m -d /home/dasusr1dasusr1 see useradd (1M) and groupadd (1M) man pages for additional details In case of logical db2nodes.cfg [payroll_inst@node1 ~]> vi /home/payroll_inst/sqllib/db2nodes.cfg 0node1 0 node1 1node1 1 node1 In case of physical 73 To enable the communication between the partitions, edit the/etc/services, /etc/ hosts .rhosts Edit the ~/.rhosts file for the instance owner: As root, edit the /etc/services 74 As an instance owner execute the following:[payroll_inst@node1/]> db2set DB2COMM=tcpip [payroll_inst@node1/]> db2stop [payroll_inst@node1/]> db2start NOTE: For multi-partitioneddatabase using DB2 V9.7, a parameter called DB2_PMODEL_SETTINGS [payroll_inst@node1/]> db2set DB2_PMODEL_SETTINGS=SERIAL_RESTART:TRUE 11.Start the database manager and examine the database log for any errors [payroll_inst@node1 ~]> db2start SQL1063N DB2START processing was successful Define the DBNAME MNTPOINT As an instance owner, execute On other cluster nodes catalog the already created database: 13.Terminate the connection and release the logical volume 14.Stop database manager and correct errors (if any) [payroll_inst@node1 ~]> db2stop 75 https:// publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsphttps:// publib.boulder.ibm.com/infocenter/db2luw/v9r7/index.jsp Multiple Instance Configurations /dev/vg_employee /mnt/employee Set up additional database logical volumes NOTE: Refer Step1 above, for creating logical volumes Raw disk access for DB2 data: Toolkit Overview /opt/ cmcluster/toolkit/db2 /etc/ cmcluster/scripts/ecmt/db2 76 /etc/ cmcluster/modules/ecmt/db2(hadb2.conf) (toolkit.sh) hadb2.sh hadb2.mon Table 9 (page 76) lists these scripts: Table 9 Legacy Package Scripts Table 10 Variables in hadb2.conf File 77 Table 10 Variables in hadb2.conf File (continued)Table 11 Modular Package Scripts Assuming DB2 is already installed To create a logical volume infrastructure on a shared disk, see 79 Creating Serviceguard package using Modular method80 •Create the Serviceguard package using Modular methodFollow these steps to create Serviceguard package using Modular method: 1.Create a directory for the package: 2.Copy the toolkit template and script files from db2 directory: 3.Create a configuration file (pkg.conf) as follows: Set the script_log_file variable. For example Set the TKIT_DIR variable as the path of <package_directory>. For example Set the INSTANCE_NAME variable as the DB2 instance name. For example PARTITION_NUMBER 82 Creating Serviceguard package using legacy method83 Follow these steps to create Serviceguard package using legacy methodThe Serviceguard package control script (pkg.cntl) ◦VOLUME GROUPS Define the file systems which are used by the DB2 instance customer_defined_run_cmds customer_defined_halt_cmds 84 The Serviceguard package configuration file (pkg.conf)hadb2.conf /etc/cmcluster/pkg/db2_pkg 86 Enable monitoring scripts to continue monitoring by removingdb2.debug •Enable the package failover: 87 5 Using MySQL Toolkit in a HP Serviceguard Cluster88 /etc/cmcluster/modules/ecmt/ mysqlTable 14 ADF File in Modular Package in MySQL /etc/cmcluster/scripts/ecmt/mysql Table 15 Script Files The database server can be configured in two different ways: 89 To run MySQL in a HP Serviceguard environment:•Primary Node 2.The relocatable IP address is removed from this node •Standby Node 1.Volume groups are activated and file systems are mounted 2.The relocatable IP address is moved over to the new node 3.All resources are started up, and the database is brought up 4.Clients will (continue to) connect through the same (relocatable) IP address Multiple Database Instances For the volume group (VG) and file system creation, see 90 chapter ofmanual available at 3.Copy the configuration file /etc/my.cnf to /MySQL_1/my.cnf Copy the configuration file Modify /MySQL_1/my.cnf [mysqld] *datadir=/MySQL_1/mysql *socket=/MySQL_1/mysql/mysql.sock *port=<UNIQUE PORT NUMBER mysqld_safe] *err-log=/MySQL_1/mysql/mysqld.err *pid-file=/etc/cmcluster/pkg/mysql1/mysqld.pid Table 16 (page 90) Table 16 Files in MySQL toolkit Table 17 (page 90) Table 17 Scripts used in Modular Method of Packaging 91 MySQL Configuration File (my.cnf)/etc/my.cnf /MySQL_1/my.conf Table 18 Parameters in MySQL Configuration File (my.cnf) mysqld_safe safe_mysqld my.cnf /usr/ bin 2.Grant the execute permission to the newly created link: Toolkit Configuration File (hamysql.conf) Table 19 (page 92) 93 Table 20 Package Configuration File Parameters (continued)Table 21 Package Control Script Parameters SERVICE_NAME="mysql1_monitor SERVICE_CMD="/etc/cmcluster/pkg/MYSQL1/toolkit.sh monitor SERVICE_RESTART="-r0 Table 22 Functions in Package Control Script cmruncl 94 2.Copy the toolkit template and script files from mysql directoryecmt/mysql/mysql TKIT_DIR /etc/cmcluster/pkg/pkg01 Create a directory in the cmcluster directory for each package (for example /etc/ cmcluster/pkg/MySQL1 Configure “Toolkit Configuration File (hamysql.conf)” (page 91) 95 cmmakepkg -sMySQL1.cntl (control template)“Package Configuration File and Control Script” (page 92) chown mysql:mysql /etc/cmcluster/pkg/MySQL1 8.Distribute the package directory to all nodes in the cluster Apply the Serviceguard package configuration using the command MySQL1.conf 10.Enable package switching for MySQL package using: cmmodpkg -e -nnode1 -nnode2 mysql_1 cmmodpkg -emysql_1 cmrunpkg cmrunpkg mysql_1 /etc/ cmcluster/pkg/MySQL1 /MySQL_1/mysql as shown below: $ touch /etc/cmcluster/pkg/MySQL1/mysql.debug If required, stop the MySQL database instance as shown below: Start the MySQL database instance again if you stopped it: 96 Do'sDon'ts 97 6 Using an Apache Toolkit in a HP Serviceguard Cluster98 Table 23 Files in Apache Toolkit (continued)Table 24 (page 98) Table 24 Files in Modular Method Packaging hahttp.conf 99 /opt/hpws22/apachehttpd.conf •Each node must have the same version of the HP-UXbased Apache Web Server Apache Web Server can be configured in two different ways: (local config) by putting the configuration and other Multiple Apache Instances Configuration 100 /opt/hpws22/apache/conf/httpd.conf101 /shared/apache_11.Create a Volume Group "vg01" for a shared storage 2.Create a Logical Volume "lvol1" on the volume group "vg01 3.Construct a new file system on the Logical Volume "lvol1 Create a directory named 5.Mount device /dev/vg01/lvol1 to the /shared/apache_1 Mount device to the 6.Copy all files from /opt/hpws22/apache/conf to /shared/apache_1/conf Copy all files from 7.Create a directory "logs" under the /shared/apache_1 Create a symbolic link between /shared/apache_1/modules /opt/hpws22/ apache/modules Update the Apache configuration files present in /shared/apache_1/conf The following is an example of configuring the above steps using VxVM: 1.Create a Disk Group "DG_00" on the shared storage 2.Create Logical volume "LV_00" on the Disk Group "DG_00 3.Construct a new file system on the Logical Volume "LV_00 5.Mount device "/dev/vx/dsk/DG_00/LV_00" on "/shared/apache_1 Follow steps 6 to 9 described above Active - Active 102 Active - PassiveMethod #1 2.Copy all files from /opt/hpws22/apache to /mnt/apache on any one node Remove or rename Method #2 /etc/rc.config.d/hpws22_apacheconf Now configure the 104 /etc/cmcluster/pkg/http_pkg1/ toolkit.sh start/etc/cmcluster/pkg/http_pkg1/toolkit.sh stop 105 /etc/cmcluster/pkg/http_pkg1/toolkit.sh startConfigure the Apache user configuration file 4.Copy this package configuration directory to all other package nodes /opt/ cmcluster/toolkit/apache /etc/cmcluster/scripts/ ecmt/apache /etc/cmcluster/modules/ecmt/apache Table 25 (page 105) lists the scripts used in legacy packages are: Table 25 Scripts in Legacy Packages 106 Toolkit User ConfigurationTable 26 (page 106) Table 26 Configuration Variables ALERT_MAIL_ID ALERT_MAIL ID 107 /etc/ cmcluster/pkg/http_pkg11.Edit the Apache Toolkit user configuration file 2.Copy the toolkit template and script files from apache directory ecmt/apache/apache 109 Start the apache instance again if stoppedcd /etc/cmcluster/pkg/http_pkg1/ $PWD/toolkit.sh start ◦Enable the package failover cmmodpkg -ehttp_pkg1 110 7 Using Tomcat Toolkit in a HP Serviceguard Cluster111 Table 28 ADF File for Modular Method of Packaging/etc/cmcluster/scripts/ecmt/tomcat Table 29 Files For Modular Method of Packaging hatomcat.conf •conf - Server configuration files (including server.xml) •logs - Log and output files •webapps - Automatically loaded web applications •work - Temporary working directories for web applications •temp - Directory used by the JVM for temporary files (java.io.tmpdir) 112 /opt/ hpws22/tomcatconf /opt/hpws/tomcat CATALINA_BASE hatomcat.conf The configuration rules include the following: •Each node must have the same version of the HP-UXbased Tomcat Servlet Engine Tomcat servlet engine can be configured in two different ways: Local Config: Putting the configuration and other 113 /opt/hpws22/tomcat/conf/ server.xml1.Using LVM 114 a.Create a Volume Group "vg01" for a shared storageb.Create a Logical Volume "lvol1" on the volume group "vg01 c.Construct a new file system on the Logical Volume "lvol1 e.Mount device "/dev/vg01/lvol1" to the "/shared/tomcat_1 f.Copy all files from "/opt/hpws22/tomcat/conf" to "/shared/tomcat_1/conf g.Create a directory "logs" under the "/shared/tomcat_1 2.Using VxVM a.Create a Disk Group "DG_00" on the shared storage b.Create Logical volume "LV_00" on the Disk Group "DG_00 c.Construct a new file system on the Logical Volume "LV_00 e.Mount device "/dev/vx/dsk/DG_00/LV_00" on "/shared/tomcat_1 115 a.Method2)Copy all files from /opt/hpws22/tomcat to /mnt/tomcat on any one node b.Method $ /opt/hpws22/util/ altroot.sh --tomcat /mnt/tomcat /etc/rc.config.d/hpws22_tomcatconf 116 cluster_config_file/etc/cmcluster/ pkg/tomcat_pkg1 tomcat_pkg.conf tomcat_pkg.cntl $mkdir /etc/cmcluster/pkg/tomcat_pkg1 $cd /etc/cmcluster/pkg/tomcat_pkg1 $cp /opt/cmcluster/toolkit/tomcat Create a Serviceguard package configuration file with the command cmmakepkg tomcat_pkg1.conf 2.Create a Serviceguard package control file with command cmmakepkg -s 117 Example 1 For example:Configure the Tomcat user configuration file 119 Table 30 Legal Package ScriptsTable 31 (page 119) Table 31 User Configuration Variables 120 Table 31 User Configuration Variables (continued)1.Edit the Tomcat Toolkit user configuration file CATALINA_HOME="/opt/hpws22/tomcat" CATALINA_BASE="/shared/tomcat_1 122 Start the tomcat instance again if it is stopped using cd/etc/cmcluster/pkg/ tomcat_pkg1/ $PWD/toolkit.sh start 6.Allow monitoring scripts to continue normally as shown below: rm -f /etc/cmcluster/pkg/tomcat_pkg1/tomcat.debug /etc/cmcluster/pkg/tomcat_pkg1 hatomcat.conf 1.mkdir -p /etc/cmcluster/pkg/http_pkg1 /etc/cmcluster 2.Copy the Apache and Tomcat toolkits files into the respective directories “Using an Apache Toolkit in a HP Serviceguard Cluster” (page 97) “Using Tomcat Toolkit in a HP Serviceguard Cluster” (page 110) 4.cd /etc/cmcluster/pkg/tomcat_pkg1 5.Create the Serviceguard Package configuration and Package control scripts 123 http_pkg1.monitorExample 2 For example: VG[0]="vg01 LV[0]="/dev/vg01/lvol1 FS[0]="/share/pkg_1 FS_MOUNT_OPT[0]="-orw FS_UMOUNT_OPT[0] FS_FSCK_OPT[0] FS_TYPE[0]="vxfs Configure the two services one for Tomcat and Apache instances respectively SERVICE_NAME[0]="tomcat_pkg1.monitor SERVICE_NAME[1]="http_pkg1.monitor 125 8 Using SAMBA Toolkit in a Serviceguard Cluster126 /etc/cmcluster/modules/ecmt/sambaTable 33 Attribute Definition File (ADF) /etc/cmcluster/scripts/ecmt/samba Table 34 Scripts name Configuration rules include the following: 127 Multiple HP CIFS Server Instances Configuration/opt/samba/bin/stopsmb Ensure the RUN_SAMBA parameter in the /etc/rc.config.d/samba Here is a simple example of a multiple-instanceconfiguration 1.Create directories: $mkdir /var/opt/samba/smb1 $mkdir /var/opt/samba/smb1/locks $mkdir /var/opt/samba/smb1/logs Create a file (For example ) with the following lines: [global] workgroup = ha_domain 128 Copy the workgroup line from the /etc/opt/samba/smb.conf fileAdd in the rest of desired configuration items smbpasswd <username To use a shared file system, the file system must reside on shared storage /shared/smb1 b.Create a Logical Volume "lvol1" for the "vg01 d.Create a directory "/shared/smb1" on a local disk e.Mount device "/dev/vg01/lvol1" to the "/shared/smb1 f.Copy all the necessary files depending on the configuration g.Unmount "/shared/smb1 e.Mount device "/dev/vx/dsk/DG_00/LV_00" on "/shared/smb1 129 3.Using CFSHP Serviceguard /shared/smb1 MAX_CONFIGURED_PACKAGES /etc/cmcluster/ smb1 /opt/ cmcluster/toolkit/samba 130 To create both the package configuration (smb_pkg.conf) and package control(smb_pkg.cntl) /etc/cmcluster/smb1 Create a package configuration file with the command Create a package control file with command Example: toolkit.sh /etc/cmcluster/ smb1/toolkit.sh start 131 /etc/cmcluster/smb1/toolkit.sh start/etc/cmcluster/smb1/ toolkit.sh stop #Stop the HP CIFS Server /etc/cmcluster/smb1/toolkit.sh stop Configure the user configuration file hasmb.conf 6.Copy this package configuration directory to all other package nodes /opt/ cmcluster/toolkit/samba /etc/cmcluster/scripts/ecmt/ samba /etc/cmcluster/modules/ecmt/samba toolkit.sh, hasmb.sh and hasmb.mon The scripts used in legacy packages are: Table 35 Legacy Package Scripts 132 Table 35 Legacy Package Scripts (continued)Creating Serviceguard package using Modular method #mkdir /etc/cmcluster/pkg/samba_pkg 2.Copy the toolkit template and script files from samba directory #cd /etc/cmcluster/pkg/samba_pkg/ #cp /opt/cmcluster/toolkit/samba #cmmakepkg -mecmt/samba/samba pkg.conf ecmt/samba/samba /etc/cmcluster/pkg/samba_pkg/pkg.conf PACKAGE_NAME samba NODE_NAME node1 NODE_NAME node2 SERVICE_NAME smb1_monitor 134 Table 36 User Configuration Variables (continued)/etc/ cmcluster/smb1 1.Edit the SAMBA Toolkit user configuration file NETBIOS_NAME=smb1 CONF_FILE=/etc/opt/samba/smb.conf.${NETBIOS_NAME} LOG_DIRECTORY=/var/opt/samba/${NETBIOS_NAME}/logs SMBD_PID_FILE=/var/opt/samba/${NETBIOS_NAME}/locks/smbd.pid NMBD_PID_FILE=/var/opt/samba/${NETBIOS_NAME}/locks/nmbd.pid 135 Apply the package configuration using the commandsmb_pkg.conf /etc/ cmcluster/pkg/SMB_1 as shown below: $ touch •If required stop the CIFS Server instance and as shown below: •Start the CIFS Server instance again, if you stopped it as below: 136 •Client Applications•File Locks •Print Jobs •Symbolic Links •Security Files and Encrypted Passwords smbpasswd /var/opt/samba/private smb passwd secrets.tdb 137 •Username Mapping File•HP CIFS Server as a WINS Server /var/opt/samba/locks/browse.tdb browse.tdb •HP CIFS Server as a Master Browser /var/opt/samba/ locks/browse.tdb browse.tdb •Automatic Printer Sharing •HP CIFS Server's LMHOSTS File LMNHOSTS /opt/samba/bin/startsmb LMHOSTS hasmb.sh In the start_samba_server function, change as follows: For more information see lmhosts (1M) manpage 138 9 Support and other resources139 For the name of the nearest HP authorized reseller, see the following sources:In the United States, see the HP U.S. service locator web site: http://www.hp.com/service_locator docsfeedback@hp.com •HP ProLiant servers: ProLiant SL series scalable system servers: http://h10010.www1.hp.com/wwpc/us/en/sm/WF02a/15351-15351-3896136.html •HP Integrity servers: http://www.hp.com/go/integrity •HP NonStop servers: http://www.hp.com/go/nonstop This document uses the following typographical conventions: Book title The title of a book. On the web, this can be a hyperlink to the book itself Command A command name or command phrase, For example ls -a Computer output Information displayed by the computer Ctrl+x or Ctrl-x key labeled Ctrl while you press the letter ENVIRONMENT VARIABLE The name of an environment variable, For example, PATH Key The name of a keyboard key. Return and Enter both refer to the same key Term not in a glossary User input Indicates commands and text that you type exactly as shown
Also you can find more HP manuals or manuals for other Computer Equipment.