Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] Allocation policies
@ 2002-09-10 14:08 Anthony Johnson
  2002-09-11  5:53 ` Heinz J . Mauelshagen
  0 siblings, 1 reply; 2+ messages in thread
From: Anthony Johnson @ 2002-09-10 14:08 UTC (permalink / raw)
  To: linux-lvm

I know there are 2 allocation policies, contiguous and next free. Is
there any information that describes in detail how LVM determines the
extents to assign to a logical volume with it is created or extended?
For example, if the policy is "contiguous", must the LV contain all
contiguous extents or does it use a "best-case" scenario, and how would
that work? Likewise, in the "next free" scenario, is there any weight
given to contiguous space, does it automatically allocate across PVs,
etc?

Thanks!
Anthony

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-lvm] Allocation policies
  2002-09-10 14:08 [linux-lvm] Allocation policies Anthony Johnson
@ 2002-09-11  5:53 ` Heinz J . Mauelshagen
  0 siblings, 0 replies; 2+ messages in thread
From: Heinz J . Mauelshagen @ 2002-09-11  5:53 UTC (permalink / raw)
  To: linux-lvm

On Tue, Sep 10, 2002 at 12:00:05PM -0700, Anthony Johnson wrote:
> I know there are 2 allocation policies, contiguous and next free. Is
> there any information that describes in detail how LVM determines the
> extents to assign to a logical volume with it is created or extended?

It goes by the sequence defined by the internal PV number shown by
"vgdisplay -v". Free space on PVs with lower internal is allocated first.

> For example, if the policy is "contiguous", must the LV contain all
> contiguous extents

Yes.

> or does it use a "best-case" scenario,

No.

> and how would
> that work? Likewise, in the "next free" scenario, is there any weight
> given to contiguous space, does it automatically allocate across PVs,
> etc?

No, there's no weight.
In both cases it does allocate accross PVs.
In the contiguous case, it can't allocate on the same PV unless there's free
space after the already allocated extents.
You need to use pvmove if there's not free space following to move extents
allocated to other LVs away.

> 
> Thanks!
> Anthony
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen@Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-11  5:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-10 14:08 [linux-lvm] Allocation policies Anthony Johnson
2002-09-11  5:53 ` Heinz J . Mauelshagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox