Operating System - HP-UX
1847471 Members
2377 Online
110265 Solutions
New Discussion

not enough free physical extents available

 
SOLVED
Go to solution
Kusado
Frequent Advisor

not enough free physical extents available

I've got "not enough free physical extents available" error when trying to create a mirror of LV.

--- Logical volumes ---
LV Name /dev/vg00/lvol1
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 88
Current LE 11
Allocated PE 11
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation PVG-strict
IO Timeout (Seconds) default

--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4350
VGDA 4
PE Size (Mbytes) 8
Total PE 6510
Alloc PE 848
Free PE 5662
Total PVG 1
Total Spare PVs 0
Total Spare PVs in use 0

--- Physical volumes ---
PV Name /dev/dsk/c4t8d0
PV Status available
Total PE 2170
Free PE 1322
Autoswitch On

PV Name /dev/dsk/c1t2d0
PV Status available
Total PE 4340
Free PE 4340
Autoswitch On
25 REPLIES 25
Torsten.
Acclaimed Contributor

Re: not enough free physical extents available

Notice: Allocation PVG-strict !

What was your command? Does it match the PVG configuration?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Kusado
Frequent Advisor

Re: not enough free physical extents available

I'm trying ro mirror the volume whith
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t2d0
Other LV's are not using PVG-strict policy, but aren't mirroring with same error message...
Johnson Punniyalingam
Honored Contributor

Re: not enough free physical extents available

strings /etc/lvmtab -> output would you helpfull

and how did you extended the "vg00" ?

Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: not enough free physical extents available

I just came acroos this link,

I hope you Orginal disk size and mirror disk size larger.

Check below link for more information

http://unix.derkeiler.com/Mailing-Lists/HP-UX-Admin/2003-08/att-0028/root_mirror000.txt

Hope this Helps.

Regards,
Johnson
Problems are common to all, but attitude makes the difference
Kusado
Frequent Advisor

Re: not enough free physical extents available

vg00 was extended with

pvcreate -B /dev/rdsk/c1t2d0
vgextend /dev/vg00 /dev/dsk/c1t2d0
Johnson Punniyalingam
Honored Contributor

Re: not enough free physical extents available

strings /etc/lvmtab

can you post above output of the command
Problems are common to all, but attitude makes the difference
Torsten.
Acclaimed Contributor

Re: not enough free physical extents available

post

/etc/lvmpvg

too!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
sujit kumar singh
Honored Contributor

Re: not enough free physical extents available

hi


post
vgdisplay -v vg00
strings /etc/lvmtab
for i in /dev/vg00/lvol*
>do lvdisplay $i
>done
cat /etc/lvmpvg

regards
sujit
Kusado
Frequent Advisor

Re: not enough free physical extents available

root@gcu_its [/]#exit strings /etc/lvmpvg tab
/dev/vg00
/dev/dsk/c4t8d0
/dev/dsk/c1t2d0
/dev/vg02
/dev/dsk/c2t0d0
/dev/dsk/c4t12d0
/dev/vg01
/dev/dsk/c2t2d0
/dev/dsk/c4t10d0

root@gcu_its [/]#strings /etc/lvmtab
root@gcu _its [/]#exit strings /etc/lvmpvg
VG /dev/vg00
PVG PVG1
/dev/dsk/c4t8d0
VG /dev/vg01
PVG PVG1
/dev/dsk/c4t10d0
VG /dev/vg02
PVG PVG1
/dev/dsk/c4t12d0

root@gcu_its [/]#strings /etc/lvmpvg tab
root@gcu _its [/]#exit
logout root
Connection closed by foreign host.
Torsten.
Acclaimed Contributor
Solution

Re: not enough free physical extents available

You need to adjust this

/etc/lvmpvg:


VG /dev/vg00
PVG PVG1
/dev/dsk/c4t8d0
PVG PVG2
/dev/dsk/c1t2d0

Then do

lvextend -m 1 /dev/vg00/lvol1 PVG2

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Kusado
Frequent Advisor

Re: not enough free physical extents available

root@gcu_its [/]#lvextend -m 1 /dev/vg00/lvol1 PVG2
The newly allocated mirrors are now being synchronized. This operation will
take some time. Please wait ....
Logical volume "/dev/vg00/lvol1" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

root@gcu_its [/]#vgdisplay -v /dev/vg00/lvol1
vgdisplay: Volume group "/dev/vg00/lvol1" does not exist in the "/etc/lvmtab" file.
vgdisplay: Cannot display volume group "/dev/vg00/lvol1".


I wonder if it's normal that i can't see lvol1 config...
sujit kumar singh
Honored Contributor

