Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
On block devices reporting a physical sector size > 4k, mkfs.extN will attempt to set block size to the physical sector size. In some cases, that physical sector size is > page size, which won't mount; at the extreme, mkfs may even fail.
Version-Release number of selected component (if applicable):
e2fsprogs-1.41.12-6.e6
How reproducible:
Always
Steps to Reproduce:
1. modprobe scsi_debug dev_size_mb=1024 physblk_exp=11 opt_blks=0
2. mkfs.ext4 /dev/sdc (or whatever device got created)
Actual results:
# mkfs.ext4 /dev/sdc
mke2fs 1.41.12 (17-May-2010)
/dev/sdc is entire device, not just one partition!
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=1048576 (log=10)
Fragment size=1048576 (log=10)
Stride=1 blocks, Stripe width=0 blocks
4096 inodes, 1024 blocks
51 blocks (4.98%) reserved for the super user
First data block=0
1 block group
65528 blocks per group, 65528 fragments per group
4096 inodes per group
Writing inode tables: done
ext2fs_mkdir: Invalid argument while creating root dir
Expected results:
successful mkfs
Additional info:
Can override with mkfs.ext4 -F -b 4096
These comits from 1.41.13 (specifically, the 2nd one) should fix it up. The 2nd one sets default block size to logical block size, not physical, if needed.
commit f89f54aff479af859ee483c907041bcc9c0698f8
Author: Theodore Ts'o <tytso>
Date: Sun Nov 21 09:56:53 2010 -0500
mke2fs: Do not require -F for block size < physical size
There will be SSD's out soon that have 8k or 16k phyiscal block sizes.
So don't enforce a requirement that the block size be less than the
physical block size unless the force option is given, and don't give a
warning if the user can't do anything about it (i.e., if the physical
block size is > than the page size).
Signed-off-by: "Theodore Ts'o" <tytso>
commit 2b21a0d9b6c7e0efeb553e2b0f61aba1b27f9257
Author: Theodore Ts'o <tytso>
Date: Mon Nov 22 11:14:35 2010 -0500
mke2fs: Force the default blocksize to be at least the logical sector size
Signed-off-by: "Theodore Ts'o" <tytso>
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHBA-2011-1735.html
Hi Eric,
Thank you for your work on backporting this! Shameless plug: you could have also backported this one all along...
commit 45792c127645fdb4b665b74dff01748e5db789c5
Author: Yury V. Zaytsev <yury> 2011-09-16 05:08:52
Committer: Theodore Ts'o <tytso> 2011-09-16 05:46:27
mke2fs: check that auto-detected blocksize <= sys_page_size
The motivation for this commit was the problem that I experienced upon deploying RHEL 6.1 on Dell PowerEdge servers with SSDs that had buggy firmware, which lead to failures during the installation process with completely bogus error messages right after trying to mount newly created file systems.
Z.
Seems we have a twisty path of fixes upstream. :( I'll review that one, actually in retrospect it seems odd that the two patches I did backport fixed it. :) It was a while back, I'll take another look - thanks for pointing out your commit.
-Eric