Bug 1853625

Summary: mkfs.gfs2: default block size is reduced by topology [rhel7]
Product: Red Hat Enterprise Linux 7 Reporter: Andrew Price <anprice>
Component: gfs2-utilsAssignee: Andrew Price <anprice>
Status: CLOSED ERRATA QA Contact: Brandon Perkins <bperkins>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.8CC: bperkins, cluster-maint, cluster-qe, gfs2-maint, jreznik, mjuricek, nstraz, nwahl, rhandlin, sbradley, toneata
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gfs2-utils-3.1.10-11.el7_9.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1839219 Environment:
Last Closed: 2020-11-10 13:08:14 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:
Bug Depends On: 1839219    
Bug Blocks:    

Description Andrew Price 2020-07-03 11:33:25 UTC
Cloning pro-actively for RHEL7.9.z as, although it doesn't look like RHEL7 has the same issue with NVMe devices, we don't know if there are devices out there that would report a too-small optimal i/o size either. A 512B block size can majorly affect gfs2's performance.

+++ This bug was initially created as a clone of Bug #1839219 +++

Description of problem:

When making a GFS2 file system without setting the file system block size, the default GFS2 block size of 4096 is expected.  This can be reduced to a smaller size if the device gives a topology with a small optimal_io_size.

We found this was the case with the NMVe devices exported by AWS.

[root@nodea ~]# mkfs.gfs2 -D -O -j4 -p lock_dlm -t bperkins200515w8:brawl1 /dev/mapper/brawl-brawl1 
alignment_offset: 0
logical_sector_size: 512
minimum_io_size: 512
optimal_io_size: 512
physical_sector_size: 512

Comment 11 errata-xmlrpc 2020-11-10 13:08:14 UTC
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 (gfs2-utils bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:5028