Operating System - HP-UX
1754393 Members
2755 Online
108813 Solutions
New Discussion юеВ

Failure possibly caused by PVG-Strict allocation policy.

 

Failure possibly caused by PVG-Strict allocation policy.

Hi i am getting below error,
Could some one please tell me what might be the problem? I Solved this problem in some othere fashon ( showing at the end of the mail) but i want to know why i am getting this error? I know this command should work, But why it is giving this error?

#lvextend -l 10 /dev/vg02/lvol14 /dev/dsk/c3t2d0 /dev/dsk/c3t7d0
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg02/lvol14" could not be extended.
Failure possibly caused by PVG-Strict allocation policy.

Note: There are number of free PE's in both the disks c3t2d0 and mirror disk c3t7d0.

Solution in other way:-
----------------------
#lvsplit /dev/vg02/lvol14
#lvextend -l 10 /dev/vg02/lvol14 /dev/dsk/c3t2d0
#lvextend -l 10 /dev/vg02/lvol14b /dev/dsk/c3t7d0
#lvmerge /dev/vg02/lvol14b /dev/vg02/lvol14

Now
#pvdisplay -v /dev/vg02/lvol14
is showing 10 PE's in both the disks.


5 REPLIES 5
RAC_1
Honored Contributor

Re: Failure possibly caused by PVG-Strict allocation policy.

Post lvdisplay for that lvol.

How many disks are there in this vg?? Do all have enough free extents??

Anil
There is no substitute to HARDWORK
Kent Ostby
Honored Contributor

Re: Failure possibly caused by PVG-Strict allocation policy.

I've seen this once before where you can sometimes hit a bug that behaves like this.

A work around is to swap the order of the pvgs in the /etc/lvmpvg file.

Given that workaround is fairly simple, i don't think that there was ever a formal fix put in for it.
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"

Re: Failure possibly caused by PVG-Strict allocation policy.

Hi Kont and RAC,
Thaks for the responce.
After some investigation i got the soultion for my problem.

I will explain it now:
below command
#lvextend -l 10 /dev/vg02/lvol14 /dev/dsk/c3t2d0 /dev/dsk/c3t7d0
Here the c3t7d0 disk is mirror to c3t2d0 but in lvmpvg c3t7d0 is not there, but an alternate link for this c3t7d0 is c4t7d0. This is there in it.
#cat lvmpvg
VG /dev/vg00
PVG rootscsi1
/dev/dsk/c1t6d0
PVG rootscsi2
/dev/dsk/c2t6d0
VG /dev/vg01
PVG omc1grp1
/dev/dsk/c3t0d0
/dev/dsk/c3t1d0
PVG omc1grp2
/dev/dsk/c4t5d0
/dev/dsk/c4t6d0
VG /dev/vg02
PVG omc2grp1
/dev/dsk/c3t2d0
/dev/dsk/c3t3d0
PVG omc2grp2
/dev/dsk/c4t7d0
/dev/dsk/c4t8d0

So now i change my actual commad to like this
#lvextend -l 10 /dev/vg02/lvol14 /dev/dsk/c3t2d0 /dev/dsk/c4t7d0
it is working.

Is this the proper way, what i did? Please let me know if ther is any erro in it.
Regards-- sreekanth
Jdamian
Respected Contributor

Re: Failure possibly caused by PVG-Strict allocation policy.

You should add the alternate links to the /etc/lvmpvg file.

The right order is

Primary link
Secondary link

in your box:

/dev/dsk/c3t7d0
/dev/dsk/c4t7d0

Re: Failure possibly caused by PVG-Strict allocation policy.

Hi benavent,
You are saying "you should add the alter nate links to the lvmpvg" , is it true? I don't think so.

I will explain with a part of my lvmpvg which is working in my m/c.
see Here: (part of lvmpvg )

VG /dev/vg02
PVG omc2grp1
/dev/dsk/c3t2d0--->its mirror is c3t7d0
/dev/dsk/c3t3d0---> it's mirror is c3t8d0
PVG omc2grp2
/dev/dsk/c4t7d0-->is alternate path to c3t7d0
/dev/dsk/c4t8d0-->is alternate path to c3t8d0

so if i want to use "lvextend -m ", i have to mention what ever the PV_Path i mentioned in lvmpvg file. Here c4t7d0 is mentioned insted of c3t7d0, so in my command i have to mention c4t7d0(which is alternate link to c3t7d0).
for this lvmpvg the command should be :
#lvextend -l 10 /dev/vg02/lvol14 /dev/dsk/c3t2d0 /dev/dsk/c4t7d0

if i change my lvmpvg like this

VG /dev/vg02
PVG omc2grp1
/dev/dsk/c3t2d0
/dev/dsk/c3t3d0
PVG omc2grp2
/dev/dsk/c3t7d0
/dev/dsk/c3t8d0

the command should be
#lvextend -l 10 /dev/vg02/lvol14 /dev/dsk/c3t2d0 /dev/dsk/c3t7d0
(both commands are working now , with this change)

So what my understand is,
for a mirror disk we can put praimary/secondary , depends on this we have to change the command.
I don't think we should add alter nate link?

What is your commant...........?