Bug 484330 - ext3->ext4 migration doesn't enable extents
Summary: ext3->ext4 migration doesn't enable extents
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F11Beta, F11BetaBlocker
TreeView+ depends on / blocked
 
Reported: 2009-02-06 05:12 UTC by Eric Sandeen
Modified: 2009-02-20 19:03 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-02-20 19:03:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Eric Sandeen 2009-02-06 05:12:08 UTC
Per my experience, and that during the Fedora ext4 test day (https://fedoraproject.org/wiki/QA/Test_Days/2009-02-05) doing an ext3->ext4 migration doesn't enable extents on the filesystem.

This would ideally be done pre-upgrade, if possible, so that the upgraded files (which should be most of them on the root) will be created in the extents format.

I'm not sure if this sort of "pre-upgrade-migration" fits well in the anaconda flow... but it's what we'd need to do for this sort of migration to be worthwhile.

Thanks,
-Eric

Comment 1 Will Woods 2009-02-19 16:53:29 UTC
Eric - what's required to enable extents? I assume it's a tune2fs call, as with the ext2->ext3 migration.

http://kernelnewbies.org/Ext4 suggests:
  tune2fs -O extents,uninit_bg,dir_index $DEV
  fsck -pf $DEV

Is that correct? Do we also want to enable the other listed features?

Comment 2 Eric Sandeen 2009-02-19 17:05:13 UTC
Yep, it's tune2fs, and the extent[s] option (either should work) is the critical one.

dir_index should already be enabled for any recent install.

uninit_bg may be helpful, depending on how full the filesystem is, but the subsequent fsck will take a while.  That one is a tossup I suppose, though you'll get better fsck times after that initial fsck.  I suppose we already run fsck from anaconda pre-resize(?) so there's precedent.

The key here, though, is that unlike the ext2->ext3 migration, this needs to be done before the packages are upgraded, not after, to get any benefit from the switch to extent format.

-Eric

Comment 3 Chris Lumens 2009-02-20 19:03:17 UTC
This should be fixed in the next build of anaconda.  Thanks for the info.


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