Bug 468478 - Unable to shrink LVM LV
Summary: Unable to shrink LVM LV
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F10AnacondaBlocker
TreeView+ depends on / blocked
 
Reported: 2008-10-24 23:35 UTC by Jesse Keating
Modified: 2013-01-10 03:24 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-10-30 22:13:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
screenshot of error. (29.26 KB, image/png)
2008-10-24 23:35 UTC, Jesse Keating
no flags Details

Description Jesse Keating 2008-10-24 23:35:28 UTC
Created attachment 321481 [details]
screenshot of error.

I've got a LVM VG with a couple LVs in it.  I attempted an install where I shrank one of the LVs down quite a bit.  The installer failed to resize the volume and just gave me an option to exit the installer.

I'll attach a screenshot.

Comment 1 David Cantrell 2008-10-25 01:01:21 UTC
What was the disk layout on the system you were installing to?  I want to try to recreate it here.

Comment 2 Hans de Goede 2008-10-25 08:17:07 UTC
Jesse,

I see that yo've alreayd figured out the likely cause and created a new bug for that, closing this one as a dup of that one.

*** This bug has been marked as a duplicate of bug 468479 ***

Comment 3 Jesse Keating 2008-10-25 16:44:10 UTC
Actually the other bug I opened was different.  The other bug the resize was successful but extra output made anaconda think it failed.  In this bug, the resize just plain was not successful.

To answer David, the system in question is a dmraid system with two 74gig SATA drives in a dm stripe.  There was a 200 meg /boot partition, then the rest is an LVM PV.  That PV is used for a VG, and within the VG there was a 2048 meg swap LV, and then the rest was a LV for /.  It's this / LV that I'm trying to shrink.  (note, this is basically the layout  you get if you let anaconda auto partition the first time.

I do think I know what caused this though in retrospect, I clicked both resize /and/ format which I think led to the problem.  I need to re-test with and without clicking format to see if that makes a difference.

Comment 4 Jeremy Katz 2008-10-26 16:48:27 UTC
lvresize seems to require a --force now or its interactive.  Added --force in git

Comment 5 Jesse Keating 2008-10-30 22:13:47 UTC
That fixes it.


Note You need to log in before you can comment on or make changes to this bug.