Operating System - HP-UX
1836367 Members
2077 Online
110100 Solutions
New Discussion

Powerpath and LVM - still 2 path's

 
Dr. Peer-Joachim Koch
Frequent Advisor

Powerpath and LVM - still 2 path's

Hi,

we had to update 3 hp server from pvlinks
to powerpath. We have installed all patches
and setup everything as described in the
emc manuals.

On 2 machine everything worked well.
On one machine the LVM shows an error message

root@electra:~>vgcfgbackup vg01
vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 2 disks for "/dev/vg01"; /etc/lvmtab has 1 disks.
Cannot proceed with backup.

I can remove the second path (vgreduce), but
the message is still the same.
When /etc/lvmtab is recreated, the the second path will be added again.
In principle everything is running, but the system has a load of 1 (caused by the missing device).

Has anyone an idea how to fix it ?

We have already rebooted the machine a few times, exported the VG ...

Bye, Peer
peko
4 REPLIES 4
Mahesh Kumar Malik
Honored Contributor

Re: Powerpath and LVM - still 2 path's

Hi

Move existing lvmtab file and recreate it with vgscan and then perform the backup

Regards
Mahesh
David Child_1
Honored Contributor

Re: Powerpath and LVM - still 2 path's

This can be fixed (if you can afford the downtime) with;

(first get minor number for /dev/vg01/group)

vgchange -a n /dev/vg01
vgexport -s -v -m /tmp/vg01.map /dev/vg01
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x??0000
vgimport -s -v -m /tmp/vg01.map /dev/vg01

Note, this will bring in all paths. PowerPath and PV Links are not mutually exclusive. You can have both set up. If you do want to remove the alternate link however, you should now be able to simply do a vgreduce.

David
Geoff Wild
Honored Contributor

Re: Powerpath and LVM - still 2 path's

I run PP with alternate links - and that is fine to do...you don't need to remove...

Just
insf -e -C disk
to add the device file.

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.
Devender Khatana
Honored Contributor

Re: Powerpath and LVM - still 2 path's

Hi,

Moving lvmtab to lvmtab.org and recreating same using

vgscan -av

shall recreate the /etc/lvmtab file & the error should go. If it still shows only one path then lvextend to the disk with new device file and it will be added to its alternate path.

HTH,
Devender
Impossible itself mentions "I m possible"