1832962 Members
3132 Online
110048 Solutions
New Discussion

VG import/export

 
SAM_24
Frequent Advisor

VG import/export

Hi,

I have two servers A and B which are connected to the same storage array. When server B goes down I want to import the volume group created on Server A. Let us assume I've imported VGs on Server A. When server B comes online will it try to import VGs? Will it corrupt data? How LVM of server B will react?

Thanks.
Never quit
5 REPLIES 5
SAM_24
Frequent Advisor

Re: VG import/export

Sorry,there is a typo. I want to import volume group created from server B on server A.

Thanks.
Never quit
Rajeev  Shukla
Honored Contributor

Re: VG import/export

Its is a good idea to have the volume groups on both the servers. Like you can export the volume groups on server A and import it on B and vis versa.
And when one server goes down, activate the volume group on the other, So now even if the server which failed come online and tries to activate the volume group it wont be able to since its active on other server.
So dont worry it wont corrupt your volume group or data because if the volume groups is active on one node the other node can not activate it.

Rajeev
Karthik S S
Honored Contributor

Re: VG import/export

Hi,

If you already have MC Service Guard on these servers you could automate this by configuring packages.

Else you will have to manually import/export

Regards,
Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Rizwan Mohammed
Frequent Advisor

Re: VG import/export

Hi

MC Service guard does the same ,it activates vg in one machine at the time ,if you activate on both the VG then there will be data corruption problem ,you can write the shell scritpts too to do the same ,safe to use MCSG

Rizwan
Know ?Urself before judging others
Tom Geudens
Honored Contributor

Re: VG import/export

Hi,
Other than using a cluster, there is no solution for your problem. However, if you can guarantee that only one of the servers is running at a given time, you might benefit from keeping mapfiles handy that are made with a "vgexport -p -s". With these mapfiles (which you need on both servers) you can recreate the volumegroups on the other server without having to know the exact disks of the volumegroup. The "vgimport -s" command will automagically find them for you.

Regards,
Tom Geudens
A life ? Cool ! Where can I download one of those from ?