linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Phillip Susi <phill@thesusis.net>
To: LVM general discussion and development <linux-lvm@redhat.com>
Cc: Alasdair G Kergon <agk@redhat.com>
Subject: Re: [linux-lvm] Mirror allocation policy
Date: Tue, 05 Jan 2021 16:10:55 -0500	[thread overview]
Message-ID: <87v9cbdqzy.fsf@vps.thesusis.net> (raw)
In-Reply-To: <20210105204737.GC5546@agk.fab.redhat.com>


Alasdair G Kergon writes:

> On Tue, Jan 05, 2021 at 02:31:00PM -0500, Phillip Susi wrote:
>> How can I forge it to make the mirror on a single pv?  
>
> If --alloc anywhere isn't doing the trick, you'll need to dig into
> the -vvvv output to try to understand why.  There might be
> a config option setting getting in the way disabling the choice you want
> it to make, or if it's an algorithmic issue you might try to coax it to

I'm not seeing a whole lot here other than what appears to be this flat
out refusal to use extents from the same pv:

#metadata/lv_manip.c:2535         Not using free space on existing
 parallel PV /dev/md1.

Limiting the allocation to two specific extent ranges does not help either.

Full log:

#libdm-config.c:1061       Setting
 allocation/mirror_logs_require_separate_pvs to 0
 #metadata/lv_manip.c:3439         Adjusted allocation request to 7681
 logical extents. Existing size 0. New size 7681.
 #metadata/lv_manip.c:3442         Mirror log of 1 extents of size 8192
 sectors needed for region size 4096.
 #libdm-config.c:1061       Setting allocation/maximise_cling to 1
 #metadata/pv_map.c:54         Allowing allocation on /dev/md1 start PE
 2561 length 23039
 #metadata/pv_map.c:54         Allowing allocation on /dev/md1 start PE
 128000 length 347469
 #metadata/lv_manip.c:2321         Parallel PVs at LE 0 length 7680:
 /dev/md1
 #metadata/lv_manip.c:3186         Trying allocation using contiguous
 policy.
 #metadata/lv_manip.c:2788         Areas to be sorted and filled
 sequentially.
 #metadata/lv_manip.c:2704         Still need 7681 total extents from
 370508 remaining (0 positional slots):
 #metadata/lv_manip.c:2707           1 (1 data/0 parity) parallel areas
 of 7680 extents each
 #metadata/lv_manip.c:2711           1 metadata area of 1 extents each
 #metadata/lv_manip.c:2535         Not using free space on existing
 parallel PV /dev/md1.
 #metadata/lv_manip.c:3186         Trying allocation using cling policy.
 #metadata/lv_manip.c:2783         Cling_to_allocated is set
 #metadata/lv_manip.c:2786         1 preferred area(s) to be filled
 positionally.
 #metadata/lv_manip.c:2704         Still need 7681 total extents from
 370508 remaining (1 positional slots):
 #metadata/lv_manip.c:2707           1 (1 data/0 parity) parallel areas
 of 7680 extents each
 #metadata/lv_manip.c:2711           1 metadata area of 1 extents each
 #metadata/lv_manip.c:2535         Not using free space on existing
 parallel PV /dev/md1.
 #metadata/lv_manip.c:3186         Trying allocation using normal
 policy.
 #metadata/lv_manip.c:2783         Cling_to_allocated is set
 #metadata/lv_manip.c:2788         Areas to be sorted and filled
 sequentially.
 #metadata/lv_manip.c:2704         Still need 7681 total extents from
 370508 remaining (0 positional slots):
 #metadata/lv_manip.c:2707           1 (1 data/0 parity) parallel areas
 of 7680 extents each
 #metadata/lv_manip.c:2711           1 metadata area of 1 extents each
 #metadata/lv_manip.c:2535         Not using free space on existing
 parallel PV /dev/md1.
 #metadata/lv_manip.c:2783         Cling_to_allocated is not set
 #metadata/lv_manip.c:2788         Areas to be sorted and filled
 sequentially.
 #metadata/lv_manip.c:2704         Still need 7681 total extents from
 370508 remaining (0 positional slots):
 #metadata/lv_manip.c:2707           1 (1 data/0 parity) parallel areas
 of 7680 extents each
 #metadata/lv_manip.c:2711           1 metadata area of 1 extents each
 #metadata/lv_manip.c:2535         Not using free space on existing
 parallel PV /dev/md1.
 #metadata/lv_manip.c:3220   Insufficient suitable allocatable extents
 for logical volume : 7681 more required
 

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/


  reply	other threads:[~2021-01-05 21:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-05 19:31 [linux-lvm] Mirror allocation policy Phillip Susi
2021-01-05 20:47 ` Alasdair G Kergon
2021-01-05 21:10   ` Phillip Susi [this message]
2021-01-06  1:52     ` Alasdair G Kergon
2021-01-06 14:36       ` Phillip Susi
2021-01-06 14:46         ` Alasdair G Kergon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v9cbdqzy.fsf@vps.thesusis.net \
    --to=phill@thesusis.net \
    --cc=agk@redhat.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).