Operating System - HP-UX
1835949 Members
2505 Online
110088 Solutions
New Discussion

Re: How to build new pakage on different volume groups

 
SOLVED
Go to solution
Thomas Hausmann
New Member

How to build new pakage on different volume groups

Hello @All,

i have some (hope) basicaly quastions,

we have one running Pakage on MC/Serviceguard Cluster (as Failover Cluster) with Oracle DB and VolumeGroup.
My quastions are:

How can I build new(separete) pakage on another VG?
Need I another Cluster?

(I mean some steps... like 1. Create new vg
2. add to running cluster..and so on...

And: have i to shutdown running cluster if i do this? Or is posible to do it on running cluster?

Thanks for answers

Thomas
7 REPLIES 7
Rita C Workman
Honored Contributor
Solution

Re: How to build new pakage on different volume groups

You don't mention, but I will assume you are adding this package on a server that is already part of the existing cluster.

1. Create your new volume group and file system as normal.
2. vgchange -a n /dev/
vgchange -c y /dev/
3. Create your new package
cmmakepkg -p
cmmakepkg -s
4. Edit the ascii and cntl files accordingly.
5. cmcheckconf -v -P pkg-ascii-filename
6. When you have a clean result and feel confident in your new package:
cmapplyconf -v -P pkg-ascii-filename

This will apply your new package to your existing cluster.

Rgrds,
Rita
Rita C Workman
Honored Contributor

Re: How to build new pakage on different volume groups

...forgot...

And yes you can do all this live with things up and running.

/rcw
Stephen Doud
Honored Contributor

Re: How to build new pakage on different volume groups

Thomas, I'm sure you would be happier with Serviceguard if you knew how it worked. If you cannot get training immediately, please consider at least scanning the Managing Serviecguard manual at http://docs.hp.com/en/ha.html#Serviceguard to get more familiarity with how it works.
As for LVM volume groups, you can add it to the current package, if the volume group is associated with the same operations of the first package, or, if the VG is for a different application, you can create another package in the -same- cluster. Note that a cluster of nodes cannot be members of more than one cluster.

For specific information on creating packages, see page 275 of http://docs.hp.com/en/B3936-90135/B3936-90135.pdf

Thomas Hausmann
New Member

Re: How to build new pakage on different volume groups

Thx.

@Rita: I will follow your steps.

@ Stephan: I will read the manuals/pages.

For clearness:

I have running on serv1(active) package with Oracle DB, my plan is to run another package on serv2(passive) with own VG on serv2...
its possible?

And my steps are then:

- Create VG on Serv2
- Add to existing Cluster
- Create Package on serv2, configure and mirror to serv1

Is this way correct?

Regards

Thomas

Rita C Workman
Honored Contributor

Re: How to build new pakage on different volume groups

Thomas,

Like Stephen - read the book.

To respond:

@Rita: I will follow your steps.

@ Stephan: I will read the manuals/pages.

For clearness:

I have running on serv1(active) package with Oracle DB, my plan is to run another package on serv2(passive) with own VG on serv2...
its possible?

>>>>>>Yes it is possible. Now if you want serv1 to continue to fail to serv2 that will work and your second pkg will continue to run...PROVIDED you have UNIQUE vg minor numbers and UNIQUE mountpoints for each package (..it's in the book..).
You can also set serv2 to fail to serv1. It's all up to you and can be done.
==========================
And my steps are then:

- Create VG on Serv2
- Add to existing Cluster
- Create Package on serv2, configure and mirror to serv1
Is this way correct?
>>>>>>>
1. Create VG
2. Change and give control of VG to cluster
vgchange -c y /dev/vgname
3. Create pkg on serv2.
Add line to show second server as failover node in ascii template file.
4. To run on serv1 you would
vgexport -pvs -m /etc/lvmconf/vgname.mapxxxx /dev/vgname
copy that file to serv1
copy pkg directory (ascii & cntl files) to serv1
ON SERV1:
mkdir /dev/vgname
mknod /dev/vgname/group c 64 0xnn0000
where nn is the unique minor number
vgimport -vs -m /etc/lvmconf/vgname.mapxxxx /dev/vgname
5. cmcheckconf -v -P pkg.ascii
6. cmapplyconf -v -P pkg.ascii when check runs clean.

...also make sure that any start/stop scripts for the new package, that are held outside the pkg mountpoints (like /usr/local/bin/startup-serv2-pkg.sh, etc.) are copied over to the other server as well.
...also make sure that the failover mountpoints (directories) are created on the failover node.

Hope I hit it all..

Rgrds,
Rita

.....you really need to read the manual to get the full picture....
Thomas Hausmann
New Member

Re: How to build new pakage on different volume groups

Hello,

Thanks for answer :-).

I read my manuals and try to follow the steps.

Regards
T.
Thomas Hausmann
New Member

Re: How to build new pakage on different volume groups

Thanks.

I will follow the steps (solutions).

Regards


Thomas