It fails because it the space you want to use is already used.  And
the code does not account for the fact that you are moving and freeing
that already allocated space.

I would probably just do the simple thing and move the last 2304 - 248
PPs to the free space and call it good.

If you wanted to keep it in order you would have to break up the move
info several smaller chunks so that you were never using currently
allocated space.

Are you going to pvresize and reduce sda7 and add another partition or
something similar?

On Tue, Jul 21, 2026 at 10:34 AM Patrick Dupre via users
<[email protected]> wrote:
>
> Hello,
>
>
> Is there a way to shrink a VG when the free space is not at the end of the VG?
> I have
> pvs -v --segments /dev/sda7
>   PV         VG       Fmt  Attr PSize   PFree Start SSize LV   Start Type   
> PE Ranges
>   /dev/sda7  VolSys_2 lvm2 a--  <94.97g 9.00g     0   248 tmp      0 linear 
> /dev/sda7:0-247
>   /dev/sda7  VolSys_2 lvm2 a--  <94.97g 9.00g   248  2304          0 free
>   /dev/sda7  VolSys_2 lvm2 a--  <94.97g 9.00g  2552 21760 root     0 linear 
> /dev/sda7:2552-24311
>
> In theory, I must
> pvmove --alloc anywhere /dev/sda7:2552-24311 /dev/sda7:248:(248+21759)
>
> but it fails because free is too small
>
> ===========================================================================
> Patrick DUPRÉ | | email: [email protected]
> ===========================================================================
> --
> _______________________________________________
> users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/[email protected]
> Do not reply to spam, report it: 
> https://forge.fedoraproject.org/infra/tickets/issues/new
-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new
  • lvm Patrick Dupre via users
    • Re: lvm Roger Heflin

Reply via email to