Operating System - HP-UX
1752777 Members
6328 Online
108789 Solutions
New Discussion юеВ

any way to change VGID w/o export/import?

 
Dan Copeland
Regular Advisor

any way to change VGID w/o export/import?

Moved nodes/pkg's/vg's from one cluster to another. Got the nodes and pkg's in/created in the new cluster w/o issue.

After outage was over and all prod db's were started, I tried to do an applyconf to add vg's to the new cluster binary and got errors that the VGID of the vg's was from a different cluster.

Any suggestions?

tia,
Dan
12 REPLIES 12
John Poff
Honored Contributor

Re: any way to change VGID w/o export/import?

Hi,

You don't need to change the vgid. Just do a 'vgchange -c y' to make those VGs cluster aware in your new cluster, and they should be happy.

JP
Dan Copeland
Regular Advisor

Re: any way to change VGID w/o export/import?

I already did that -- it was necessary to be able to start the pkg's using those vg's in the new cluster.

It seems as though the VGID (or other info in /etc/lvmtab) of the vg's still ties them to the old cluster
Dietmar Konermann
Honored Contributor

Re: any way to change VGID w/o export/import?

You need to run "vgchange -c n ..." to clear the foreign cluster ID from the VG.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Sridhar Bhaskarla
Honored Contributor

Re: any way to change VGID w/o export/import?

Hi Dan,

Try this

"vgchange -c n vgxx"
"vgchange -a y vgxx"

'cmapplyconf -C -P "

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Dan Copeland
Regular Advisor

Re: any way to change VGID w/o export/import?

should have been a bit clearer in my 1st response...

for each vg, I did a vgchange -c n and then a vgchange -c y on a node that was already a node in the new cluster. The packages started up fine in the new cluster.

A day after all of the upgrades, I ran a cmapplyconf -C ascii_file to add vg to the cluster -- this command failed stating that the VGID (not cluster bit) of the vg's was from a different cluster.

Dan
John Poff
Honored Contributor

Re: any way to change VGID w/o export/import?

Did you do the cmapplyconf on the node where you did the 'vgchange -c ..' commands?

JP
Dan Copeland
Regular Advisor

Re: any way to change VGID w/o export/import?

can't remember for sure, but most likely.
John Poff
Honored Contributor

Re: any way to change VGID w/o export/import?

Did you list the VGs in your cluster config file?

JP
Sridhar Bhaskarla
Honored Contributor

Re: any way to change VGID w/o export/import?

Hi Dan,

Until you do the 'cmapplyconf' again after your vgchange commands, it will not make any difference. You have to do this now.

1. Halt the packages.
2. Make the VGs cluster-unaware.
vgchange -c n vgxx
3. On the node where you are going to do the applyconf do

vgchange -a y vgxx
4. Run cmapplyconf.

That should take care of making the VGs part of this cluster.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try