From: Martin Papik <mp6058@gmail.com>
To: Zdenek Kabelac <zkabelac@redhat.com>
Cc: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] pvmove
Date: Sat, 20 Jul 2013 01:27:36 +0300 [thread overview]
Message-ID: <51E9BD58.4030301@gmail.com> (raw)
In-Reply-To: <51E99A85.8060901@redhat.com>
Dear Zdenek
Thank you very much, it works. I noticed a few more things. Not errors,
just minor things that might be documented better or handled
differently. Depending on the design philosophy.
"pvmove /dev/md127:152064-152319 /dev/md127:800000 --alloc anywhere"
fails because /dev/md127:xx seems to be interpreted as "one extent
starting at xx", I'm not sure that's what I'd guess from the man page.
"pvmove /dev/md127:152064-152319 /dev/md127:800000- --alloc anywhere"
works, but the manual page indicates that the syntax is
DestinationPhysicalVolume[:PE[-PE]...], which I would interpret as
/dev/xx:111 OR /dev/xx:111-222, but not /dev/xx:111-, that would IMHO be
DestinationPhysicalVolume[:PE[-[PE]]...].
I'd interpret /dev/md126:100 as a start of an area, since it has no
explicit bound, where as /dev/md127:100-100 I would expect for a single
extent, since there is an explicit bound. Does that make sense?
PS, how about a syntax variant where it can be /dev/md127:100+30 meaning
30 extents starting at 100? I understand it's often better to print
ranges, but maybe in some cases start+length might work better. Or
start-end+length for printing, and start[-end][+length] as input, and
exit with error if both end and length are specified and they don't
match (start+length!=length).
I'm not complaining, just suggesting enhancements. :-)
Again, thank you very much for your quick and helpful response.
Martin
On 07/19/2013 10:59 PM, Zdenek Kabelac wrote:
> Dne 19.7.2013 20:14, Martin Papik napsal(a):
>> Hi everyone
>>
>> I'm new to the mailing list but not to LVM, until now everything was
>> crystal
>> clear and working fine. Now I'm either stuck or found a minor issue. I'm
>> trying to move move extents on a physical volume. Not from one
>> physical volume
>> to another.
>>
>> root@myhost# pvmove /dev/md127:151808-152063 /dev/md127:152064-152319
>> No extents available for allocation
>> root@myhost#
>
> Add --alloc anywhere
>
> But I assume the tool could be a bit more smarter here.
> It looks more or less like a bug to me.
>
> Zdenek
>
next prev parent reply other threads:[~2013-07-19 22:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-19 18:14 [linux-lvm] pvmove Martin Papik
2013-07-19 19:59 ` Zdenek Kabelac
2013-07-19 22:27 ` Martin Papik [this message]
2013-07-19 23:20 ` Alasdair G Kergon
2013-07-23 2:45 ` Martin Papik
2013-07-24 3:33 ` [linux-lvm] pvmove ==> segfault: pvs --all -o +vg_fmt Martin Papik
2013-09-23 20:38 ` [linux-lvm] pvmove Alasdair G Kergon
2013-09-23 20:56 ` Alasdair G Kergon
2013-09-23 21:10 ` Alasdair G Kergon
-- strict thread matches above, loose matches on Subject: below --
2003-07-12 7:44 Juan Pablo Giménez
2003-07-12 8:29 ` Joe Thornber
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=51E9BD58.4030301@gmail.com \
--to=mp6058@gmail.com \
--cc=linux-lvm@redhat.com \
--cc=zkabelac@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.