Bug 865199

Summary: Free space calculation in custom partitioning goes wonky when changing the size of a partition set to LVM
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 18CC: anaconda-maint-list, g.kaviyarasu, jonathan, jstodola, satellitgo, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-23 04:36:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
storage.log from the session where I messed around with this none

Description Adam Williamson 2012-10-11 01:52:26 UTC
To reproduce, do something like this:

Boot F18 Beta TC3 DVD
Go into custom partitioning
Clear out all existing partitions, so all space is free
Create a 500MB /boot partition
Create a / partition of any size, say you have 14GB free, create a / partition size 8GB. Now you're showing approx 6GB 'available space'
Change the / partition's Device Type to LVM, hit Apply Changes
Now, reduce the size of the partition - say, to 5GB - and hit 'Apply Changes' again

The available space calculation goes wonky. It doesn't go up to 9GB, it goes *down* to 3GB. You can keep playing around with the size of the partition, and the 'available space' calculation will keep changing, sometimes up, usually down, but it'll rarely or never actually be correct. I have a VM open right now and I'm twiddling with this, right now it's showing a 15GB disk with a /boot partition of 500MB and a root partition of 1GB, and 5.49GB of 'free space'.

(Oh, and it actually says Gb, not GB. This is completely wrong. Gb is gigabits. It should be GB or GiB, but not Gb.)

Comment 1 Adam Williamson 2012-10-11 01:56:44 UTC
Created attachment 625302 [details]
storage.log from the session where I messed around with this

Comment 3 Fedora Update System 2012-11-02 04:04:14 UTC
anaconda-18.23-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/anaconda-18.23-1.fc18

Comment 4 Fedora Update System 2012-11-02 18:38:40 UTC
Package anaconda-18.23-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing anaconda-18.23-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-17509/anaconda-18.23-1.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-11-03 01:03:36 UTC
anaconda-18.24-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/anaconda-18.24-1.fc18

Comment 6 Fedora Update System 2012-11-03 19:28:13 UTC
Package anaconda-18.24-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing anaconda-18.24-1.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-17543/anaconda-18.24-1.fc18
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2012-11-06 01:38:47 UTC
anaconda-18.25-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/anaconda-18.25-1.fc18

Comment 8 Fedora Update System 2012-11-07 02:10:44 UTC
anaconda-18.26-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/anaconda-18.26-1.fc18

Comment 9 Adam Williamson 2012-11-23 04:36:42 UTC
This is definitely improved in current builds, I will file any other wonkiness I notice separately.