[Bug 177350] Re: pvresize can't shrink PVs

2010-12-16 Thread Phillip Susi
By default pvmove allocates extents on pvs OTHER than the one they are
coming from.  If you want to move extents around on the same PV, IIRC,
you have to pass --alloc anywhere, and explicitly specify destination
extents.

At any rate, this isn't really a bug.  It is by design that you can not
reduce a pv below its last allocated extent.  If extent fragmentation is
a problem, lvm currently does not support auto defragmentation.  So this
is really a feature request.


** Changed in: lvm2 (Ubuntu)
   Importance: Undecided = Wishlist

** Changed in: lvm2 (Ubuntu)
   Status: New = Triaged

** Summary changed:

- pvresize can't shrink PVs
+ pvresize should defrag pv if necessary to reduce its size

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/177350

Title:
  pvresize should defrag pv if necessary to reduce its size

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 177350] Re: pvresize can't shrink PVs

2010-08-17 Thread Taylor Raack
I'm reopening this, because I'm having the exact same problem as Paulo.
I'm trying with Lucid 2.6.32-24-generic and LVM2 2.02.54-1ubuntu4. Is
anyone willing to take a quick look at this and determine if it's
something which can be fixed?

** Changed in: lvm2 (Ubuntu)
   Status: Invalid = New

-- 
pvresize can't shrink PVs
https://bugs.launchpad.net/bugs/177350
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 177350] Re: pvresize can't shrink PVs

2010-08-17 Thread Soren Hansen
You should be able to use pvmove to move the offending physical extents
within the pv. IIRC, the magic incantation is:

   pvmove -v /dev/whatever_your_pv_is_called

-- 
pvresize can't shrink PVs
https://bugs.launchpad.net/bugs/177350
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 177350] Re: pvresize can't shrink PVs

2010-08-17 Thread Taylor Raack
Soren, I just tried this out and sadly am having no luck. I run 'pvmove
-v /dev/sdf1' (sdf1 is my pv) and the result I get is:

Finding volume group mermaid
  No extents available for allocation

But clearly I have extents on the pv, as reported by pvdisplay:
--- Physical volume ---
  PV Name   /dev/sdf1
  VG Name   mermaid
  PV Size   931.51 GiB / not usable 3.19 MiB
  Allocatable   yes 
  PE Size   4.00 MiB
  Total PE  238466
  Free PE   97497
  Allocated PE  140969
  PV UUID   wGWKzs-Z1XJ-DFrd-jalf-0HOE-UM1x-V1GNZt

So, that doesn't seem to work. Does anything else come to mind?

-- 
pvresize can't shrink PVs
https://bugs.launchpad.net/bugs/177350
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 177350] Re: pvresize can't shrink PVs

2010-08-17 Thread Taylor Raack
I should have also mentioned that my vg only has one pv in it. Perhaps
this is compounding the problem - there is no other pv in the group to
which I can move extents. But really all I want to do is coalesce the
extents on the existing pv so that I can physically shrink it.

-- 
pvresize can't shrink PVs
https://bugs.launchpad.net/bugs/177350
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 177350] Re: pvresize can't shrink PVs

2010-08-17 Thread Soren Hansen
And pvmove won't let you do that?
-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

-- 
pvresize can't shrink PVs
https://bugs.launchpad.net/bugs/177350
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 177350] Re: pvresize can't shrink PVs

2010-01-25 Thread Paolo Sammicheli
We are closing this bug report because it lacks the information we need
to investigate the problem, as described in the previous comments.
Please reopen it if you can give us the missing information, and don't
hesitate to submit bug reports in the future. To reopen the bug report
you can click on the current status, under the Status column, and change
the Status back to New. Thanks again!

** Changed in: lvm2 (Ubuntu)
   Status: Incomplete = Invalid

** Changed in: lvm2 (Ubuntu)
 Assignee: Paolo Sammicheli (xdatap1) = (unassigned)

-- 
pvresize can't shrink PVs
https://bugs.launchpad.net/bugs/177350
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 177350] Re: pvresize can't shrink PVs

2009-10-31 Thread Paolo Sammicheli
Thank you for taking the time to report this bug and helping to make
Ubuntu better. You reported this bug a while ago and there hasn't been
any activity in it recently. We were wondering if this is still an issue
for you. Can you try with the latest Ubuntu release? Thanks in advance.


** Changed in: lvm2 (Ubuntu)
   Status: New = Incomplete

** Changed in: lvm2 (Ubuntu)
 Assignee: (unassigned) = Paolo Sammicheli (xdatap1)

-- 
pvresize can't shrink PVs
https://bugs.launchpad.net/bugs/177350
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs