Operating System - HP-UX
1827727 Members
2774 Online
109968 Solutions
New Discussion

Re: moving cluster lock disk using cminitlock

 
SOLVED
Go to solution
Peter Scherer
Occasional Contributor

moving cluster lock disk using cminitlock

I have to move the cluster lock disk to a new disk because of reorganisation and I don??t want to stop the whole cluster.
I found some hits that this can be done with the command cminitlock.
From the description I don??t understand:
Does this command change the cluster configuration?
Is it necessary to execute this command an all cluster nodes?

Can somebody answer this questions?

Thanks for help
Peter

8 REPLIES 8
melvyn burnard
Honored Contributor

Re: moving cluster lock disk using cminitlock

you CANNOT use the unsupported cminitlock command to CHANGE your cluster lock disc.
You will have to change your ascii file, halt the cluster, and re-apply the binary to do this.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Sanjay_6
Honored Contributor

Re: moving cluster lock disk using cminitlock

Ashwani Kashyap
Honored Contributor

Re: moving cluster lock disk using cminitlock

I don't think you can do so that way .
YOu will have to halt the cluster , modufy the cluster ascii file , create and distribute the binary files to all node and then start the cluster.
Peter Scherer
Occasional Contributor

Re: moving cluster lock disk using cminitlock

Does this mean, cminitlock restores only the cluster lock structure to the disk, but doesn??t change the cluster config to use a different path for the disk?
RAC_1
Honored Contributor

Re: moving cluster lock disk using cminitlock

I do not know if use of cminitlock is supported or unsupported way.
We changed it in ascii file reapplied the config, thenrestarted the cluster to check for any errors.

But we used cminitlock command (with preview option )to check if it has been changed.

I would recommand
change in ascii file
do cmcheckconf
if OK do
cmapplyconf

Regards,
There is no substitute to HARDWORK
melvyn burnard
Honored Contributor
Solution

Re: moving cluster lock disk using cminitlock

cminitlock is used to restore trhe cluster lock information to an already existing disc, and NOT to change it. It does nothing to the cluster ascii or binary file, hence you cannot use it to do what you wish to do.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Carsten Krege
Honored Contributor

Re: moving cluster lock disk using cminitlock

Yes, Peter, the cminitlock tool only re-initializes the cluster lock structures when they got lost.

This can happen if the cluster lock broke and you don't have a valid vgcfgbackup file that contains the cluster lock information, i.e. no vgcfgbackup has been issued after the last cmapplyconf. If you then try to vgcfgrestore with the old file, the replaced disk won't have the cluster lock structures on it.

There was also a problem ("failed to release volume group" messages in syslog) that caused the cluster lock structures not to be written to disk after a cmapplyconf, sometimes causing that the cluster lock did not work. Also here the cminitlock was useful to reinitialize the data structures (This problem was fixed in

A.11.09 --> PHSS_24850
A.11.12 --> PHSS_24537
A.11.13 --> PHSS_24678 .)

Summarized: In only these two specific cases, cminitlock will be useful. You cannot move the clusterlock to a different disk using this unsupported tool.

Carste
-------------------------------------------------------------------------------------------------
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG

Re: moving cluster lock disk using cminitlock

See my thread here on this subject, which *might* work for you... I haven't had a chance to try it yet.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=260487

HTH

Duncan

I am an HPE Employee
Accept or Kudo