Operating System - HP-UX
1753758 Members
4859 Online
108799 Solutions
New Discussion юеВ

Re: Cannot export /import Logical volumes

 

Cannot export /import Logical volumes

Hi,
Cluster. MS-SG.
I try to export the volume group from NodeA and then import it in NodeB. But, it is not able to import the logical volumes for somereason.

Please help.

Thanks,
Karthik
7 REPLIES 7
Jean-Louis Phelix
Honored Contributor

Re: Cannot export /import Logical volumes

hi,

What are the errors ?

Regards
It works for me (┬й Bill McNAMARA ...)
Patrick Wallek
Honored Contributor

Re: Cannot export /import Logical volumes

What exact steps are you taking and what kind of errors are you getting?

Re: Cannot export /import Logical volumes

It gives me error:
On vgchange on the node where i try to export, couldnt resynchronise stale partitions of the logical volume.

On vgimport , it gives me erros,
Logical Vol is not defines on any physical volume.
"/dev/svg/slv1" is missing physical volume

Thanks
karthik
Patrick Wallek
Honored Contributor

Re: Cannot export /import Logical volumes

What are you trying to accomplish?

What EXACT steps are you taking?
Oleg Zieaev_1
Regular Advisor

Re: Cannot export /import Logical volumes

1. Make sure you vg is configured in cluster mode, i.e. do:
vgchange -a n vgXX
vgchange -c y vgXX
vgchange -a e vgXX

2 Review steps for HA like options you use in vgexport, i.e :
vgexport -v -p -s -m vgXX.map /dev/vgXX

3. rcp vgXX.map to nodeB

on node B:
4 .re-create vgXX, i.e:
vgexport vgXX
mkdir /dev/vgXX
mknod /dev/vgXX/group c 64 0xXX0000

5. import your volumes:
vgimport -v -s -m vgXX.map /dev/vgXX

If all of above is not working, you might not have visibility from the host to the drives used in vgXX. (if you have EMC or XP).
to check this in case of EMC run:
on node A:
sympd -sid AAAA list > /tmp/sympd.log
(AAAA - last 4 digits of SN for frame).
grep cXtXdX /tmp/sympd.log
check for 2nd column to identify HVE id.
(for example 1A0)
do above sympd command on nodeB for the same sid.
grep 1A0 /tmp/sympd.log
You should see corresponding disk. If not - you wont be able to import vg.

Professionals will prevail ...
Stephen Doud
Honored Contributor

Re: Cannot export /import Logical volumes

Hello Karthik,

Before considering importing the VG, first correct the reason for the error message you reported:

Couldn't re-synchronize stale partitions of the logical volume: [error type]

Do a vgdisplay on the VG to see if 'Cur PV' = 'Act PV'. If not, the system may be missing a disk, or a disk was removed from the VG improperly.
Also do an 'lvdisplay on the logical volume and see what errors come back.

Correct the LVM problem, -then- the vgexport should work.

By the way, could this have something to do with the message you posted on Nov 14?

-s.
Ashwani Kashyap
Honored Contributor

Re: Cannot export /import Logical volumes

YOu have got stale partitions on your original node . First try to fix that problem . Then your vgexport and import should work .