1820531 Members
2278 Online
109626 Solutions
New Discussion юеВ

LVM problem (production)

 
Alex Lavrov.
Honored Contributor

LVM problem (production)

Hello,

I noticed today, that one of my lvols, size 140GB, sits on two PV, each size 50GB. That's weird .... 50+50 != 140 :)

Well, I started to check the issue and notices, that one of the PV with pvdisplay says that it has this lvol, but it does not appear in lvdisplay.

Can any one suggest how can I add this PV back to lvol?

(sorry if similar thread already exists, it's just I don't have time to search for it)
I don't give a damn for a man that can only spell a word one way. (M. Twain)
9 REPLIES 9
Pete Randall
Outstanding Contributor

Re: LVM problem (production)

Have you tried vgscan?

mv /etc/lvmtab /etc/lvmtab.old
vgscan -a


Pete

Pete
Pedro Cirne
Esteemed Contributor

Re: LVM problem (production)

Hi,

Would you post the following:

#strings /etc/lvmtab
#vgdisplay vg## of the vg where the PV is missing
#pvdisplay /dev/dsk/c#t#d# of the PV you mention


Enjoy :)

Pedro
Devender Khatana
Honored Contributor

Re: LVM problem (production)

Hi,

It should not happen in any case ? Is your file system still mounted and accessible ? I would recommend to take backup if it is mounted before doing something else.

HTH,
Devender
Impossible itself mentions "I m possible"
Alex Lavrov.
Honored Contributor

Re: LVM problem (production)

Hey, thanx for the replies:

Pete: currently I'm stuck with lvextend, so LVM is locked and I can't do nothing.

Pedro: It's on the other subnet (with no internet), so I can't copy&paste, but I can tell you, that PV is still in VG, activated and running, but it does not appear in the list in lvdisplay of that lvol.

Devender: It's strange, but SAP, which is sitting in this VG, does not complain, so is the OS. Syslog is clean. I have backup of this material, but I don't want to use this option ....
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Pedro Cirne
Esteemed Contributor

Re: LVM problem (production)

Hi,

Maybe that lvol doesn't have PE alocated on that PV....do you have other lvols on that VG?

Enjoy :)
Alex Lavrov.
Honored Contributor

Re: LVM problem (production)

It has ... otherwise it wouldn't say that this lvol sits on it.


P.S. Love you signature, but can't say I'm enjoying :)
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Devender Khatana
Honored Contributor

Re: LVM problem (production)

Hi Alex,

What does "pvdisplay -v /dev/dsk/cxtydz" reports for that PVOL ? I hope that it should list all LEs and the problem is not serious. Still the problems seems confusing and I would like this to be reported to HP support if you have one. Also insure you have latest LVM patch es installed.

HTH,
Devender
Impossible itself mentions "I m possible"
Alex Lavrov.
Honored Contributor

Re: LVM problem (production)

Hey,

PV looks fine and lists all the LE. I already checked it.

I already called HP and now that I'm writing it, I got a call and was said that there is a new PHKL path, from 3/6/2005 that fixes exactly this problem.

It looks, that it happens when lvol has more than 35000 LE, and I have 70000.

Now I'm waiting for this patch. Well, learned something new here :)
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Alex Lavrov.
Honored Contributor

Re: LVM problem (production)

It seems that the patch solved the problem.

If you'll face similar problem, here's the patch PHKL_32854.

It seems that it happens on the lvols that have more than 65000 PE, I had 70000.


Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)