Operating System - HP-UX
1826415 Members
3793 Online
109692 Solutions
New Discussion

Re: Doubt in Package Creation

 
vjta
Regular Advisor

Doubt in Package Creation

Hi all,

I m using 2 nodes Cluster .
Nodes are Running with HP-UX 11.31 with SG Cluster 11.18

In my cluster already 2 Packages are running now i want to add one more package my doubt is
Can package be created by just making PKG directory & simply copying cntl files & PKG config files of existing PKG to this newly created PKG directory & making appropriate changes for the respective Package like VGs LVs & PKG IP.
Or by cmmakepkg is better.

regards
vjta

Vijeta Bhedi
14 REPLIES 14
Ivan Krastev
Honored Contributor

Re: Doubt in Package Creation

cmmakepkg does exactly the same - generate package files.

If youcopy package files from another - carefully change the settings to avoid mistakes.

regards,
ivan
Kenan Erdey
Honored Contributor

Re: Doubt in Package Creation

Hi,

yes you can do the way you said. just be sure you changed every line that is needed. then apply the package.
Computers have lots of memory but no imagination
vjta
Regular Advisor

Re: Doubt in Package Creation

Thanks to both of u.

If i am assigning SAN storage ,then what are the steps involved like
shall i run insf cmd to both nodes or in single node it will do.
Actually i m using the steps like:
Assigning LUNs to Nodes,it will appers in both the nodes.
Create VGs for Package.
Exporting VGs by
vgexport -p -s -v -m /tmp/VGNAME.map /dev/VGNAME

transfer these map files to 2nd NOde thru FTP

In 2nd Node importing VGs by
vgimport -s -m /tmp/VGNAME.map /dev/VGNAME

& after that PKG creation by changing appropriate changes in PKG.cfg & PKG.cntl files.

My doubt is in VG cration steps.

Pls put some light.

Thanks & regards

vjta
Vijeta Bhedi
Kenan Erdey
Honored Contributor

Re: Doubt in Package Creation

Hi,

i am attaching a demo that will be very useful.Please follow the steps there.
Computers have lots of memory but no imagination
vjta
Regular Advisor

Re: Doubt in Package Creation

hi kenan,
Thanks!

Like Oracle RAC do u have for MC SG cluster demo document.

regards
vjta
Vijeta Bhedi
Ganesan R
Honored Contributor

Re: Doubt in Package Creation

Hi,

running insf on single node is not enough. how the device files get created on other node?
Once you assigned the LUNS, run ioscan on both nodes to verify these LUNS are visible.
run insf on both nodes to create device files for the new LUNS.
Also make sure that the device files are identical. otherwise you will have to import with respective device files.

Follow these steps:

Create cluster VG in node1(exp: vg02)
# pvcreate â f /dev/rdsk/cxtydz
#mkdir /dev/vg02
#mknod /dev/vg02/group c 64 0x020000 (use unassigned minor number)
#vgcreate /dev/vg02 /dev/dsk/cxtydz
Create the logical volumes as per the customer requirement.
create file systems then mount and check
#lvcreate â n - L /dev/vg02
#newfs â F vxfs /dev/vg02/
#mount
#umount
#vgchange â a n /dev/vg02
#vgexport -p â s â m /tmp/vg02.map /dev/vg02
# rcp /tmp/vg02.map node2:/tmp/vg02.map

Create cluster VG on node2

#mkdir /dev/vg02
#mknod /dev/vg02/group c 64 0x020000
#vgimport â m /tmp/vg02.map
#vgchange â a y /dev/vg02
Mount the logical volumes and check then unmount
#vgchange â a n /dev/vg02


Hope this helps
Best wishes,

Ganesh.
Kenan Erdey
Honored Contributor

Re: Doubt in Package Creation

here is the cluster document..
Computers have lots of memory but no imagination
vjta
Regular Advisor

Re: Doubt in Package Creation

Hi all,

Is there any demo doc for Package creation in Running Cluster.


Thanks & regards
vjta
Vijeta Bhedi
Vihang.
Trusted Contributor

Re: Doubt in Package Creation

Hi VJTA,

I suggest you refer to the package creation steps in the serviceguard manual. It has all the info you need.


Regards,
Vihang.
sreekanthtm
Trusted Contributor

Re: Doubt in Package Creation

While creating VG please take care of the minor number. It should be same in both the nodes.....

Cheers
Deepak Kr
Respected Contributor

Re: Doubt in Package Creation

Vita,

Yes, you need to run ioscan and insf on both nodes as both nodes must be aware of same luns comming from storage box.


If you have already configured existing cluster packages then you better go with same process here as time you will be consuming for searching n updating will be more i believe.


Follow the steps for Package creation

#mkdir /etc/cmcluster/PKG
#cmmakepkg â p /etc/cmcluster/PKG/pkg.conf---
This will create package template
edit and save this file

#cmmakepkg â s /etc/cmcluster/PKG/pkgname.cntl
This will create controle file to control the behaviour of start and stop of package
--------- edit and save this file

Copy pkgname.cntl to all other node

#cmcheckconf â v â C /etc/clcluster/ori.config â k â p /etc/cmcluster/PKG/pkgname.conf

#cmapplyconf â k â v â C /etc/clcluster/ori.config â p /etc/cmcluster/ PKG/pkgname.conf


Disable the vgactivation while system boots in /etc/lvmrc . Make it 0

start the cluster on primary node
cmruncl and get the new package running :-)

"There is always some scope for improvement"
vjta
Regular Advisor

Re: Doubt in Package Creation

Hi Deepak,
Thanks!

is it required to make VG activation to Zero in cluster.

regards
vjta
Vijeta Bhedi
Rita C Workman
Honored Contributor

Re: Doubt in Package Creation

Vita,

Folks are working hard to try and give you a step-by-step instruction for you do create a package. But is is fairly clear that before you do this you need to start reading the manuals.

Here's where you can read about SG & packages: http://docs.hp.com/en/ha.html

Rgrds,
Rita
vjta
Regular Advisor

Re: Doubt in Package Creation

Thanks to All!!

Vijeta Bhedi