Re: not enough free physical extents available

hi

use vgdisplay -v vg00
and .or
lvdisplay -v /dev/vg00/lvol1

regards
sujit
Torsten.
Acclaimed Contributor

Re: not enough free physical extents available

As said, wrong command:

vgdisplay -v /dev/vg00/lvol1

VG(display) vs. LVOL1

;-))

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Kusado
Frequent Advisor

Re: not enough free physical extents available

sujit:
thx )
Didn't catch my mistake by my self )))

2all:
What steps do I have to take to be able boot/use this disk if c4t8d0 fails?

I'm mirroring other LVs to new disk now.
Then i'm gonna execute
"
mkboot /dev/rdsk/cxtydz
mkboot -a "hpux" /dev/rdsk/cxtydz
lvlnboot -R
"
as the HotSwapSoftwareProcedure says.
Torsten.
Acclaimed Contributor

Re: not enough free physical extents available

I hope you know

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf

see the appendix!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
sujit kumar singh
Honored Contributor

Re: not enough free physical extents available

Hi


As per the when_good_disks_go"_bad_APPENDIX as said by torsten,


please do not forget to update the /stand/bootconf with adding the line.
if that is already there, you can leave that as such.
l /


lvlnboot -R
lvlnboot -b
setboot -a

regards
sujit
sujit kumar singh
Honored Contributor

Re: not enough free physical extents available

Hi


no points for duplicate post please


lvlnboot -b

in earlier posts should read as

lvlnboot -v


regards
sujit
Kusado
Frequent Advisor

Re: not enough free physical extents available

So, check me plz )
I'm finishing creating mirrors
(lvextend -m 1 /dev/lvolX PVG2)

then making disk bootable with
mkboot /dev/rdsk/c1t2d0
mkboot -a "hpux" /dev/rdsk/c1t2d0

then I should check /stand/bootconf

then running

lvlnboot -R

Am I right?
Torsten.
Acclaimed Contributor

Re: not enough free physical extents available

According to the manual (Appendix D) it is mkboot -l ... - please check this again. Don't forget to set the path in NVRAM!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Kusado
Frequent Advisor

Re: not enough free physical extents available

That's what I have now:

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 88
Current LE 11
Allocated PE 22
Used PV 2

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 2304
Current LE 288
Allocated PE 576
Used PV 2

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 48
Current LE 6
Allocated PE 12
Used PV 2

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 344
Current LE 43
Allocated PE 86
Used PV 2

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 400
Current LE 50
Allocated PE 100
Used PV 2

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 1600
Current LE 200
Allocated PE 400
Used PV 2

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 1000
Current LE 125
Allocated PE 250
Used PV 2

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 1000
Current LE 125
Allocated PE 250
Used PV 2

root@gcu_its [/]#lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c4t8d0 (0/10/0/0.8.0) -- Boot Disk
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c4t8d0
/dev/dsk/c1t2d0
Root: lvol3 on: /dev/dsk/c4t8d0
/dev/dsk/c1t2d0
Swap: lvol2 on: /dev/dsk/c4t8d0
/dev/dsk/c1t2d0
Dump: lvol2 on: /dev/dsk/c4t8d0, 0



root@gcu_its [/]#strings /stand/bootconf
l /dev/dsk/c1t2d0

#How many disk have to be listed here? Just one of mirror holders or both?
sujit kumar singh
Honored Contributor

Re: not enough free physical extents available

Hi

add both of them.

regards
sujit
Torsten.
Acclaimed Contributor

Re: not enough free physical extents available

Normally both.


"...
This file, /stand/bootfonf, contains the address and disk layout type of the system's boot devices or lif volumes. It is used by the Software Distributor and HP-UX kernel control scripts (fileset OS-Core.KERN-RUN) to determine how and where to update the initial boot loader. Normally the kernel's checkinstall script queries the system's hardware and creates the file. In rare cases when either the system configuration cannot be automatically determined or additional and/or alternate boot devices should be automatically updated, the administrator must edit the /stand/bootconf file manually.

..."


http://docs.hp.com/en/B3921-60631/bootconf.4.html

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Kusado
Frequent Advisor

Re: not enough free physical extents available

So.
I've mirrored all volumes
I've mkboot â e â l /dev/rdsk/c1t2d0
I've added both disks to /stand/bootconf
I've lvlnboot -R

Anything else? Or I'm able to forget bout this nightmare for a while?
sujit kumar singh
Honored Contributor

Re: not enough free physical extents available

hi


did you do setboot to set the alternate boot path as well as autoboot on?

setboot -a -b on

regards
sujit