Bug 449677

Summary: Partitioner doesn't resize the file system
Product: [Fedora] Fedora Reporter: Roberto Bechtlufft <robertobech>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: 9   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-08-04 15:59:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Roberto Bechtlufft 2008-06-03 01:01:17 UTC
I'm not used to posting bugs, so if I do something wrong here, please bear with
me :-)

Description of problem:
During installation, I used the Anaconda partitioner to resize my home partition
(ext3). However, next time I booted the system I got an error stating that the
filesystem size and the partition size were incongruent. In a few words, the
partitioner resized the partition, but not the file system, and that caused
major data loss.

How reproducible: 
Try to shrink your home partition during Fedora 9 installation and cry in
despair :-)


Steps to Reproduce:
1. Run the Fedora 9 liveCD and choose to install it;
2. On the partitioner, choose to shrink your home partition and do it;
3. Reboot your system, and you'll be asked to run FSCK manually. It's no use.
  
Actual results:
That's it, major data loss.

Comment 1 Andy Lindeberg 2008-06-03 15:50:00 UTC
Can you give more detail about your partitioning layout and the steps you took
to resize your home partition? I'm attempting to reproduce the problem but can't
without that information.

Comment 2 Roberto Bechtlufft 2008-06-03 16:08:02 UTC
Here is some info: I have a 40 GB IDE HD, and three partitions on it: 

- sda1 (ext3, mounted as /, fedora 8 was installed on it, about 5GB); 
- sda5 (swap, 1GB) 
- sda6 (ext3, about 33GB)

I wanted to shrink sda6 to about 29GB, as my home partition had 6GB free. So i
resized sda6 to 29GB and created a new partition, sda7 ext3, where I installed
Fedora 9.

I used anaconda's  partitioner to do it, so I asked it to shrink sda6, checked
the resize option, the format checkbox was unchecked, as I wanted to keep my
home partition data.

Comment 3 Roberto Bechtlufft 2008-06-03 16:17:39 UTC
Is there a chance that maybe I tried to shrink sda6 more than I could?

Suppose sda6 was 30GB in size, and it had only 1GB of free space. If I had tried
to shrink it to 25GB, would I get a warning, or would the partitioner go ahead
and do it?

Comment 4 Chris Lumens 2008-07-21 18:55:18 UTC
If resize2fs reports any errors, we should be displaying an error dialog to the
screen with the title "Resizing Failed", and only giving you the option to exit
the installer.  We also write out /tmp/resize.out during installation with the
output, though that is probably not available.  I don't suppose anaconda gave
you any indication that anything was wrong during resizing?

Comment 5 Chris Lumens 2008-07-21 18:56:40 UTC
My implication here is that if resize2fs didn't give us an error (like, say,
you're trying to shrink to a size smaller than it can do) then there's nothing
we can do.

Comment 6 Roberto Bechtlufft 2008-07-22 12:58:43 UTC
Well, there were no error messages. It's weird, because I've been doing this
kind of thin in Linux for years...