Operating System - HP-UX
1833199 Members
3038 Online
110051 Solutions
New Discussion

Re: vgimport problem in SG

 
SOLVED
Go to solution
Laszlo Csizmadia
Frequent Advisor

vgimport problem in SG

I have modified some lvols and added new ones on an active node of a MC/SG cluster.
I know that the modified LVM information needs to go to the failover box also.
I exported on the active node in this way:
active# vgexport -s -p -m /tmp/vg10ata /dev/vg10ata

But the import fails on the failover node:
failover# vgimport -v -s -m /tmp/vg10ata /dev/vg10ata
Beginning the import process on Volume Group "/dev/vg10ata".
vgimport: Volume group "/dev/vg10ata" already exists in the "/etc/lvmtab" file.

Why?
What's wrong with this?

Thanks. Any help will be appreciated.
Laszlo
5 REPLIES 5
Hoefnix
Honored Contributor

Re: vgimport problem in SG

If you only did lvol updates and no new disks were added, you do not have to re-import the VG to the other nodes.

Just take care of that all the mountpoints exist on the other nodes and that the SGpackage scripts are the same on all the nodes.


Regards,

Peter Geluk
G. Vrijhoeven
Honored Contributor
Solution

Re: vgimport problem in SG

Hi Laszlo.

I think you need to vgexport on the alternate host before you can vgimport.
So start with a
# cd /tmp
# ll /dev/vgq10data/group ( remembet the minor number)
# vgdisplay -v vg10data | grep c?t?d? ( remember the disks
# vgexport /dev/vg10data
# mkdir /dev/vg10data
# mknod /dev/vg10data/group c 64 0x??0000 ( write this one down)
# vgimport -v -s -m /tmp/vg10ata /dev/vg10ata
/dev/dsk/c?t?d? /dev/dsk/c?t?d? ....
# vgchange -a r vg10data
# vgcfgbackup vg10data
# vgchange -a n vg10data

HTH,

Gideon

Gideon
Laszlo Csizmadia
Frequent Advisor

Re: vgimport problem in SG

But I have added new LUNs (disk) to the vg10ata volume groups. And increased some lvols, deletet some others.
In this case I think export/imortsis needed, isn't it?
Hoefnix
Honored Contributor

Re: vgimport problem in SG

Ok, you have added LUN's to the VG.
Now you need to export and import the VG again on all the other nodes. Still take care of all the changed mountpoints.

Do the thing Gideon explained in his post to export and import the VG.

Regards,

Peter

Bernhard Mueller
Honored Contributor

Re: vgimport problem in SG

Lazlo,

yes in that case you should definitely vgimport the vg.

Your procedure is good, only you need to vgexport the vg before you can re-import.

note the minor number of the group file
ls /dev/vg10data/group
vgexport vg10data
mkdir /dev/vg10date
mknod /dev/vg10data/group c 64 0x##0000
vgimport -v -s -m /tmp/vg10data vgdata

Regards,
Bernhard