Red Hat Bugzilla – Bug 468478
Unable to shrink LVM LV
Last modified: 2013-01-09 22:24:13 EST
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.
What was the disk layout on the system you were installing to? I want to try to recreate it here.
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 ***
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.
lvresize seems to require a --force now or its interactive. Added --force in git
That fixes it.