Operating System - HP-UX
1832678 Members
3051 Online
110043 Solutions
New Discussion

Re: SGeRAC new package not started

 
SOLVED
Go to solution

SGeRAC new package not started

I have a SGeRAC with an instance oracle configured as follows
package ORA_clusterware
package SAP1_instance

Now we need to create another package for a new instance of oracle (package SAP2_instance )
Each instance with a single vg
My question is
You have to add a new vg the package ORA_clusterware ?

I have to make
# vgchange -a s VGSAP2
After this starts well

2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: SGeRAC new package not started

Shalom,

The way service guard works is this:

* A package activates a volume group, which must reside on shared storage.
* After successful vg activation the service starts.

If you want a fully independent package that can run on any node in the cluster, it is going to need its own volume group to activate, which grants it access to shares storage.

I've done it differently with many packages trying to activate on one volume group but you run into issues with the order in which the packages run, which you can not easily control.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vinod Kumar Yadav
Trusted Contributor
Solution

Re: SGeRAC new package not started

Hi,

If you need to create another MCSG package for new ORACLE Instance with a single VG.

Follow the below setp.
Node -1
Create the new VG for New Oracle Instance
# vgexport -v -p -s -m /tmp/vg10.map vg10
# rcp /tmp/vg01.map node2:/tmp/vg01.map

Node -2
# mkdir /dev/vg10
# mknod /dev/vg10/group c 64 0x100000
# vgimport -v -s -m /tmp/vg10.map vg10
# vgchange -a n vg10

1.How to make package for MCSG cluster

# cd /etc/cmcluster
# mkdir SAP2_Inst
# cd SAP2_Inst

2.Then Create the pkg conf file & cntl file.

# cmmakepkg -p /etc/cmcluster/SAP2_Inst/sap2.conf
Package template is created.
This file must be edited before it can be used.
Edit conf file Enter package Name. Enter Node name. Change Auto_run= yes. Enter package

cntl file path name in run_script. (ex. RUN_SCRIPT /etc/cmcluster/SAP2_Inst/sap2.conf)
PACKAGE_NAME
PACKAGE_TYPE
FAILOVER_POLICY
FAILBACK_POLICY
NODE_NAME


#cmmakepkg -s /etc/cmcluster/SAP2_Inst/sap2.cntl
Package control script is created.
This file must be edited before it can be used.
Edit cntl file Enter Volume group Name (ex:- vg10 ) and file system name which are

created in lvol.Enter the IP of package and subnet mask.
VGCHANGE
CVM_ACTIVATION_CMD
VG[*]
CVM_DG[*]
VXVM_DG[*]


Then take down time halt the cluster to add the new pkg in the execting cluster.

Add the New VG name in the /etc/cmcluster/cmclconfig.ascii

Ex - /dev/vg10

rcp in the new pkg conf & cntl file in the node-2

# cmcheckconf -v -C /etc/cmcluster/cmconfig.ascii -P /etc/cmcluster/SAP2_Inst/sap2.conf

# cmviewcl
# cmruncl -v

Then do on vg10
#vgchange -c y vg10

Then halt the pkg & cluster.
Start the cluster the pkg,check with

#cmviewcl

Thanks


Jai Shiv Shankar