1826314 Members
3775 Online
109692 Solutions
New Discussion

Re: lvmpvg error

 
SOLVED
Go to solution
Roger Baptiste
Honored Contributor

lvmpvg error

hi,

I was creating a number of Vgs through a script. ALl the vgs got created except that during the last one's creation, it bombed with the error
**
Increased the number of physical extents per physical volume to 13893.
Bad file "/etc/lvmpvg": Missing PVG keyword.
vgcreate: Error detected when reading from file "/etc/lvmpvg"
**

the /etc/lvmpvg file looks good.
vgdisplay -v shows all the Vgs except the last one which did not get created.
vgdisplay -v gives the error,
Bad file "/etc/lvmpvg" Missing PVG keyword

I moved the /etc/lvmpvg file and ran the vgcreate for the last Vg and it worked fine, creating a new /etc/lvmpvg file. But when i append the rest of the old lvmpvg entries, vgdisplay gives the error.

Obviously , there is an error in /etc/lvmpvg. But, it seems ok.
(vgcreate options -g pvg01 -s x -p y)


thanks
raj
Take it easy.
4 REPLIES 4
S.K. Chan
Honored Contributor

Re: lvmpvg error

Does your VGs have alternate link path and are they listed as well in the lvmpvg file ? If
they are, it should appear in the same order in which they are listed in the volume group otherwise it'll complain.
Helen French
Honored Contributor
Solution

Re: lvmpvg error

Hi Raj,

One option:

1) which OS version ?

If 11.0, then apply patch - PHCO_24437
If 11i. then apply patch - PHCO_25814.

The reason it is saying for the error:

When the size of the file "/etc/lvmpvg" gets more than 8k bytes (characters), customers may encounter the following problems:

lvcreate fails with: Error detected when reading from file "/etc/lvmpvg".

pvdisplay reports a warning: Bad file "/etc/lvmpvg": Missing PVG keyword.

HTH,
Shiju



Life is a promise, fulfill it!
S.K. Chan
Honored Contributor

Re: lvmpvg error

Shiju is right about the patches .. man .. I can't believe the 8k limit here. I'd better take note of this too, just in case I need it. Thanks for pointing it out Shiju !
Roger Baptiste
Honored Contributor

Re: lvmpvg error

Shiju - Thanks. I will switch on the bulb, after i install the patch and verify it.

cheers
-raj
Take it easy.