Bug 573643 - mke2fs fails when asked to create an ext4 filesystem on unaligned partitions ?
Summary: mke2fs fails when asked to create an ext4 filesystem on unaligned partitions ?
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: e2fsprogs
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Eric Sandeen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 573247 573699 (view as bug list)
Depends On:
Blocks: 573247
TreeView+ depends on / blocked
 
Reported: 2010-03-15 13:26 UTC by Hans de Goede
Modified: 2010-03-20 03:28 UTC (History)
6 users (show)

Fixed In Version: e2fsprogs-1.41.10-6.fc13
Clone Of:
Environment:
Last Closed: 2010-03-20 03:28:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Hans de Goede 2010-03-15 13:26:50 UTC
Hi,

This is just a hunch I have, I still need to go and reproduce, it
seems that mke2fs fails when asked to create an ext4 filesystem
on an unaligned partition.

I have 2 bug reports with this happening when trying to re-use an
existing raid partition (which likely is not raid chunk aligned).

One is an lv on mdraid, the other is direct formatting of a dmraid partition:
bug 573247
bug 573500

Could it be that mke2fs tries to warn about this, and fails as it is
not run interactively ?

Regards,

Hans

Comment 1 Hans de Goede 2010-03-15 13:46:32 UTC
Ah, yes:

From bug 573628:

[root@localhost liveuser]# mkfs.ext4 /dev/sda1
mke2fs 1.41.10 (10-Feb-2009)
/dev/sda1 alignment is offset by 512 bytes.
This may result in very poor performance, (re)-partitioning suggested.
Proceed anyway? (y,n)    

According to bug 573628, mke2fs will have a new -F option in 1.41.11 to fix this, can we please get 1.41.11 into F-13 (and RHEL-6).

Comment 2 Eric Sandeen 2010-03-15 14:58:49 UTC
The -F option does now override it in F13:

%changelog
* Mon Mar 01 2010 Eric Sandeen <sandeen> 1.41.10-5
- Don't ask for confirmation of misaligned mkfs with -F (#569021)

and in RHEL6:

%changelog
* Tue Mar 02 2010 Eric Sandeen <sandeen> 1.41.10-4
- Don't ask for confirmation of misaligned mkfs with -F (#569849)


We'll likely remove the -F requirement entirely as well, in future releases.

Do the above versions work for you, by allowing -F to override the warning?

If so we can close this CURRENTRELEASE.

Thanks,

-Eric

Comment 3 Eric Sandeen 2010-03-15 15:41:33 UTC
Ok, I'll modify e2fsprogs instead, to match upstream and not require even -F, but just issue the warning.  However, I think we should leave this bug open to figure out why it's misaligned per e2fsprogs' view.

see bug #573699  - e2fsprogs: drop -F requirement for mkfs on unaligned partitions 

-Eric

Comment 4 Eric Sandeen 2010-03-15 15:43:30 UTC
Ugh ignore comment #3 that should have hit bug #573628, sorry.  Need more coffee.

I'll drop the -F requirement altogether, referencing this bug.

Comment 5 Eric Sandeen 2010-03-15 15:47:25 UTC
*** Bug 573699 has been marked as a duplicate of this bug. ***

Comment 6 Fedora Update System 2010-03-15 16:02:35 UTC
e2fsprogs-1.41.10-6.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/e2fsprogs-1.41.10-6.fc13

Comment 7 Hans de Goede 2010-03-15 16:19:22 UTC
(In reply to comment #6)
> e2fsprogs-1.41.10-6.fc13 has been submitted as an update for Fedora 13.
> http://admin.fedoraproject.org/updates/e2fsprogs-1.41.10-6.fc13    

Thanks,

I noticed you request this for updates-testing, but this way it will not get included in install.img (anaconda stage2) and thus won't help anaconda. Any chance you could push it to stable ?

Regards,

Hans

Comment 8 Hans de Goede 2010-03-15 16:20:44 UTC
*** Bug 573247 has been marked as a duplicate of this bug. ***

Comment 9 Eric Sandeen 2010-03-15 16:28:58 UTC
It's critpath so it's my understanding that it must go through the karma accumulation process; feel free to give it some ...

Comment 10 Fedora Update System 2010-03-16 23:20:30 UTC
e2fsprogs-1.41.10-6.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update e2fsprogs'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/e2fsprogs-1.41.10-6.fc13

Comment 11 Fedora Update System 2010-03-20 03:28:28 UTC
e2fsprogs-1.41.10-6.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


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