Operating System - HP-UX
1828587 Members
3103 Online
109983 Solutions
New Discussion

Adding new package with reassigning already used resources

 
SOLVED
Go to solution
Ralph Grothe
Honored Contributor

Adding new package with reassigning already used resources

Hello everyone,

although this doesn't really pose a problem it would be nice to know if it worked.

In preparation of a major redesign of one of our clusters I would like to configure a new package which is supposed to substitute two other now separate packages (i.e. join the two).
While in general there's no problem in adding a new package to a running cluster I here do have the constraint to reassign resources already in use by the two packages this one will replace (i.e. 2 IPs, several VGs, LVs, FSs).
Would the cluster let me reassign these already active resources by a cmapplyconf while it is still running those other packages?
For now I do not intend to run the new package,
I just would like to update the cluster config binaries on the nodes with the new package definition.
Madness, thy name is system administration
5 REPLIES 5
Slawomir Gora
Honored Contributor

Re: Adding new package with reassigning already used resources

Hi,

ex: you want to join pkg1 and pkg2 resources

1. halt packages
cmhaltpkg pkg1 pkg2
2. remove one package
cmdeleteconf -p pkg2
3. add resources IP,VG,... to pkg1 config files
4. check config cmcheckconf ...
5. apply config cmapplyconf
6. start package pkg1



Ralph Grothe
Honored Contributor

Re: Adding new package with reassigning already used resources

Thanks Sladomir,

I know the "usual" procedure.
Currently I cannot halt any packages.
Madness, thy name is system administration
melvyn burnard
Honored Contributor
Solution

Re: Adding new package with reassigning already used resources

Well I thought it would probably let you apply the configuration, bearing in mind that most of the detailed info is in the control file and not the configuration file, and just tested it on a cluster, applying two packages using the same VG's, LV's etc, and IP addresses.
It applied them both ok.
Of course, you would not want to have them both run at the same time ;-]
If you do make the changes, I would advise having the AUTO_RUN set to NO for the new package until you are ready to go live with it.

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Ralph Grothe
Honored Contributor

Re: Adding new package with reassigning already used resources

Melvyn,

thanks for verifying applicability for me.
I know that the hard work lies in the package's control script, especially since the intended logic involved in the packages' mutual interaction during package start/stop and failover is quite bizarre on this client's application.
Also thanks for providing the SG extension MIB (see my other thread http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=684521&admit=716493758+1093943673771+28353475 )
Madness, thy name is system administration
melvyn burnard
Honored Contributor

Re: Adding new package with reassigning already used resources

I knew I had put the info out there for the MIB's, but could not rememebr when and where ;-]
Glad someone found it for you
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!