Operating System - HP-UX
1827367 Members
5811 Online
109963 Solutions
New Discussion

How to do the vgimport in this case

 
Ajith Nath.G
Occasional Advisor

How to do the vgimport in this case

Hi,
we are undergoing a project in which i had one fc30 connected to one K-class server which use to have m/c service guard on it at one time.But we had broken the m/c service guard but all the vgs use to mount in cluster mode.

Now for upgradation we connected the fc30 to N-class server.After doing vgimport i was not able to activate the vgs, because the vgs were configured in cluster mode. some how for activating i found the solution i.e by giving vgchange -c n "volume group name"
and then vgchange -a y "volume group name"

Now for some reasons i have to connect fc30 back to K-class server, i want to know after connecting it whether all the vgs will get activated automatically or not.(note: none of the vgs were exported from K-class
server).
If anybody can please help me to get the command for activating th vgs in K-class

regards,
an
Om Shanti Om
5 REPLIES 5
Vladislav Demidov
Honored Contributor

Re: How to do the vgimport in this case

The volume group will not be activated automatically and you have to activate them manually:
vgchange -a y "volume group name"
John Palmer
Honored Contributor

Re: How to do the vgimport in this case

Hi,

From what you describe, the K still has the VG's recorded in /etc/lvmtab but as it was Serviceguarded, they were deactivated.

It's likely that you will need to modify /etc/lvmrc in order to get them activated automatically. Set the variable AUTO_VG_ACTIVATE to 1.

First though you will need to remove the 'cluster aware' flag from the VG as you did on the N server-

vgchange -c n
vgchange -a y

Regards,
John
Vladislav Demidov
Honored Contributor

Re: How to do the vgimport in this case

You will not able to run the volume group in cluster mode.
If you want to use it in a cluster then you have to set up the cluster flag on that volume group again. Start the cluster softfare and run vgchange -c y "volume name" command.
Ajitkumar Rane
Trusted Contributor

Re: How to do the vgimport in this case

Ajit,

since you have changed the cluster flag for the VG's "vgchange -c n" while mounting on the N class You will not have any problems activating the the VG's on K class again since the VG's would be activated in the normal mode and wont be cluster aware.They have to be cluster aware only if the VG's are to be activated on the adoptive node, which is not your case now as you say you have destroyed the service guard config on the system.vgchange -a y Vgname should just do the job for you.You may want to edit the /etc/lvmrc so that you may not have to manually activate these VG's.

Goodluck.
Amidsts difficulties lie opportunities
Bill McNAMARA_1
Honored Contributor

Re: How to do the vgimport in this case

I believe you should be activating in exclusive mode not normal... unless you
want to modify the VG that is.

Later,
Bill
It works for me (tm)