1751894 Members
5016 Online
108783 Solutions
New Discussion юеВ

/etc/lvmtab vgimport SG

 
SOLVED
Go to solution
Steven Sobkowski
Occasional Advisor

/etc/lvmtab vgimport SG

Hi,

I would like some feedback on how to proceed with
a situation I have on a 2 node Service Guard Cluster
HP-UX 11.0.

Here is the scenario:

Node1 had a 28 GB volume group on it that was not
part of the cluster (ie: not in the cluster configs).
On Node1, I removed the logical volume and volume
group and created it again making it 14 GB in size.
This left over 2 7 GB which I used to create a new
volume group and logical volume on Node1 that I want
to make part of the service guard cluster.

I failed to realize, that for some reason the original
volume group that was "resized" was in the /etc/lvmtab
file on Node 2 -- even though it is not configured as
fail over through Service Guard. Now, on Node2, when
I try and vgimport the new service guard volume group
that I created -- it complains that the two 7 GB luns
used for this volume group already exist in the lvmtab
on Node2 (as part of the resized volume group).

There are a couple of things on Node2 I can think
of to try -- but I would like some opinions as to
the best way to get everything on Node2 right again.

If this helps here is the recap:

Node1 --
vg03 was 28 GB in size -- Not part of SG.
vg03 was destroyed and recreated 14 GB in size -- Not part of SG.
vg04 was created using the 2 leftover disks 14 GB in size part of SG.

Node2 --
vgimport of vg04 fails, complaining that the two disks
are already part of /etc/lvmtab file in vg03. On node2,
vg03 is not actived and is not part of SG failover configuration.

Any feedback will be appreciated since I have no one
at my company to bounce ideas off of. Let me know
if you need more info.

Thanks,

:)

Steve.
5 REPLIES 5
Geoff Wild
Honored Contributor
Solution

Re: /etc/lvmtab vgimport SG

You need to vgexport vg03 on node 2...then vgimport vg04.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Stuart Abramson
Trusted Contributor

Re: /etc/lvmtab vgimport SG

geoff is right.

Probably vg03 was originally vgimported on Node 2 to be included in the cluster...

Make sure that vg03 is NOT part of the cluster.
baiju_3
Esteemed Contributor

Re: /etc/lvmtab vgimport SG


Deactivate the vg03 on Node2 and export the VG using vgexport -v vg03.

take vg04 map file from node1

create /dev/vg04 directory and group file under that and use vgimport to import vg04.

vgimport -v -s -m vg04.map /dev/vg04.

Thanks,
BL.
Good things Just Got better (Plz,not stolen from advertisement -:) )
Nguyen Anh Tien
Honored Contributor

Re: /etc/lvmtab vgimport SG

hmm. I think some problem inside....
1, how many pv you have? show me result of below commands
On node 1
#ioscan -fnC disk
#vgdisplay -v vg03
#vgdisplay -v vg04
On node2 :
#ioscan -fnC disk
reply ASAP.
tienna
HP is simple
Steven Sobkowski
Occasional Advisor

Re: /etc/lvmtab vgimport SG

Thanks All. vgexport/vgimport worked great on the second Node. Take Care.