From: Lars Ellenberg <lars.ellenberg@linbit.com>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] "Condensing" Physical Volumes
Date: Sat, 4 Dec 2010 20:38:17 +0100 [thread overview]
Message-ID: <20101204193817.GE6034@barkeeper1-xen.linbit> (raw)
In-Reply-To: <201012042006.46803.d_baron@012.net.il>
On Sat, Dec 04, 2010 at 08:06:46PM +0200, David Baron wrote:
> I need more extents to move stuff off older, possibly failing IDE disks to my
> new SATA terrabyter. However, not enough extents are available. The disk is
> very sparsely populated.
>
> Is there any way to "condense" physical volumes to recover/expose empty
> extents in order to make use of them?
Does pvmove --alloc anywhere help?
Alternatively, you can specify exactly which extents go where,
like in "pvmove --test -n lvname.to.move /dev/pvold:20-27 /dev/pvnew:732-739".
obviously, remove --test, if it seems to do what you meant.
To see which what is where, and which extent ranges are free,
I tend to use variants of
pvs -o vg_name,lv_name,pv_name,pvseg_start,pvseg_size,seg_pe_ranges -Opv_name,pvseg_start
Note that pe_ranges are inclusive, (end of the range is: pvseg_start + pvseg_size -1).
hth,
--
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com
DRBD� and LINBIT� are registered trademarks of LINBIT, Austria.
next prev parent reply other threads:[~2010-12-04 19:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-04 18:06 [linux-lvm] "Condensing" Physical Volumes David Baron
2010-12-04 19:28 ` Ray Morris
2010-12-04 19:38 ` Lars Ellenberg [this message]
2010-12-04 19:40 ` Ray Morris
[not found] <mailman.7913.1291608602.9820.linux-lvm@redhat.com>
2010-12-06 12:34 ` David Baron
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=20101204193817.GE6034@barkeeper1-xen.linbit \
--to=lars.ellenberg@linbit.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).