Operating System - HP-UX
1830498 Members
2751 Online
110006 Solutions
New Discussion

extend logical volume with out unmounting the volume

 
Primesh Abeysinghe
Frequent Advisor

extend logical volume with out unmounting the volume

hi All,

I'm trying to extend the logical volume by adding new physical volume getting error massage says

lvextend: Not enough free physical extents available.
Logical volume "/dev/vg02/lvol10" could not be extended.

but vgdisplay -v vg02 shows

VG Name /dev/vgora02
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 11
Open LV 11
Max PV 60
Cur PV 31
Act PV 31
Max PE per PV 10000
VGDA 62
PE Size (Mbytes) 8
Total PE 53329
Alloc PE 52050
Free PE 1279
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

&

is there any method to do it with out un-mounting the logical volume

Thanks
primesh
8 REPLIES 8
Torsten.
Acclaimed Contributor

Re: extend logical volume with out unmounting the volume

>> Not enough free physical extents available

Please post the lvextend command and a lvdisplay -v for this LVOL.

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!   
Torsten.
Acclaimed Contributor

Re: extend logical volume with out unmounting the volume

plus the complete

vgdisplay -v vg02

output.

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!   
Bill Hassell
Honored Contributor

Re: extend logical volume with out unmounting the volume

> Not enough free physical extents available.

Seems clear enough. Since you did not post the actual lvextend command you used, we can only guess that you specified -l or -L for the new volume that will require more than 1279 extents (or 10232 MB). You may also have other restrictions for this volume group such as mirroring, striping and strict allocation policies. Post the command:

vgdisplay -v vgora2


Bill Hassell, sysadmin
Primesh Abeysinghe
Frequent Advisor

Re: extend logical volume with out unmounting the volume

hi

the out put of the command you requested

#vgdisplay -v vgora02 |more

VG Name /dev/vgora02
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 11
Open LV 11
Max PV 60
Cur PV 31
Act PV 31
Max PE per PV 10000
VGDA 62
PE Size (Mbytes) 8
Total PE 53329
Alloc PE 52050
Free PE 1279
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

********************************************

#lvdisplay -v /dev/vgora02/lvol10 |more

--- Logical volumes ---
LV Name /dev/vgora02/lvol10
VG Name /dev/vgora02
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 36088
Current LE 4511
Allocated PE 4511
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation non-strict
IO Timeout (Seconds) default

*********************************************

#lvextend -l 53329 /dev/vgora02/lvol10

lvextend: Not enough free physical extents available.
Logical volume "/dev/vgora02/lvol10" could not be extended.
You have mail in /var/mail/root

those are the out put of the the commands can you please looking to it

Thanks
primesh








SoorajCleris
Honored Contributor

Re: extend logical volume with out unmounting the volume

Hi

you are using the switch "-l" which is use to mention number of total extends, not the size in MB , for size in MB use -L

Free PE 1279 available

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Bill Hassell
Honored Contributor

Re: extend logical volume with out unmounting the volume

> PE Size (Mbytes) 8
> Free PE 1279

SO you have 8 * 1279 MB of space (10232 MB free)


> LV Name /dev/vgora02/lvol10
> LV Size (Mbytes) 36088
> lvextend -l 53329

And the math says: 53329 - 36088 = 17241 MB increase. So you are short 17241 - 10232 = 7009 MB. Add more disk space to the volume group.

So the original error message correctly stated the problem. You need 7009 MB of additional space to extend this lvol.


Bill Hassell, sysadmin
Aungshuman Paul
Regular Advisor

Re: extend logical volume with out unmounting the volume

Hi,
if onlinejfs in installed on the system then you can easily extend a LVM without unmounting the filesystem. After extended using lvextend command you need to extend the filesystem using fsadm command.

Do let me know if you dont know the exact command.

Aungshu
Primesh Abeysinghe
Frequent Advisor

Re: extend logical volume with out unmounting the volume

Problem solved

Thank you very much to all

primesh